On Thu, 9 May 2019 18:39:49 +0200, Pablo Neira Ayuso wrote: > 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. Jiri requested the drivers remember the block info, so we can't have multiple block binds right now, unless we fix drivers. See: commit d6787147e15d ("net/sched: remove block pointer from common offload structure") for example.