Loading net/rmnet_data/rmnet_data_vnd.c +14 −0 Original line number Original line Diff line number Diff line Loading @@ -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 ******************************************** */ /** /** Loading Loading @@ -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; } } Loading Loading
net/rmnet_data/rmnet_data_vnd.c +14 −0 Original line number Original line Diff line number Diff line Loading @@ -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 ******************************************** */ /** /** Loading Loading @@ -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; } } Loading