mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-29 04:09:39 +00:00
net: rmnet: set NETIF_F_LLTX flag
The rmnet_vnd_setup(), which is the callback of ->ndo_start_xmit() is allowed to call concurrently because it uses RCU protected data. So, it doesn't need tx lock. Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1033a215fe
commit
376d5307e0
1 changed files with 2 additions and 0 deletions
|
@ -212,6 +212,8 @@ void rmnet_vnd_setup(struct net_device *rmnet_dev)
|
||||||
rmnet_dev->needs_free_netdev = true;
|
rmnet_dev->needs_free_netdev = true;
|
||||||
rmnet_dev->ethtool_ops = &rmnet_ethtool_ops;
|
rmnet_dev->ethtool_ops = &rmnet_ethtool_ops;
|
||||||
|
|
||||||
|
rmnet_dev->features |= NETIF_F_LLTX;
|
||||||
|
|
||||||
/* This perm addr will be used as interface identifier by IPv6 */
|
/* This perm addr will be used as interface identifier by IPv6 */
|
||||||
rmnet_dev->addr_assign_type = NET_ADDR_RANDOM;
|
rmnet_dev->addr_assign_type = NET_ADDR_RANDOM;
|
||||||
eth_random_addr(rmnet_dev->perm_addr);
|
eth_random_addr(rmnet_dev->perm_addr);
|
||||||
|
|
Loading…
Reference in a new issue