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

Commit 1f998312 authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan
Browse files

net: rmnet_data: Fix incorrect flags for rmnet_data devices



Userspace applications report that SIOCETHTOOL IOCTL fails for
option ETHTOOL_STXCSUM even though rmnet_data devices with
prefix were created. This is because commit I183ba7
("net: rmnet_data: adding support to GRO") replaced the dev
features with NETIF_F_GRO only.

Fix this this by specifying the expected set of dev features.

CRs-fixed: 860895
Change-Id: Ic0935718a3a3f7bab5ea70d81c7dff99ebf0a7fc
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 4c47f344
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -594,7 +594,7 @@ int rmnet_vnd_create_dev(int id, struct net_device **new_device,
		dev->hw_features = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
			NETIF_F_IPV6_UDP_CSUM;
		/* Configuring GRO on rmnet_data interfaces */
		dev->hw_features = NETIF_F_GRO;
		dev->hw_features |= NETIF_F_GRO;
	}

	rc = register_netdevice(dev);