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)
[ Upstream commit 9676feccacdb0571791c88b23e3b7ac4e7c9c457 ]

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: cf204a718357 ("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

index 68d125b409f201fcf03f07c82055b0b02f466f32..84f5dd3b0fc7b4977503bab1970d74b4850e5e28 100644 (file)
@@ -8890,9 +8890,9 @@ static struct skb_segment_test skb_segment_tests[] __initconst = {
                .build_skb = build_test_skb_linear_no_head_frag,
                .features = NETIF_F_SG | NETIF_F_FRAGLIST |
                            NETIF_F_HW_VLAN_CTAG_TX | NETIF_F_GSO |
-                           NETIF_F_LLTX_BIT | NETIF_F_GRO |
+                           NETIF_F_LLTX | NETIF_F_GRO |
                            NETIF_F_IPV6_CSUM | NETIF_F_RXCSUM |
-                           NETIF_F_HW_VLAN_STAG_TX_BIT
+                           NETIF_F_HW_VLAN_STAG_TX
        }
 };