]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'cls_u32_hw_sw'
authorDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:30:57 +0000 (13:30 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 16 May 2016 17:30:57 +0000 (13:30 -0400)
commitc41b720d97885c23e4eea1a25a9185e7e4ba96f7
tree79482667c26a1d1dcc54fc8147a27ddb92be5cea
parent6944ea9ea9196a40d33ce995ae0b0d1eff7b31bd
parent47c7042c67235b13ffeb87d805cbc496d54b9a30
Merge branch 'cls_u32_hw_sw'

Sridhar Samudrala says:

====================
Enable SW only or HW only offloads with u32 classifier

This set of patches export TCA_CLS_FLAGS_SKIP_HW to userspace and also
introduces another flag TCA_CLS_FLAGS_SKIP_SW. These flags enable offloading
u32 filters to either SW or HW only.

The default semantics with no flags is to add the filter to HW if possible and
also into SW.
With SKIP_HW flag, the filter is only added to SW.
With SKIP_SW flag, the filter is added to HW and an error is returned
to user on failure.
These flags are mutually exclusive.
There was an earlier discussion on these semantics in the following email
thread.
http://thread.gmane.org/gmane.linux.network/401733
====================

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