1
0
Fork 0
alistair23-linux/drivers/net/ethernet/qlogic
Paolo Abeni a350eccee5 net: remove 'fallback' argument from dev->ndo_select_queue()
After the previous patch, all the callers of ndo_select_queue()
provide as a 'fallback' argument netdev_pick_tx.
The only exceptions are nested calls to ndo_select_queue(),
which pass down the 'fallback' available in the current scope
- still netdev_pick_tx.

We can drop such argument and replace fallback() invocation with
netdev_pick_tx(). This avoids an indirect call per xmit packet
in some scenarios (TCP syn, UDP unconnected, XDP generic, pktgen)
with device drivers implementing such ndo. It also clean the code
a bit.

Tested with ixgbe and CONFIG_FCOE=m

With pktgen using queue xmit:
threads		vanilla 	patched
		(kpps)		(kpps)
1		2334		2428
2		4166		4278
4		7895		8100

 v1 -> v2:
 - rebased after helper's name change

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-03-20 11:18:55 -07:00
..
netxen net: netxen: fix a missing check and an uninitialized use 2018-12-21 09:01:47 -08:00
qed qed: Define new MF bit for no_vlan config 2019-03-20 11:12:50 -07:00
qede net: remove 'fallback' argument from dev->ndo_select_queue() 2019-03-20 11:18:55 -07:00
qlcnic qlcnic: Avoid potential NULL pointer dereference 2019-03-15 11:55:53 -07:00
qlge net: qlge: fix a potential NULL pointer dereference 2019-03-11 16:16:22 -07:00
Kconfig qed*: Utilize FW 8.33.1.0 2018-01-02 13:59:16 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qla3xxx.c net: qlogic: fix a potential NULL pointer dereference 2019-03-12 14:44:43 -07:00
qla3xxx.h