Browse Source

net: qualcomm: rmnet: Add support for GSO

Real devices may support scatter gather(SG), so enable SG on rmnet
devices to use GSO. GSO reduces CPU cycles by 20% for a rate of
146Mpbs for a single stream TCP connection.

Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Subash Abhinov Kasiviswanathan 7 years ago
parent
commit
0c9214d5ed
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c

+ 1 - 0
drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c

@@ -190,6 +190,7 @@ int rmnet_vnd_newlink(u8 id, struct net_device *rmnet_dev,
 
 
 	rmnet_dev->hw_features = NETIF_F_RXCSUM;
 	rmnet_dev->hw_features = NETIF_F_RXCSUM;
 	rmnet_dev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
 	rmnet_dev->hw_features |= NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM;
+	rmnet_dev->hw_features |= NETIF_F_SG;
 
 
 	rc = register_netdevice(rmnet_dev);
 	rc = register_netdevice(rmnet_dev);
 	if (!rc) {
 	if (!rc) {