]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'mlxsw-qdisc-refactoring'
authorDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 21:07:42 +0000 (16:07 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jan 2018 21:07:42 +0000 (16:07 -0500)
commit8e8bb8c556000c7487c914e7c980c0c89d6844c2
treeb07fa663e0a7885e7a405e4d2f695e6aebe73638
parent235cc92e1130c2bd76cc9192b4d8582205d4db9b
parentfc977f6e1f997127388aac825c2fec39c480f45a
Merge branch 'mlxsw-qdisc-refactoring'

Jiri Pirko says:

====================
mlxsw qdisc refactoring

This patchset refactors the qdisc handling in mlxsw driver in order to make
it more object oriented like.
It helps readability, laying the groundwork for the offloading of
additional qdiscs by the driver
This patchset also makes the qdiscs statistics more generic.

Patch 1 moves the qdiscs declaration to the spectrum_qdisc.c
Patches 2-3 clean the offloaded stats requests. Patch 2 changes the RED
generic stats struct to be sharable by other offloaded qdiscs. Patch 3
changes the xstats request to be like the stats. Note that these patches
are outside the driver scope.
Patches 4-5 clean the statistics related functions and structs within the
driver.
Patches 6-7 decrease the need for the same parameters to be sent to many
functions.
Patches 8-11 create a functions pointers struct, to make the qdiscs
handling more object oriented like.
====================

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