Thread (5 messages) 5 messages, 3 authors, 2021-04-22

Re: [PATCH net-next] net: xdp: Update pkt_type if generic XDP changes unicast MAC

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-04-22 21:30:12
Also in: bpf

Hello:

This patch was applied to bpf/bpf-next.git (refs/heads/master):

On Mon, 19 Apr 2021 16:15:59 +0200 you wrote:
If a generic XDP program changes the destination MAC address from/to
multicast/broadcast, the skb->pkt_type is updated to properly handle
the packet when passed up the stack. When changing the MAC from/to
the NICs MAC, PACKET_HOST/OTHERHOST is not updated, though, making
the behavior different from that of native XDP.

Remember the PACKET_HOST/OTHERHOST state before calling the program
in generic XDP, and update pkt_type accordingly if the destination
MAC address has changed. As eth_type_trans() assumes a default
pkt_type of PACKET_HOST, restore that before calling it.

[...]
Here is the summary with links:
  - [net-next] net: xdp: Update pkt_type if generic XDP changes unicast MAC
    https://git.kernel.org/bpf/bpf-next/c/22b6034323fd

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help