bonding: pass link-local packets to bonding master also.
authorMahesh Bandewar <maheshb@google.com>
Mon, 24 Sep 2018 21:39:42 +0000 (14:39 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Sep 2018 03:21:27 +0000 (20:21 -0700)
commit6a9e461f6fe4434e6172304b69774daff9a3ac4c
treeadf8122cea020b4569f7bb8bf33f6d9178c8187a
parentd3a315795b4ce8b105a64a90699103121bde04a8
bonding: pass link-local packets to bonding master also.

Commit b89f04c61efe ("bonding: deliver link-local packets with
skb->dev set to link that packets arrived on") changed the behavior
of how link-local-multicast packets are processed. The change in
the behavior broke some legacy use cases where these packets are
expected to arrive on bonding master device also.

This patch passes the packet to the stack with the link it arrived
on as well as passes to the bonding-master device to preserve the
legacy use case.

Fixes: b89f04c61efe ("bonding: deliver link-local packets with skb->dev set to link that packets arrived on")
Reported-by: Michal Soltys <soltys@ziu.info>
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c