Skip to contentSkip to conversation

vxlan: if_arp: introduce ARPHRD_VXLANGPE

PATCH In review Thadeu Lima de Souza Cascardo 3 participants 4 messages May 5, 2016 – May 6, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vxlan: if_arp: introduce ARPHRD_VXLANGPE

Use ARPHRD_VXLANGPE to identify VxLAN GPE interfaces. This is going to be used to allow GPE interfaces to be added as openvswitch ports.

---
 drivers/net/vxlan.c         | 2 +-
 include/uapi/linux/if_arp.h | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/net/vxlan.c +1 -1
index 2668e52..9da962f 100644
@@ -2603,7 +2603,7 @@ static void vxlan_ether_setup(struct net_device *dev)
 static void vxlan_raw_setup(struct net_device *dev)
 {
 	dev->header_ops = NULL;
-	dev->type = ARPHRD_NONE;
+	dev->type = ARPHRD_VXLANGPE;
 	dev->hard_header_len = 0;
 	dev->addr_len = 0;
 	dev->flags = IFF_POINTOPOINT | IFF_NOARP | IFF_MULTICAST;
include/uapi/linux/if_arp.h +1 -0
index 4d024d7..52a8175 100644
@@ -95,6 +95,7 @@
 #define ARPHRD_IP6GRE	823		/* GRE over IPv6		*/
 #define ARPHRD_NETLINK	824		/* Netlink header		*/
 #define ARPHRD_6LOWPAN	825		/* IPv6 over LoWPAN             */
+#define ARPHRD_VXLANGPE 826		/* VxLAN GPE */
 
 #define ARPHRD_VOID	  0xFFFF	/* Void type, nothing is known */
 #define ARPHRD_NONE	  0xFFFE	/* zero header length */
Signature · 1 line
2.5.5
#1 lore raw
Quoted 2 lines · Thadeu Lima de Souza Cascardo

Use ARPHRD_VXLANGPE to identify VxLAN GPE interfaces. This is going to be used to allow GPE interfaces to be added as openvswitch ports.

What's wrong with ARPHRD_NONE? I don't think we need a separate type for VXLAN-GPE. Just use ARPHRD_NONE in ovs and things should work, for all ARPHRD_NONE interfaces as a bonus.

Quoted 3 lines

You did not CC me nor Simon :-)

Jiri

#2 lore raw
Quoted 8 lines · Jiri Benc
Quoted 2 lines · Thadeu Lima de Souza Cascardo

Use ARPHRD_VXLANGPE to identify VxLAN GPE interfaces. This is going to be used to allow GPE interfaces to be added as openvswitch ports.

What's wrong with ARPHRD_NONE? I don't think we need a separate type for VXLAN-GPE. Just use ARPHRD_NONE in ovs and things should work, for all ARPHRD_NONE interfaces as a bonus.

That's fine for me. I looked quickly at the few devices using ARPHRD_NONE in upstream kernel, not sure if there are broken out-of-tree drivers out there. And should we care?

Quoted 6 lines
Quoted 3 lines

You did not CC me nor Simon :-)

I am using sendemail.suppresscc=all to prevent some accidents. I am adding confirm=always so I can double check before really sending.

Thanks.
Cascardo.

Quoted 1 line

Jiri

#3 lore raw
Quoted 5 lines · Thadeu Lima de Souza Cascardo
Quoted 4 lines · Jiri Benc
Quoted 2 lines · Thadeu Lima de Souza Cascardo

Use ARPHRD_VXLANGPE to identify VxLAN GPE interfaces. This is going to be used to allow GPE interfaces to be added as openvswitch ports.

Quoted 8 lines
Quoted 4 lines

What's wrong with ARPHRD_NONE? I don't think we need a separate type for VXLAN-GPE. Just use ARPHRD_NONE in ovs and things should work, for all ARPHRD_NONE interfaces as a bonus.

That's fine for me. I looked quickly at the few devices using ARPHRD_NONE in upstream kernel, not sure if there are broken out-of-tree drivers out there. And should we care?

It seems unlikely to me that we should.