bonding: add an option to rely on unvalidated arp packets
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest12 patches 2 repliesIn review
- v412 patches 8 repliesSuperseded
- v312 patches 3 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 posting 2/2 | 0 of 12 patches | 0 replies | Superseded | |
| v2 posting 1/2 | 12 patches | 5 replies | Superseded |
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | bonding: remove bond->lock from bond_arp_rcvdrivers/ | +0 | 1 reply | |
| 2/12 | bonding: permit using arp_validate with non-ab modesDocumentation/ drivers/ drivers/ | +5 | 1 reply | |
| 3/12 | bonding: always update last_arp_rx on packet recievedrivers/ | +2 | 0 replies | |
| 4/12 | bonding: always set recv_probe to bond_arp_rcv in arp monitordrivers/ drivers/ | +2 | 0 replies | |
| 5/12 | bonding: extend arp_validate to be able to receive unvalidated arp-only trafficdrivers/ drivers/ | +19 | 0 replies | |
| 6/12 | bonding: document the new _arp options for arp_validateDocumentation/ | +66 | 0 replies | |
| 7/12 | bonding: use the new options to correctly set last_arp_rxdrivers/ | +8 | 0 replies | |
| 8/12 | bonding: use last_arp_rx in slave_last_rx()drivers/ | +3 | 0 replies | |
| 9/12 | bonding: use last_arp_rx in bond_loadbalance_arp_mon()drivers/ | +2 | 0 replies | |
| 10/12 | bonding: remove useless updating of slave->dev->last_rxdrivers/ include/ | +1 | 0 replies | |
| 11/12 | bonding: trivial: rename slave->jiffies to ->last_link_updrivers/ drivers/ | +12 | 0 replies | |
| 12/12 | bonding: rename last_arp_rx to last_rxdrivers/ drivers/ | +8 | 0 replies |
Reviews trailers per patch
2 of 12 patches have a Reviewed-by or Acked-by.
| Patch | Nikolay Aleksandrov | Ding Tianhong |
|---|---|---|
| 1/12 | A-b | |
| 2/12 | A-b | |
| 3/12 | ||
| 4/12 | ||
| 5/12 | ||
| 6/12 | ||
| 7/12 | ||
| 8/12 | ||
| 9/12 | ||
| 10/12 | ||
| 11/12 | ||
| 12/12 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 net-next 0/12] bonding: add an option to rely on unvalidated arp packets
Quoted 4 lines · Veaceslav Falico
From Veaceslav Falico <[email protected]> # This line is ignored.
From: Veaceslav Falico <[email protected]>
Subject: [PATCH v5 net-next 0/12] bonding: add an option to rely on unvalidated arp packets In-Reply-To:
Nice, cover letter got fucked up, sorry for that. Patches are ok though.
Quoted 69 lines
Hi,
v4 -> v5:
Again per Nik's advise correct thebond_optsrestrictions forarp_validate
- set it the same asarp_interval.v3 -> v4:
Per Nikolay's advise, remove the newbond_optsrestriction on modes setting forarp_validate.v2 -> v3:
Per Jay's advise, use the 'filter' keyword instead of 'arp' one, and use his text for documentation. Also, rebase on the latest net-next. Sorry for the delay, didn't manage to send it before net-next was closed.v1 -> v2:
Don't remove the 'all traffic' functionality - rather, add newarp_validateoptions to specify that we want *only* unvalidated arps.Currently, if
arp_validateis off (0),slave_last_rx()returns theslave->dev->last_rx, which is always updated on *any* packet received by slave, and not only arps. This means that, if the validation of arps is off, we're treating *any* incoming packet as a proof of slave being up, and not only arps.This might seem logical at the first glance, however it can cause a lot of troubles and false-positives, one example would be:
The
arp_ip_targetis NOT accessible, however someone in the broadcast domain spams with any broadcast traffic. This way bonding will be tricked that the slave is still up (as in - can accessarp_ip_target), while it's not.The
net_device->last_rxis already used in a lot of drivers (even though the comment states to NOT do it :)), and it's also ugly to modify it from bonding.However, some loadbalance setups might rely on the fact that even non-arp traffic is a sign of slave being up - and we definitely can't break anyones config - so an extension to
arp_validateis needed.So, to fix this, add an option for the user to specify if he wants to filter out non-arp traffic on unvalidated slaves, remove the
last_rxfrom bonding, *always* callbond_arp_rcv()in slave'srx_handler(which isbond_handle_frame), and if we spot an arp there with this option on - update theslave->last_arp_rx- and use it instead ofnet_device->last_rx. Finally, renamelast_arp_rxtolast_rxto reflect the changes.Also rename
slave->jiffiesto ->last_link_up, to reflect better its meaning, add the new option's documentation and update thearp_validateone to be a bit more descriptive.CC Rob Landley <[email protected]>CC Jay Vosburgh <[email protected]>CC Andy Gospodarek <[email protected]>CC "David S. Miller" <[email protected]>CC dingtianhong <[email protected]>CC Nikolay Aleksandrov <[email protected]>CC Neil Horman <[email protected]>CC Cong Wang <[email protected]>Signed-off-by Veaceslav Falico <[email protected]>---
Documentation/networking/bonding.txt | 96 +++++++++++++++++++++++++----------- drivers/net/bonding/bond_main.c | 56 +++++++++------------ drivers/net/bonding/bond_options.c | 19 ++++--- drivers/net/bonding/bonding.h | 26 ++++++---- include/linux/netdevice.h | 8 +-- 5 files changed, 119 insertions(+), 86 deletions(-)