diff options
| author | Subash Abhinov Kasiviswanathan <subashab@codeaurora.org> | 2015-10-11 01:38:58 -0600 |
|---|---|---|
| committer | David Keitel <dkeitel@codeaurora.org> | 2016-03-22 11:05:46 -0700 |
| commit | 32f496dc2d6b14ba3410c2919eca05e7f5e75bb0 (patch) | |
| tree | d4370d26d91cfa52b16d7477f4e7a6109eaf37d7 | |
| parent | 42f8729b517fb1d8649ce27b8c302fba8fc93741 (diff) | |
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>
| -rw-r--r-- | net/rmnet_data/rmnet_data_vnd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/rmnet_data/rmnet_data_vnd.c b/net/rmnet_data/rmnet_data_vnd.c index 9efd99e0bc48..6d8f1160fe48 100644 --- a/net/rmnet_data/rmnet_data_vnd.c +++ b/net/rmnet_data/rmnet_data_vnd.c @@ -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; |
