]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6f74a5f76af20b2ef7ad9f5bd5bd985bf29d4e8c
tree717dbcde06dcd1d5e1f672e3235a190037315c70
parent5d9eb68b9180aee0524243ceb918ee4f6ebe86a6
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