Skip to content

cls_flower: Offload unmasked key

dsatish netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3cls_flower: Set addr_type when ip mask is non-zeronet/sched/cls_flower.c+38 -280 replies
2/3cls_flower: Pass the unmasked key to hwinclude/net/flow_offload.h net/core/flow_offload.c net/sched/cls_flower.c+259 -02 replies
3/3cls_flower: Allow flow offloading though masked key exist.net/sched/cls_flower.c+19 -43 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH net-next 0/3] cls_flower: Offload unmasked key

This series of patches add support for offloading unmasked key along with the masked key to the hardware. This enables hardware to manage its own tables better based on the hardware features/capabilities.

It is possible that hardware as part of its limitations/optimizations remove certain flows. To handle such cases where the hardware lost the flows, tc can offload to hardware if it receives a flow for which there exists an entry in its flow table. To handle such cases TC when it returns EEXIST error, also programs the flow in hardware, if hardware offload is enabled.

This also covers the uses case where addr_type type should be set only if mask for ipv4/v6 is non-zero, as while classifying packet, address type is set based on mask dissector of IPv4 and IPV6 keys, hence while inserting flow also addr type should be set based on the mask availability.

Satish Dhote (3):
cls_flower: Set addr_type when ip mask is non-zero
cls_flower: Pass the unmasked key to the hardware
cls_flower: Allow flow offloading though masked key exist.

 include/net/flow_offload.h |  45 ++++++++++
 net/core/flow_offload.c    | 171 +++++++++++++++++++++++++++++++++++++
 net/sched/cls_flower.c     | 132 +++++++++++++++++++++-------
 3 files changed, 316 insertions(+), 32 deletions(-)
Signature · 1 line
2.17.1