Skip to content

Commit 427c940

Browse files
John Wangkuba-moo
authored andcommitted
net/ncsi: Use real net-device for response handler
When aggregating ncsi interfaces and dedicated interfaces to bond interfaces, the ncsi response handler will use the wrong net device to find ncsi_dev, so that the ncsi interface will not work properly. Here, we use the original net device to fix it. Fixes: 138635c ("net/ncsi: NCSI response packet handler") Signed-off-by: John Wang <wangzhiqiang.bj@bytedance.com> Link: https://lore.kernel.org/r/20201223055523.2069-1-wangzhiqiang.bj@bytedance.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 826f328 commit 427c940

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/ncsi/ncsi-rsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1120,7 +1120,7 @@ int ncsi_rcv_rsp(struct sk_buff *skb, struct net_device *dev,
11201120
int payload, i, ret;
11211121

11221122
/* Find the NCSI device */
1123-
nd = ncsi_find_dev(dev);
1123+
nd = ncsi_find_dev(orig_dev);
11241124
ndp = nd ? TO_NCSI_DEV_PRIV(nd) : NULL;
11251125
if (!ndp)
11261126
return -ENODEV;

0 commit comments

Comments
 (0)