Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c1bc1bb authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "net: rmnet_data: Disable generic receive offload by default"

parents 0e42302c 0e9337dc
Loading
Loading
Loading
Loading
+14 −0
Original line number Original line Diff line number Diff line
@@ -503,6 +503,18 @@ static void rmnet_vnd_setup(struct net_device *dev)
	INIT_LIST_HEAD(&dev_conf->flow_head);
	INIT_LIST_HEAD(&dev_conf->flow_head);
}
}


/**
 * rmnet_vnd_setup() - net_device initialization helper function
 * @dev:      Virtual network device
 *
 * Called during device initialization. Disables GRO.
 */
static void rmnet_vnd_disable_offload(struct net_device *dev)
{
	dev->wanted_features &= ~NETIF_F_GRO;
	__netdev_update_features(dev);
}

/* ***************** Exposed API ******************************************** */
/* ***************** Exposed API ******************************************** */


/**
/**
@@ -616,6 +628,8 @@ int rmnet_vnd_create_dev(int id, struct net_device **new_device,
		*new_device = dev;
		*new_device = dev;
	}
	}


	rmnet_vnd_disable_offload(dev);

	LOGM("Registered device %s", dev->name);
	LOGM("Registered device %s", dev->name);
	return rc;
	return rc;
}
}