]> git.baikalelectronics.ru Git - kernel.git/commit
test_bpf: fix incorrect netdev features
authorJian Shen <shenjian15@huawei.com>
Wed, 22 Jun 2022 13:50:02 +0000 (21:50 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Aug 2022 12:23:23 +0000 (14:23 +0200)
commit87c8712152f6a65ee4a61afb7b2cbd35561b2f83
tree3abb29cdc43e3e7c8310b9f997876e1eae16e4b1
parent3e58dfe1c7135cdda98941b7f4bc534cbdaeb892
test_bpf: fix incorrect netdev features

[ Upstream commit 42961f0f8bf42cf6f0e75fb028dcc805ac151f00 ]

The prototype of .features is netdev_features_t, it should use
NETIF_F_LLTX and NETIF_F_HW_VLAN_STAG_TX, not NETIF_F_LLTX_BIT
and NETIF_F_HW_VLAN_STAG_TX_BIT.

Fixes: edd4d5639eba ("bpf, testing: Introduce 'gso_linear_no_head_frag' skb_segment test")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/r/20220622135002.8263-1-shenjian15@huawei.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
lib/test_bpf.c