Skip to content

Commit 603c469

Browse files
bharatpotnurijgunthorpe
authored andcommitted
RDMA/cxgb4: check for ipv6 address properly while destroying listener
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: 3408be1 ("RDMA/cxgb4: Fix adapter LE hash errors while destroying ipv6 listening server") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Potnuri Bharat Teja <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent 7582207 commit 603c469

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • drivers/infiniband/hw/cxgb4

drivers/infiniband/hw/cxgb4/cm.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3616,7 +3616,8 @@ int c4iw_destroy_listen(struct iw_cm_id *cm_id)
36163616
c4iw_init_wr_wait(ep->com.wr_waitp);
36173617
err = cxgb4_remove_server(
36183618
ep->com.dev->rdev.lldi.ports[0], ep->stid,
3619-
ep->com.dev->rdev.lldi.rxq_ids[0], true);
3619+
ep->com.dev->rdev.lldi.rxq_ids[0],
3620+
ep->com.local_addr.ss_family == AF_INET6);
36203621
if (err)
36213622
goto done;
36223623
err = c4iw_wait_for_reply(&ep->com.dev->rdev, ep->com.wr_waitp,

0 commit comments

Comments
 (0)