Skip to contentSkip to conversation

teaming: deliver link-local packets with the link they arrive on

PATCH Applied Jeffrey Ji 2 participants 2 messages Feb 17, 2022 – Feb 18, 2022

Subsystems (3)
lore
Share & tools
lore

Jeffrey Ji

author
#0 lore raw

PATCH v2 1/1 teaming: deliver link-local packets with the link they arrive on

From: jeffreyji <[email protected]>

skb is ignored if team port is disabled. We want the skb to be delivered if it's an link layer packet.

Issue is already fixed for bonding in
commit b89f04c61efe ("bonding: deliver link-local packets with skb->dev set to link that packets arrived on")

changelog:

v2: change LLDP -> link layer in comments/commit descrip, comment format

---
 drivers/net/team/team.c | 5 +++++
 1 file changed, 5 insertions(+)
drivers/net/team/team.c +5 -0
index 8b2adc56b92a..b07dde6f0abf 100644
@@ -734,6 +734,11 @@ static rx_handler_result_t team_handle_frame(struct sk_buff **pskb)
 	port = team_port_get_rcu(skb->dev);
 	team = port->team;
 	if (!team_port_enabled(port)) {
+		if (is_link_local_ether_addr(eth_hdr(skb)->h_dest))
+			/* link-local packets are mostly useful when stack receives them
+			 * with the link they arrive on.
+			 */
+			return RX_HANDLER_PASS;
 		/* allow exact match delivery for disabled ports */
 		res = RX_HANDLER_EXACT;
 	} else {
Signature · 1 line
2.35.1.265.g69c8d7142f-goog
#1 lore raw
This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Hello:

This patch was applied to netdev/net-next.git (master) by David S. Miller <[email protected]>:

Quoted 9 lines · On Thu, 17 Feb 2022 21:23:12 +0000 you wrote:

From: jeffreyji <[email protected]>

skb is ignored if team port is disabled. We want the skb to be delivered if it's an link layer packet.

Issue is already fixed for bonding in
commit b89f04c61efe ("bonding: deliver link-local packets with skb->dev set to link that packets arrived on")

[...]

Here is the summary with links:
- [v2,net-next] teaming: deliver link-local packets with the link they arrive on

    https://git.kernel.org/netdev/net-next/c/aaae162aeb67

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html