]> git.baikalelectronics.ru Git - kernel.git/commit
IB/rxe: Fix destination cache for IPv6
authorAndrew Boyer <andrew.boyer@dell.com>
Mon, 28 Aug 2017 20:11:53 +0000 (16:11 -0400)
committerDoug Ledford <dledford@redhat.com>
Mon, 28 Aug 2017 23:12:33 +0000 (19:12 -0400)
commit455793dd7e80a91fcf8a450cec2478ed5f6b0f76
tree0f30693b39583af6ec2c0fe07afd427afcd1ade3
parenta869c887586609a68f44ff796a8be3fab7e46330
IB/rxe: Fix destination cache for IPv6

To successfully match an IPv6 path, the path cookie must match. Store it
in the QP so that the IPv6 path can be reused.

Replace open-coded version of dst_check() with the actual call, fixing the
logic. The open-coded version skips the check call if dst->obsolete is 0
(DST_OBSOLETE_NONE), proceeding to replace the route. DST_OBSOLETE_NONE
means that the route may continue to be used, though.

Fixes: 64df9a48f1f4 ("IB/rxe: Cache dst in QP instead of getting it...")
Signed-off-by: Andrew Boyer <andrew.boyer@dell.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/sw/rxe/rxe_net.c
drivers/infiniband/sw/rxe/rxe_verbs.h