]> git.baikalelectronics.ru Git - kernel.git/commit
netfilter: nf_tables_offload: allow ethernet interface type only
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 19 Nov 2019 22:05:53 +0000 (23:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Nov 2019 19:21:34 +0000 (11:21 -0800)
commitd0a013cdd83b3d69d4d5a3bef201f48037d195aa
treeddc5ed2e305c3e137abafa113497dbc723c915c9
parentc962e67013e6bca50925d0e28a39033eae5ed0a5
netfilter: nf_tables_offload: allow ethernet interface type only

Hardware offload support at this stage assumes an ethernet device in
place. The flow dissector provides the intermediate representation to
express this selector, so extend it to allow to store the interface
type. Flower does not uses this, so skb_flow_dissect_meta() is not
extended to match on this new field.

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