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

Commit 9529d2ab authored by Subash Abhinov Kasiviswanathan's avatar Subash Abhinov Kasiviswanathan
Browse files

net: rmnet_data: Add RXCSUM capability to netdevices



Checksum offload is supported in MAPv3/v4. Add the device feature
to indicate this support.

Change-Id: I89caf6d9029cd483759404542681621909de70a3
Signed-off-by: default avatarSubash Abhinov Kasiviswanathan <subashab@codeaurora.org>
parent 710d10e1
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -608,8 +608,10 @@ int rmnet_vnd_create_dev(int id, struct net_device **new_device,
	}

	if (!prefix) {
		/* Configuring DL checksum offload on rmnet_data interfaces */
		dev->hw_features = NETIF_F_RXCSUM;
		/* Configuring UL checksum offload on rmnet_data interfaces */
		dev->hw_features = NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
		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;