netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 net-next 0/2] Enable SW only or HW only offloads with u32 classifier
@ 2016-05-13  0:08 Sridhar Samudrala
  2016-05-13  0:08 ` [PATCH v2 net-next 1/2] net: sched: Move TCA_CLS_FLAGS_SKIP_HW to uapi header file Sridhar Samudrala
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Sridhar Samudrala @ 2016-05-13  0:08 UTC (permalink / raw)
  To: john.r.fastabend, netdev

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

Sridhar Samudrala (2):
  Move TCA_CLS_FLAGS_SKIP_HW to uapi header file.
  Add support for skip-sw flag to tc u32 classifier.

 include/net/pkt_cls.h        | 20 +++++++++++++++++---
 include/uapi/linux/pkt_cls.h |  4 ++++
 net/sched/cls_u32.c          | 45 +++++++++++++++++++++++++++++++++++---------
 3 files changed, 57 insertions(+), 12 deletions(-)

-- 
2.1.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-16 17:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-13  0:08 [PATCH v2 net-next 0/2] Enable SW only or HW only offloads with u32 classifier Sridhar Samudrala
2016-05-13  0:08 ` [PATCH v2 net-next 1/2] net: sched: Move TCA_CLS_FLAGS_SKIP_HW to uapi header file Sridhar Samudrala
2016-05-13 17:40   ` John Fastabend
2016-05-13  0:08 ` [PATCH v2 net-next 2/2] net: cls_u32: Add support for skip-sw flag to tc u32 classifier Sridhar Samudrala
2016-05-13 18:15   ` John Fastabend
2016-05-16 17:31 ` [PATCH v2 net-next 0/2] Enable SW only or HW only offloads with " David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).