RFC netfilter: add hardware offload infrastructure
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest2 patches 7 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | net: flow_offload: add flow_block_cb APIdrivers/ drivers/ drivers/ +7 more | +207 | 2 replies | |
| 2/2 | netfilter: nf_tables: add hardware offload supportinclude/ include/ include/ +7 more | +620 | 4 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH net-next,RFC 0/2] netfilter: add hardware offload infrastructure
Hi,
This patchset adds initial hardware offload support for nftables through the existing netdev_ops->ndo_setup_tc() interface, the TC_SETUP_CLSFLOWER classifier and the flow rule API.
Patch 1 move the flow block callback infrastructure to
net/core/flow_offload.c. More structure and enumeration definitions currently in include/net/pkt_cls.h can be also there to reuse this from the netfilter codebase.
Patch 2 adds hardware offload support for nftables.
This patchset depends on a previous patchset:
[PATCH net-next,RFC 0/9] net: sched: prepare to reuse per-block callbacks from netfilter
More information at: https://marc.info/?l=netfilter-devel&m=155623884016026&w=2
Comments welcome, thanks.
Pablo Neira Ayuso (2):
net: flow_offload: add flow_block_cb API
netfilter: nf_tables: add hardware offload support
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 22 +-- drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 54 +++--- drivers/net/ethernet/netronome/nfp/abm/cls.c | 2 +- drivers/net/ethernet/netronome/nfp/abm/main.h | 2 +- .../net/ethernet/netronome/nfp/flower/offload.c | 18 +- include/net/flow_offload.h | 48 +++++ include/net/netfilter/nf_tables.h | 13 ++ include/net/netfilter/nf_tables_offload.h | 76 ++++++++ include/net/pkt_cls.h | 40 +--- include/uapi/linux/netfilter/nf_tables.h | 2 + net/core/flow_offload.c | 77 ++++++++ net/dsa/slave.c | 2 +- net/netfilter/Makefile | 2 +- net/netfilter/nf_tables_api.c | 16 +- net/netfilter/nf_tables_offload.c | 216 +++++++++++++++++++++ net/netfilter/nft_cmp.c | 53 +++++ net/netfilter/nft_immediate.c | 31 +++ net/netfilter/nft_meta.c | 27 +++ net/netfilter/nft_payload.c | 187 ++++++++++++++++++ net/sched/cls_api.c | 140 +++---------- 20 files changed, 827 insertions(+), 201 deletions(-) create mode 100644 include/net/netfilter/nf_tables_offload.h create mode 100644 net/netfilter/nf_tables_offload.c
Signature · 1 line
2.11.0