]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-refactor-ndo_select_queue'
authorDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2019 18:18:55 +0000 (11:18 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2019 18:18:55 +0000 (11:18 -0700)
commit041fffbcdf5dc8ad7059a0e77e6e7ba47a614316
tree606fd11e76d457dbcfcb197f573808cb625bee3f
parentda96a9208d933e9c094cba3574b0e5135226a3ef
parent7a7eec7e50f0d80dfdf8d5788bbffb881d7bdc94
Merge branch 'net-refactor-ndo_select_queue'

Paolo Abeni says:

====================
net: refactor ndo_select_queue()

Currently, on most devices implementing ndo_select_queue(), we get 2
indirect calls per xmit packet, at least in some scenarios.

We can avoid one of such indirect calls refactoring the ndo_select_queue()
usage so that we don't need anymore the 'fallback' argument.

The first patch renames a helper used later as a public API, the second one
changes the af packet implementation so that it uses the common infrastructure
to select the xmit queue, and the second patch drops the now unneeded argument
from ndo_select_queue().

Alternatively we could use the INDIRECT_CALL_WRAPPER infrastructure to avoid
the fallback indirect call in the common case, but this solution allows also
for some code cleanup.

 v1 -> v2:
  - renamed select queue helpers, as per Eric's and David's suggestions
====================

Signed-off-by: David S. Miller <davem@davemloft.net>