From: Hangbin Liu <liuhangbin@gmail.com>
To: netdev@vger.kernel.org
Cc: David Ahern <dsahern@gmail.com>, Hangbin Liu <liuhangbin@gmail.com>
Subject: [PATCH iproute2-next] ip/bond: add arp_validate filter support
Date: Mon, 16 Aug 2021 15:49:05 +0800 [thread overview]
Message-ID: <20210816074905.297294-1-liuhangbin@gmail.com> (raw)
Add arp_validate filter support based on kernel commit 896149ff1b2c
("bonding: extend arp_validate to be able to receive unvalidated arp-only traffic")
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
---
ip/iplink_bond.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ip/iplink_bond.c b/ip/iplink_bond.c
index b01f69a5..59c9e36d 100644
--- a/ip/iplink_bond.c
+++ b/ip/iplink_bond.c
@@ -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"
--
2.31.1
next reply other threads:[~2021-08-16 7:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-16 7:49 Hangbin Liu [this message]
2021-08-17 1:26 ` [PATCH iproute2-next] ip/bond: add arp_validate filter support Stephen Hemminger
2021-08-17 2:24 ` Hangbin Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210816074905.297294-1-liuhangbin@gmail.com \
--to=liuhangbin@gmail.com \
--cc=dsahern@gmail.com \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).