linux/drivers/net/ethernet/intel
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
..
e1000 intel: correct return from set features callback 2019-03-19 14:18:49 -07:00
e1000e e1000e: Disable runtime PM on CNP+ 2019-03-19 14:40:53 -07:00
fm10k fm10k: use struct_size() in kzalloc() 2019-02-08 22:57:28 -08:00
i40e Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2019-02-24 12:06:19 -08:00
iavf flow_offload: add flow_rule and flow_match structures and use them 2019-02-06 10:38:25 -08:00
ice ice: Determine descriptor count and ring size based on PAGE_SIZE 2019-03-19 17:24:03 -07:00
igb igb: fix various indentation issues 2019-03-19 14:35:18 -07:00
igbvf ethernet/intel: consolidate NAPI and NAPI exit 2018-11-21 10:35:23 -08:00
igc igc: Remove unneeded hw_dbg prints 2019-03-19 15:21:21 -07:00
ixgb cross-tree: phase out dma_zalloc_coherent() 2019-01-08 07:58:37 -05:00
ixgbe net: remove 'fallback' argument from dev->ndo_select_queue() 2019-03-20 11:18:55 -07:00
ixgbevf xfrm: prefer secpath_set over secpath_dup 2018-12-19 11:21:38 -08:00
Kconfig ixgbe: fix Kconfig when driver is not a module 2019-01-04 14:02:16 -08:00
Makefile igc: Add skeletal frame for Intel(R) 2.5G Ethernet Controller support 2018-10-17 12:14:54 -07:00
e100.c intel: correct return from set features callback 2019-03-19 14:18:49 -07:00