|
@@ -6293,8 +6293,10 @@ static netdev_features_t netdev_sync_upper_features(struct net_device *lower,
|
|
|
{
|
|
|
netdev_features_t upper_disables = NETIF_F_UPPER_DISABLES;
|
|
|
netdev_features_t feature;
|
|
|
+ int feature_bit;
|
|
|
|
|
|
- for_each_netdev_feature(&upper_disables, feature) {
|
|
|
+ for_each_netdev_feature(&upper_disables, feature_bit) {
|
|
|
+ feature = __NETIF_F_BIT(feature_bit);
|
|
|
if (!(upper->wanted_features & feature)
|
|
|
&& (features & feature)) {
|
|
|
netdev_dbg(lower, "Dropping feature %pNF, upper dev %s has it off.\n",
|
|
@@ -6311,8 +6313,10 @@ static void netdev_sync_lower_features(struct net_device *upper,
|
|
|
{
|
|
|
netdev_features_t upper_disables = NETIF_F_UPPER_DISABLES;
|
|
|
netdev_features_t feature;
|
|
|
+ int feature_bit;
|
|
|
|
|
|
- for_each_netdev_feature(&upper_disables, feature) {
|
|
|
+ for_each_netdev_feature(&upper_disables, feature_bit) {
|
|
|
+ feature = __NETIF_F_BIT(feature_bit);
|
|
|
if (!(features & feature) && (lower->features & feature)) {
|
|
|
netdev_dbg(upper, "Disabling feature %pNF on lower dev %s.\n",
|
|
|
&feature, lower->name);
|