Skip to contentSkip to conversation

ip/bond: add arp_validate filter support

PATCH In review Hangbin Liu 2 participants 3 messages Aug 16, 2021 – Aug 17, 2021

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

PATCH 1/1 ip/bond: add arp_validate filter support

Add arp_validate filter support based on kernel commit 896149ff1b2c ("bonding: extend arp_validate to be able to receive unvalidated arp-only traffic")

---
 ip/iplink_bond.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
ip/iplink_bond.c +4 -1
index b01f69a5..59c9e36d 100644
@@ -41,6 +41,9 @@ static const char *arp_validate_tbl[] = {
 	"active",
 	"backup",
 	"all",
+	"filter",
+	"filter_active",
+	"filter_backup",
 	NULL,
 };
 
@@ -152,7 +155,7 @@ static void print_explain(FILE *f)
 		"                [ ad_actor_system LLADDR ]\n"
 		"\n"
 		"BONDMODE := balance-rr|active-backup|balance-xor|broadcast|802.3ad|balance-tlb|balance-alb\n"
-		"ARP_VALIDATE := none|active|backup|all\n"
+		"ARP_VALIDATE := none|active|backup|all|filter|filter_active|filter_backup\n"
 		"ARP_ALL_TARGETS := any|all\n"
 		"PRIMARY_RESELECT := always|better|failure\n"
 		"FAIL_OVER_MAC := none|active|follow\n"
Signature · 1 line
2.31.1
#1 lore raw
Quoted 4 lines · On Mon, 16 Aug 2021 15:49:05 +0800 Hangbin Liu <[email protected]> wrote:

Add arp_validate filter support based on kernel commit 896149ff1b2c ("bonding: extend arp_validate to be able to receive unvalidated arp-only traffic")

Since this has been in since 2014, it can skip going to iproute2-next

#2 lore raw
Quoted 9 lines · Stephen Hemminger
Quoted 4 lines · On Mon, 16 Aug 2021 15:49:05 +0800 Hangbin Liu <[email protected]> wrote:

Add arp_validate filter support based on kernel commit 896149ff1b2c ("bonding: extend arp_validate to be able to receive unvalidated arp-only traffic")

Since this has been in since 2014, it can skip going to iproute2-next

Fine with me. I thought all new features need to be submitted to -next branch first.

Thanks
Hangbin