net/flower: Introduce hardware offload support
This patch is based on a patch made by John Fastabend. It adds support for offloading cls_flower. when NETIF_F_HW_TC is on: flags = 0 => Rule will be processed twice - by hardware, and if still relevant, by software. flags = SKIP_HW => Rull will be processed by software only If hardware fail/not capabale to apply the rule, operation will NOT fail. Filter will be processed by SW only. Acked-by:Jiri Pirko <jiri@mellanox.com> Suggested-by:
John Fastabend <john.r.fastabend@intel.com> Signed-off-by:
Amir Vadai <amir@vadai.me> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- include/linux/netdevice.h 2 additions, 0 deletionsinclude/linux/netdevice.h
- include/net/pkt_cls.h 14 additions, 0 deletionsinclude/net/pkt_cls.h
- include/uapi/linux/pkt_cls.h 2 additions, 0 deletionsinclude/uapi/linux/pkt_cls.h
- net/sched/cls_flower.c 63 additions, 1 deletionnet/sched/cls_flower.c
Loading
Please register or sign in to comment