Skip to content

Commit

Permalink
net/ncsi: Use real net-device for response handler
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
John Wang authored and kuba-moo committed Dec 23, 2020
1 parent 826f328 commit 427c940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ncsi/ncsi-rsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ int ncsi_rcv_rsp(struct sk_buff *skb, struct net_device *dev,
int payload, i, ret;

/* Find the NCSI device */
nd = ncsi_find_dev(dev);
nd = ncsi_find_dev(orig_dev);
ndp = nd ? TO_NCSI_DEV_PRIV(nd) : NULL;
if (!ndp)
return -ENODEV;
Expand Down

0 comments on commit 427c940

Please sign in to comment.