Skip to contentSkip to conversation

iproute2: VXLAN Group Policy extension

PATCH In review Thomas Graf 2 participants 4 messages Jan 15, 2015 – Feb 5, 2015

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

cover iproute2: VXLAN Group Policy extension

Stephen,

Against net-next branch. I assume you only want to apply patch 1/2 after the next header sync. I've included 2/2 if anyone wants to use it now and needs the header bits

Thomas Graf (2):
vxlan: Group policy extension
vxlan: synchronize <linux/if_link.h> header

 include/linux/if_link.h |  3 +++
 ip/iplink_vxlan.c       | 11 +++++++++++
 man/man8/ip-link.8.in   | 45 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+)
Signature · 1 line
1.9.3
#1 lore raw

PATCH 1/2 vxlan: Group policy extension

---
 ip/iplink_vxlan.c     | 11 +++++++++++
 man/man8/ip-link.8.in | 45 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)
ip/iplink_vxlan.c +11 -0
index 9cc3ec3..473ff97 100644
@@ -30,6 +30,7 @@ static void print_explain(FILE *f)
 	fprintf(f, "                 [ [no]l2miss ] [ [no]l3miss ]\n");
 	fprintf(f, "                 [ ageing SECONDS ] [ maxaddress NUMBER ]\n");
 	fprintf(f, "                 [ [no]udpcsum ] [ [no]udp6zerocsumtx ] [ [no]udp6zerocsumrx ]\n");
+	fprintf(f, "                 [ gbp ]\n");
 	fprintf(f, "\n");
 	fprintf(f, "Where: VNI := 0-16777215\n");
 	fprintf(f, "       ADDR := { IP_ADDRESS | any }\n");
@@ -68,6 +69,7 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
 	__u8 udpcsum = 0;
 	__u8 udp6zerocsumtx = 0;
 	__u8 udp6zerocsumrx = 0;
+	__u8 gbp = 0;
 	int dst_port_set = 0;
 	struct ifla_vxlan_port_range range = { 0, 0 };
 
@@ -197,6 +199,8 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
 			udp6zerocsumrx = 1;
 		} else if (!matches(*argv, "noudp6zerocsumrx")) {
 			udp6zerocsumrx = 0;
+		} else if (!matches(*argv, "gbp")) {
+			gbp = 1;
 		} else if (matches(*argv, "help") == 0) {
 			explain();
 			return -1;
@@ -268,6 +272,10 @@ static int vxlan_parse_opt(struct link_util *lu, int argc, char **argv,
 	if (dstport)
 		addattr16(n, 1024, IFLA_VXLAN_PORT, htons(dstport));
 
+	if (gbp)
+		addattr_l(n, 1024, IFLA_VXLAN_GBP, NULL, 0);
+
+
 	return 0;
 }
 
@@ -398,6 +406,9 @@ static void vxlan_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])
 	if (tb[IFLA_VXLAN_UDP_ZERO_CSUM6_RX] &&
 	    rta_getattr_u8(tb[IFLA_VXLAN_UDP_ZERO_CSUM6_RX]))
 		fputs("udp6zerocsumrx ", f);
+
+	if (tb[IFLA_VXLAN_GBP])
+		fputs("gbp ", f);
 }
 
 static void vxlan_print_help(struct link_util *lu, int argc, char **argv,
man/man8/ip-link.8.in +45 -0

57 lines not on this page · raw message

Signature · 1 line
1.9.3
#2 lore raw

PATCH 2/2 vxlan: synchronize <linux/if_link.h> header

In reply to Thomas Graf
---
 include/linux/if_link.h | 3 +++
 1 file changed, 3 insertions(+)
include/linux/if_link.h +3 -0
index 167ec34..0b33d0a 100644
@@ -368,6 +368,9 @@ enum {
 	IFLA_VXLAN_UDP_CSUM,
 	IFLA_VXLAN_UDP_ZERO_CSUM6_TX,
 	IFLA_VXLAN_UDP_ZERO_CSUM6_RX,
+	IFLA_VXLAN_REMCSUM_TX,
+	IFLA_VXLAN_REMCSUM_RX,
+	IFLA_VXLAN_GBP,
 	__IFLA_VXLAN_MAX
 };
 #define IFLA_VXLAN_MAX	(__IFLA_VXLAN_MAX - 1)
Signature · 1 line
1.9.3
#3 lore raw
In reply to Thomas Graf
Quoted 6 lines · On Thu, 15 Jan 2015 14:54:24 +0100 Thomas Graf <[email protected]> wrote:

Stephen,

Against net-next branch. I assume you only want to apply patch 1/2 after the next header sync. I've included 2/2 if anyone wants to use it now and needs the header bits

Quoted 9 lines

Thomas Graf (2):
vxlan: Group policy extension
vxlan: synchronize <linux/if_link.h> header

 include/linux/if_link.h |  3 +++
 ip/iplink_vxlan.c       | 11 +++++++++++
 man/man8/ip-link.8.in   | 45 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 59 insertions(+)

I picked headers up in separate merge.

The iplink changes are waiting in net-next branch.