]> 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)
commit6b2905445cf59dfbfffd4cf76240029c9f4144e6
tree0f30693b39583af6ec2c0fe07afd427afcd1ade3
parent6197506404a09faf05b822e5ee3c93955d5c39b7
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: 29fd12a76aa1 ("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