]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_re: changing the ip address shouldn't affect new connections
authorSriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Thu, 2 Nov 2017 21:09:04 +0000 (02:39 +0530)
committerDoug Ledford <dledford@redhat.com>
Mon, 13 Nov 2017 20:01:25 +0000 (15:01 -0500)
commit0a7d06f9a5abc349a046493f5ca57dd2c88126ea
treef3c67b7127e268e6c367f75166eab4f9ff56fece
parent28b00bb07b72e109fa6239ce946233731c531b89
bnxt_re: changing the ip address shouldn't affect new connections

While adding a new gid, the driver currently does not return the context
back to the stack. A subsequent del_gid() (e.g, when ip address is changed)
doesn't find the right context in the driver and it ends up dropping that
request. This results in the HW caching a stale gid entry and traffic fails
because of that. Fix by returning the proper context in bnxt_re_add_gid().

Signed-off-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/bnxt_re/ib_verbs.c