Skip to content

tc software only

John Fastabend netdev 3 versions – In review

Get series with b4
b4 am 20160226154858.5338.90569.stgit@john-Precision-Tower-5810

Versions newest first · linked by author and title

  1. v3 Latest3 patches 11 repliesIn review
  2. v23 patches 5 repliesSuperseded
  3. v14 patches 25 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3net: sched: consolidate offload decision in cls_u32include/net/pkt_cls.h net/sched/cls_u32.c+9 -48 replies
2/3net: cls_u32: move TC offload feature bit into cls_u32 offload logicdrivers/net/ethernet/intel/ixgbe/ixgbe_main.c include/net/pkt_cls.h+3 -31 reply
3/3net: sched: cls_u32 add bit to specify software only rulesinclude/net/pkt_cls.h include/uapi/linux/pkt_cls.h net/sched/cls_u32.c+39 -121 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJiri Pirko
1/3A-b
2/3A-b
3/3A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [net-next PATCH v3 0/3] tc software only

This adds a software only flag to tc but incorporates a bunch of comments from the original attempt at this.

First instead of having the offload decision logic be embedded in cls_u32 I lifted into cls_pkt.h so it can be used anywhere and named the flag TCA_CLS_FLAGS_SKIP_HW (Thanks Jiri ;)

In order to do this I put the flag defines in pkt_cls.h as well. However it was suggested that perhaps these flags could be lifted into the upper layer of TCA_ as well but I'm afraid this can not be done with existing tc design as far as I can tell. The problem is the filters are packed and unpacked in the classifier specific code and pushing the flags through the high level doesn't seem easily doable. And we already have this design where classifiers handle generic options such as actions and policers. So I think adding one more thing here is OK as 'tc', et. al. already know how to handle this type of thing.

Thanks,
.John

---

John Fastabend (3):
net: sched: consolidate offload decision in cls_u32
net: cls_u32: move TC offload feature bit into cls_u32 offload logic
net: sched: cls_u32 add bit to specify software only rules

 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c |    3 --
 include/net/pkt_cls.h                         |   17 +++++++++++
 include/uapi/linux/pkt_cls.h                  |    1 +
 net/sched/cls_u32.c                           |   37 ++++++++++++++++++-------
 4 files changed, 45 insertions(+), 13 deletions(-)