]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
net: bonding: factor out rlock(bond->lock) in xmit path
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>
Sat, 7 May 2011 01:48:02 +0000 (01:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2011 19:05:59 +0000 (12:05 -0700)
commit0693e88e6ccf615d9674548d8b924cdd9a1c976c
treec77546505f150e1e6c8a9a8390e7dc01a292d13d
parent48752e1b1802231ef2a076f34d861918b7d571c3
net: bonding: factor out rlock(bond->lock) in xmit path

Pull read_lock(&bond->lock) and BOND_IS_OK() to bond_start_xmit() from
mode-dependent xmit functions.

netif_running() is always true in hard_start_xmit.

Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_alb.c
drivers/net/bonding/bond_main.c