net: add retry mechanism to ndo_set_rx_mode_async
Status from this message: This series was applied to netdev/net-next.git (main)
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest3 patches 1 replyApplied 3/3
- v23 patches 5 repliesSuperseded
- v13 patches 4 repliesSuperseded
Changes in v3 from the cover letter
- add netdev_warn for bnxt_hwrm_set_vnic_filter's EAGAIN (Michael)
- use netdev_assert_locked_ops_compat (Jakub)
Patches in v3 All 3 applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | net: change ndo_set_rx_mode_async return type to intdrivers/ drivers/ drivers/ +6 more | +46 | 0 replies | Applied |
| 2/3 | net: add retry mechanism to ndo_set_rx_mode_asyncinclude/ net/ net/ +1 more | +60 | 0 replies | Applied |
| 3/3 | bnxt: convert to core rx_mode retry mechanismdrivers/ drivers/ | +10 | 1 reply | Applied |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Jakub Kicinski | Michael Chan |
|---|---|---|
| 1/3 | ||
| 2/3 | R-b | |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH net-next v3 0/3] net: add retry mechanism to ndo_set_rx_mode_async
Original async ndo_set_rx_mode work left one place where we do netdev_WARN in response to a ENOMEM. The intent was to see whether actual real users can hit that (adding uc/mc under memory pressure seems like a very unlikely thing to do). However, it was quickly triggered by syzbot's failslab. Add a retry mechanism and downgrade netdev_WARN to netdev_err. The retry logic is a typical exponential backoff:
1, 2, 4, 8 seconds, 15 in total, hopefully enough for a system to resolve memory pressure.
v3:
- add netdev_warn for bnxt_hwrm_set_vnic_filter's EAGAIN (Michael)
- use netdev_assert_locked_ops_compat (Jakub)
v2:
- rx_mode_retry_work -> rx_mode_retry_timer (Jakub)
- (ulong) rx_mode_retry_delay -> (uint) rx_mode_retry_count (Jakub)
- remove dev_get/put (Jakub)
- drop fwd decl (Jakub)
- move comment about total retires to NETIF_RX_MODE_RETRY_MAX (Jakub)
- use -EAGAIN in bnxt to signal retry (Michael)
Stanislav Fomichev (3):
net: change ndo_set_rx_mode_async return type to int
net: add retry mechanism to ndo_set_rx_mode_async
bnxt: convert to core rx_mode retry mechanism
drivers/infiniband/ulp/ipoib/ipoib_main.c | 9 ++-- drivers/net/dummy.c | 7 +-- drivers/net/ethernet/broadcom/bnxt/bnxt.c | 40 ++++++-------- drivers/net/ethernet/broadcom/bnxt/bnxt.h | 2 - drivers/net/ethernet/intel/iavf/iavf_main.c | 10 ++-- .../net/ethernet/mellanox/mlx5/core/en_main.c | 8 +-- .../net/ethernet/meta/fbnic/fbnic_netdev.c | 8 +-- drivers/net/netdevsim/netdev.c | 7 +-- drivers/net/netkit.c | 7 +-- include/linux/netdevice.h | 16 ++++-- net/core/dev.c | 4 +- net/core/dev.h | 2 + net/core/dev_addr_lists.c | 53 ++++++++++++++++++- 13 files changed, 116 insertions(+), 57 deletions(-)
Signature · 1 line
2.53.0-Meta