summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qualcomm
diff options
context:
space:
mode:
authorTaehee Yoo <ap420073@gmail.com>2020-03-08 14:47:06 +0100
committerDavid S. Miller <davem@davemloft.net>2020-03-09 05:36:37 +0100
commit376d5307e0572688997abdd7414da43002335cb8 (patch)
treebdb40feb1be0fb863dd09b704b62b8bd6b65fee8 /drivers/net/ethernet/qualcomm
parentMerge branch 'bareudp-several-code-cleanup-for-bareudp-module' (diff)
downloadlinux-376d5307e0572688997abdd7414da43002335cb8.tar.xz
linux-376d5307e0572688997abdd7414da43002335cb8.zip
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>
Diffstat (limited to 'drivers/net/ethernet/qualcomm')
-rw-r--r--drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c b/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
index d7c52e398e4a..d58b51d277f1 100644
--- a/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
+++ b/drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c
@@ -212,6 +212,8 @@ void rmnet_vnd_setup(struct net_device *rmnet_dev)
rmnet_dev->needs_free_netdev = true;
rmnet_dev->ethtool_ops = &rmnet_ethtool_ops;
+ rmnet_dev->features |= NETIF_F_LLTX;
+
/* This perm addr will be used as interface identifier by IPv6 */
rmnet_dev->addr_assign_type = NET_ADDR_RANDOM;
eth_random_addr(rmnet_dev->perm_addr);