@@ -1000,8 +1000,9 @@ static void batadv_softif_init_early(struct net_device *dev)
dev->netdev_ops = &batadv_netdev_ops;
dev->needs_free_netdev = true;
dev->priv_destructor = batadv_softif_free;
- dev->features |= NETIF_F_HW_VLAN_CTAG_FILTER | NETIF_F_NETNS_LOCAL;
- dev->features |= NETIF_F_LLTX;
+ netdev_feature_set_bits(NETIF_F_HW_VLAN_CTAG_FILTER |
+ NETIF_F_NETNS_LOCAL, &dev->features);
+ netdev_feature_set_bit(NETIF_F_LLTX_BIT, &dev->features);
dev->priv_flags |= IFF_NO_QUEUE;
/* can't call min_mtu, because the needed variables
Use netdev_feature_xxx helpers to replace the logical operation for netdev features. Signed-off-by: Jian Shen <shenjian15@huawei.com> --- net/batman-adv/soft-interface.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)