]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: deliver link-local packets with skb->dev set to link that packets arrived on
authorChonggang Li <chonggangli@google.com>
Sun, 16 Apr 2017 19:02:18 +0000 (12:02 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 19:45:47 +0000 (15:45 -0400)
commitd2c1f4c1de687ef4f2c17b224e4680c50bb9e82c
tree694c8d19d40a4b771340410482e7e26fcb822810
parent6bea4997474f977ea1d35df74706288ef78f98bf
bonding: deliver link-local packets with skb->dev set to link that packets arrived on

Bonding driver changes the skb->dev to the bonding-master before
passing the packet to stack for further processing. This, however
does not make sense for the link-local packets and it loses "the
link info" once its skb->dev is changed to bonding-master.  This
patch changes this behavior for link-local packets by not changing
the skb->dev to the bonding-master and maintaining it as it is,
i.e. the link on which the packet arrived.

Signed-off-by: Chonggang Li <chonggangli@google.com>
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c