@@ -418,7 +418,7 @@ static void efx_start_datapath(struct efx_nic *efx)
efx->net_dev->active_features);
netdev_hw_features_direct_andnot(efx->net_dev, efx->fixed_features);
netdev_active_features_direct_or(efx->net_dev, efx->fixed_features);
- if (efx->net_dev->active_features != old_features)
+ if (!netdev_active_features_equal(efx->net_dev, old_features))
netdev_features_change(efx->net_dev);
/* RX filters may also have scatter-enabled flags */
@@ -645,7 +645,7 @@ static void ef4_start_datapath(struct ef4_nic *efx)
efx->net_dev->active_features);
netdev_hw_features_direct_andnot(efx->net_dev, efx->fixed_features);
netdev_active_features_direct_or(efx->net_dev, efx->fixed_features);
- if (efx->net_dev->active_features != old_features)
+ if (!netdev_active_features_equal(efx->net_dev, old_features))
netdev_features_change(efx->net_dev);
/* RX filters may also have scatter-enabled flags */
@@ -9613,7 +9613,7 @@ int __netdev_update_features(struct net_device *dev)
netdev_for_each_upper_dev_rcu(dev, upper, iter)
features = netdev_sync_upper_features(dev, upper, features);
- if (dev->active_features == features)
+ if (netdev_active_features_equal(dev, features))
goto sync_lower;
netdev_dbg(dev, "Features changed: %pNF -> %pNF\n",
Replace the '==' and '!=' operations of features by netdev_features_equal helpers. Signed-off-by: Jian Shen <shenjian15@huawei.com> --- drivers/net/ethernet/sfc/efx_common.c | 2 +- drivers/net/ethernet/sfc/falcon/efx.c | 2 +- net/core/dev.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)