netfilter: nf_tables: map basechain priority to hardware priority
authorPablo Neira Ayuso <pablo@netfilter.org>
Fri, 16 Aug 2019 01:24:10 +0000 (03:24 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Aug 2019 21:13:23 +0000 (14:13 -0700)
commit3bc158f8d0330f0ac58597c023acca2234c14616
tree717dbcde06dcd1d5e1f672e3235a190037315c70
parentef01adae0e43cfb2468d0ea07137cc63cf31495c
netfilter: nf_tables: map basechain priority to hardware priority

This patch adds initial support for offloading basechains using the
priority range from 1 to 65535. This is restricting the netfilter
priority range to 16-bit integer since this is what most drivers assume
so far from tc. It should be possible to extend this range of supported
priorities later on once drivers are updated to support for 32-bit
integer priorities.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/netfilter/nf_tables_offload.h
net/netfilter/nf_tables_api.c
net/netfilter/nf_tables_offload.c