Skip to content

some netpoll and netconsole fixes

Cong Wang netdev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest15 patches 5 repliesIn review
  2. v414 patches 5 repliesSuperseded
  3. v314 patches 4 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v28 patches11 repliesSuperseded
v17 patches11 repliesSuperseded

Changes in v5 from the cover letter

* Rename the local variable 'info' to 'vlan'
* add another vlan cleanup patch

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15netpoll: use GFP_ATOMIC in slave_enable_netpoll() and __netpoll_setup()drivers/net/bonding/bond_main.c drivers/net/team/team.c include/linux/netdevice.h +6 more+32 -280 replies
2/15netpoll: make __netpoll_cleanup non-blockdrivers/net/bonding/bond_main.c include/linux/netpoll.h net/8021q/vlan_dev.c +2 more+38 -230 replies
3/15netconsole: do not release spin_lock when calling __netpoll_cleanupdrivers/net/netconsole.c+0 -50 replies
4/15netpoll: take rcu_read_lock_bh() in netpoll_rx()include/linux/netpoll.h net/core/netpoll.c+3 -40 replies
5/15netpoll: use netpoll_rx_on() in netpoll_rx()include/linux/netpoll.h+9 -90 replies
6/15netpoll: take rcu_read_lock_bh() in netpoll_send_skb_on_dev()include/linux/netpoll.h net/core/netpoll.c+20 -140 replies
7/15bridge: add some comments for NETDEV_RELEASEnet/bridge/br_if.c+4 -00 replies
8/15bridge: use list_for_each_entry() in netpoll functionsnet/bridge/br_device.c+4 -50 replies
9/15netpoll: check netpoll tx status on the right devicedrivers/net/bonding/bond_main.c include/linux/if_team.h net/bridge/br_forward.c+17 -170 replies
10/15netpoll: convert several functions to boolinclude/linux/netpoll.h+7 -70 replies
11/15vlan: clean up some variable namesnet/8021q/vlan_dev.c+6 -60 replies
12/15vlan: clean up vlan_dev_hard_start_xmit()net/8021q/vlan_dev.c+20 -70 replies
13/15netpoll: handle vlan tags in netpoll tx and rx pathnet/core/netpoll.c+15 -00 replies
14/15netpoll: re-enable irq in poll_napi()net/core/netpoll.c+9 -12 replies
15/15netconsole.txt: revision of examples for the receiver of kernel messagesDocumentation/networking/netconsole.txt+17 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v5 yet.

Read the v5 thread

Cover letter [PATCH v5 00/15] some netpoll and netconsole fixes

V5:
* Rename the local variable 'info' to 'vlan'
* add another vlan cleanup patch

V4:
* rebase against net tree
* fix a compile error in patch 9
* update patch 7 as Stephen suggested

V3:
* add more patches
* update patch 7 as David suggested

V2:
* update patch 1/8 as Eric suggested
* drop the bridge patch, add comments instead
* add patch 8/8

This patchset fixes serval problems in netconsole and netpoll.

I ran this patchset in my KVM guest with some netpoll test cases, even covered with some corner cases, everything worked as expected.

BTW, my kernel config enables the following validatation options:

CONFIG_DEBUG_ATOMIC_SLEEP=y
CONFIG_PROVE_LOCKING=y
CONFIG_PROVE_RCU=y
CONFIG_LOCKDEP=y
CONFIG_RCU_CPU_STALL_TIMEOUT=60
CONFIG_LOCKUP_DETECTOR=y
CONFIG_HARDLOCKUP_DETECTOR=y

Cc "David S. Miller" <[email protected]>

--------

netpoll: use GFP_ATOMIC in slave_enable_netpoll() and
netpoll: make __netpoll_cleanup non-block
netconsole: do not release spin_lock when calling
netpoll: take rcu_read_lock_bh() in netpoll_rx()
netpoll: use netpoll_rx_on() in netpoll_rx()
netpoll: take rcu_read_lock_bh() in
bridge: add some comments for NETDEV_RELEASE
bridge: use list_for_each_entry() in netpoll functions
netpoll: check netpoll tx status on the right device
netpoll: convert several functions to bool
vlan: clean up some variable names
vlan: clean up vlan_dev_hard_start_xmit()
netpoll: handle vlan tags in netpoll tx and rx path
netpoll: re-enable irq in poll_napi() netconsole.txt: revision of examples for the receiver

 Documentation/networking/netconsole.txt |   19 +++++-
 drivers/net/bonding/bond_main.c         |   12 ++--
 drivers/net/netconsole.c                |    5 --
 drivers/net/team/team.c                 |   16 +++--
 include/linux/if_team.h                 |   30 ++++----
 include/linux/netdevice.h               |    3 +-
 include/linux/netpoll.h                 |   42 +++++++-----
 net/8021q/vlan_dev.c                    |   52 +++++++++------
 net/bridge/br_device.c                  |   27 +++-----
 net/bridge/br_forward.c                 |    2 +-
 net/bridge/br_if.c                      |    6 ++-
 net/bridge/br_private.h                 |    4 +-
 net/core/netpoll.c                      |  109 ++++++++++++++++++++++---------
 13 files changed, 200 insertions(+), 127 deletions(-)