]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'net-sched-Make-qdisc-offload-uapi-uniform'
authorDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 18:35:37 +0000 (13:35 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 18:35:37 +0000 (13:35 -0500)
commit11d4918716e73c8b550bb8626b35ce600731489b
tree2f5330c057ba08509f2ca957c4592c20cff2f7e4
parentbb7ecec72f09d457c19fc9b5be8a66e8ace819c3
parent0da0472e8499c8d1d879bb2901f5c923590f146b
Merge branch 'net-sched-Make-qdisc-offload-uapi-uniform'

Yuval Mintz says:

====================
net: sched: Make qdisc offload uapi uniform

Several qdiscs can already be offloaded to hardware, but there's an
inconsistecy in regard to the uapi through which they indicate such
an offload is taking place - indication is passed to the user via
TCA_OPTIONS where each qdisc retains private logic for setting it.

The recent addition of offloading to RED in
05680f6d8612 ("net_sch: red: Add offload ability to RED qdisc") caused
the addition of yet another uapi field for this purpose -
TC_RED_OFFLOADED.

For clarity and prevention of bloat in the uapi we want to eliminate
said added uapi, replacing it with a common mechanism that can be used
to reflect offload status of the various qdiscs.

The first patch introduces TCA_HW_OFFLOAD as the generic message meant
for this purpose. The second changes the current RED implementation into
setting the internal bits necessary for passing it, and the third removes
TC_RED_OFFLOADED as its no longer needed.
====================

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