netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next] bonding: do not pass link-local packets to master-interface
@ 2017-04-14 18:00 Chonggang Li
  2017-04-14 19:30 ` Jay Vosburgh
  0 siblings, 1 reply; 5+ messages in thread
From: Chonggang Li @ 2017-04-14 18:00 UTC (permalink / raw)
  To: j.vosburgh, andy, vfalico, nikolay, edumazet, davem
  Cc: netdev, Chonggang Li, Mahesh Bandewar, Maciej Żenczykowski

Previously link-local packets excluding LACP (which are handled by
the recv_probe) received on bond slave interfaces are delivered to
stack with bond-master device with RX_HANDLER_ANOTHER, however all
link-local packets are link specific and should be delivered with
exact same link/dev.

Signed-off-by: Chonggang Li <chonggangli@google.com>
Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: Maciej Żenczykowski <maze@google.com>
---
 drivers/net/bonding/bond_main.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 01e4a69af421..aeca3d8541b9 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -1176,6 +1176,9 @@ static rx_handler_result_t bond_handle_frame(struct sk_buff **pskb)
 		}
 	}
 
+	/* link-local packets should not be passed to master interface */
+	if (is_link_local_ether_addr(eth_hdr(skb)->h_dest))
+		return RX_HANDLER_PASS;
 	if (bond_should_deliver_exact_match(skb, slave, bond))
 		return RX_HANDLER_EXACT;
 
-- 
2.12.2.762.g0e3151a226-goog

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-04-15  0:20 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-14 18:00 [PATCH net-next] bonding: do not pass link-local packets to master-interface Chonggang Li
2017-04-14 19:30 ` Jay Vosburgh
2017-04-14 20:26   ` Maciej Żenczykowski
2017-04-14 21:50   ` Mahesh Bandewar (महेश बंडेवार)
2017-04-15  0:20     ` Jay Vosburgh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).