All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mvneta: Driver and hardware supports IPv6 offload, so enable it
@ 2017-09-01 14:49 Andrew Pilloud
  2017-09-01 17:36 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Pilloud @ 2017-09-01 14:49 UTC (permalink / raw)
  To: Thomas Petazzoni; +Cc: netdev, Andrew Pilloud

The mvneta driver and hardware supports IPv6 offload, however it
isn't enabled. Set the NETIF_F_IPV6_CSUM feature to inform the
network layer that this driver can offload IPV6 TCP and UDP
checksums. This change has been tested on an Armada 370 and the
feature support confirmed with several device datasheets
including the Armada XP and Armada 3700.

Signed-off-by: Andrew Pilloud <andrewpilloud@igneoussystems.com>
---
 drivers/net/ethernet/marvell/mvneta.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c
index 0aab74c2a209..369ad971b42a 100644
--- a/drivers/net/ethernet/marvell/mvneta.c
+++ b/drivers/net/ethernet/marvell/mvneta.c
@@ -4332,7 +4332,7 @@ static int mvneta_probe(struct platform_device *pdev)
 		}
 	}
 
-	dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO;
+	dev->features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM | NETIF_F_TSO;
 	dev->hw_features |= dev->features;
 	dev->vlan_features |= dev->features;
 	dev->priv_flags |= IFF_LIVE_ADDR_CHANGE;
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] mvneta: Driver and hardware supports IPv6 offload, so enable it
  2017-09-01 14:49 [PATCH] mvneta: Driver and hardware supports IPv6 offload, so enable it Andrew Pilloud
@ 2017-09-01 17:36 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2017-09-01 17:36 UTC (permalink / raw)
  To: andrewpilloud; +Cc: thomas.petazzoni, netdev

From: Andrew Pilloud <andrewpilloud@igneoussystems.com>
Date: Fri,  1 Sep 2017 07:49:49 -0700

> The mvneta driver and hardware supports IPv6 offload, however it
> isn't enabled. Set the NETIF_F_IPV6_CSUM feature to inform the
> network layer that this driver can offload IPV6 TCP and UDP
> checksums. This change has been tested on an Armada 370 and the
> feature support confirmed with several device datasheets
> including the Armada XP and Armada 3700.
> 
> Signed-off-by: Andrew Pilloud <andrewpilloud@igneoussystems.com>

Applied to net-next, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-09-01 17:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-01 14:49 [PATCH] mvneta: Driver and hardware supports IPv6 offload, so enable it Andrew Pilloud
2017-09-01 17:36 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.