cls_flower: Offload unmasked key
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | cls_flower: Set addr_type when ip mask is non-zeronet/ | +38 | 0 replies | |
| 2/3 | cls_flower: Pass the unmasked key to hwinclude/ net/ net/ | +259 | 2 replies | |
| 3/3 | cls_flower: Allow flow offloading though masked key exist.net/ | +19 | 3 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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