diff mbox series

[RFCv2,net-next,072/167] net: rionet: use netdev feature helpers

Message ID 20210929155334.12454-73-shenjian15@huawei.com (mailing list archive)
State RFC
Delegated to: Netdev Maintainers
Headers show
Series net: extend the netdev_features_t | expand

Commit Message

shenjian (K) Sept. 29, 2021, 3:51 p.m. UTC
Use netdev_feature_xxx helpers to replace the logical operation
for netdev features.

Signed-off-by: Jian Shen <shenjian15@huawei.com>
---
 drivers/net/rionet.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/net/rionet.c b/drivers/net/rionet.c
index 2056d6ad04b5..eac3e882cf5a 100644
--- a/drivers/net/rionet.c
+++ b/drivers/net/rionet.c
@@ -513,7 +513,8 @@  static int rionet_setup_netdev(struct rio_mport *mport, struct net_device *ndev)
 	/* MTU range: 68 - 4082 */
 	ndev->min_mtu = ETH_MIN_MTU;
 	ndev->max_mtu = RIONET_MAX_MTU;
-	ndev->features = NETIF_F_LLTX;
+	netdev_feature_zero(&ndev->features);
+	netdev_feature_set_bit(NETIF_F_LLTX_BIT, &ndev->features);
 	SET_NETDEV_DEV(ndev, &mport->dev);
 	ndev->ethtool_ops = &rionet_ethtool_ops;