]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
RDMA/cxgb4: check for ipv6 address properly while destroying listener
authorPotnuri Bharat Teja <bharat@chelsio.com>
Wed, 31 Mar 2021 13:57:15 +0000 (19:27 +0530)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 4 May 2021 14:08:54 +0000 (16:08 +0200)
commite900acc1f0663c914a3bf2f2e33600adfef6455a
tree477d36901332e15005c8b9fc0147378f5c9ea81e
parentaa700c643d9ba6cb13a3114190142a5563e9da94
RDMA/cxgb4: check for ipv6 address properly while destroying listener

BugLink: https://bugs.launchpad.net/bugs/1926489
[ Upstream commit 603c4690b01aaffe3a6c3605a429f6dac39852ae ]

ipv6 bit is wrongly set by the below which causes fatal adapter lookup
engine errors for ipv4 connections while destroying a listener.  Fix it to
properly check the local address for ipv6.

Fixes: 3408be145a5d ("RDMA/cxgb4: Fix adapter LE hash errors while destroying ipv6 listening server")
Link: https://lore.kernel.org/r/20210331135715.30072-1-bharat@chelsio.com
Signed-off-by: Potnuri Bharat Teja <bharat@chelsio.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/infiniband/hw/cxgb4/cm.c