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: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
This commit is contained in:
Subash Abhinov Kasiviswanathan 2015-10-11 01:38:58 -06:00 committed by Gerrit - the friendly Code Review server
parent c281fa8708
commit 4812ab2451
1 changed files with 3 additions and 1 deletions

View File

@ -590,8 +590,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;