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;
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(-)