[PATCH net-next] net: handle ARPHRD_IP6GRE in dev_is_mac_header_xmit()

Subsystems: networking drivers, the rest

STALE1882d

2 messages, 2 authors, 2021-06-21 · open the first message on its own page

[PATCH net-next] net: handle ARPHRD_IP6GRE in dev_is_mac_header_xmit()

From: Guillaume Nault <hidden>
Date: 2021-06-21 20:08:56

Similar to commit 3b707c3008ca ("net: dev_is_mac_header_xmit() true for
ARPHRD_RAWIP"), add ARPHRD_IP6GRE to dev_is_mac_header_xmit(), to make
ip6gre compatible with act_mirred and __bpf_redirect().

Signed-off-by: Guillaume Nault <redacted>
---
 include/linux/if_arp.h | 1 +
 1 file changed, 1 insertion(+)
diff --git a/include/linux/if_arp.h b/include/linux/if_arp.h
index bf5c5f32c65e..b712217f7030 100644
--- a/include/linux/if_arp.h
+++ b/include/linux/if_arp.h
@@ -48,6 +48,7 @@ static inline bool dev_is_mac_header_xmit(const struct net_device *dev)
 	case ARPHRD_TUNNEL6:
 	case ARPHRD_SIT:
 	case ARPHRD_IPGRE:
+	case ARPHRD_IP6GRE:
 	case ARPHRD_VOID:
 	case ARPHRD_NONE:
 	case ARPHRD_RAWIP:
-- 
2.21.3

Re: [PATCH net-next] net: handle ARPHRD_IP6GRE in dev_is_mac_header_xmit()

From: patchwork-bot+netdevbpf@kernel.org
Date: 2021-06-21 22:00:16

Hello:

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

On Mon, 21 Jun 2021 22:08:49 +0200 you wrote:
Similar to commit 3b707c3008ca ("net: dev_is_mac_header_xmit() true for
ARPHRD_RAWIP"), add ARPHRD_IP6GRE to dev_is_mac_header_xmit(), to make
ip6gre compatible with act_mirred and __bpf_redirect().

Signed-off-by: Guillaume Nault <redacted>
---
 include/linux/if_arp.h | 1 +
 1 file changed, 1 insertion(+)
Here is the summary with links:
  - [net-next] net: handle ARPHRD_IP6GRE in dev_is_mac_header_xmit()
    https://git.kernel.org/netdev/net-next/c/a3fa449ffcf5

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