[PATCH net-next 2/3] cls_flower: Pass the unmasked key to hw

2020-06-19 Thread dsatish
Pass the 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. Signed-off-by: Chandra Kesava Signed-off-by: Prathibha Nagooru Signed-off-by: Satish Dhote --- include/net/flow_offload.h | 45 ++

[PATCH net-next 3/3] cls_flower: Allow flow offloading though masked key exist.

2020-06-19 Thread dsatish
A packet reaches OVS user space, only if, either there is no rule in datapath/hardware or there is race condition that the flow is added to hardware but before it is processed another packet arrives. It is possible hardware as part of its limitations/optimizations remove certain flows. To handle s

[PATCH net-next 1/3] cls_flower: Set addr_type when ip mask is non-zero

2020-06-19 Thread dsatish
Set the address type in the flower key and mask structure only if the mask is non-zero for IPv4 and IPv6 fields. During 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. Th

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

2020-06-19 Thread dsatish
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. T