Files
kernel_arpi/net/core
Pablo Neira Ayuso 23cb1fef93 netfilter: nf_tables: bail out early if hardware offload is not supported
[ Upstream commit 3a41c64d9c1185a2f3a184015e2a9b78bfc99c71 ]

If user requests for NFT_CHAIN_HW_OFFLOAD, then check if either device
provides the .ndo_setup_tc interface or there is an indirect flow block
that has been registered. Otherwise, bail out early from the preparation
phase. Moreover, validate that family == NFPROTO_NETDEV and hook is
NF_NETDEV_INGRESS.

Fixes: c9626a2cbd ("netfilter: nf_tables: add hardware offload support")
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-14 18:36:17 +02:00
..
2021-08-05 13:27:50 +01:00
2022-03-08 19:12:41 +01:00
2022-03-08 19:12:41 +01:00
2021-09-03 11:48:28 +01:00
2022-04-13 20:59:09 +02:00
2021-07-22 00:52:04 -07:00
2022-05-25 09:57:35 +02:00
2022-05-01 17:22:24 +02:00