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

Commit 381c5671 authored by Antoine Tenart's avatar Antoine Tenart Committed by David S. Miller
Browse files

net: mvpp2: enable UDP/TCP checksum over IPv6



This patch adds the NETIF_F_IPV6_CSUM to the driver's features to enable
UDP/TCP checksum over IPv6. No extra configuration of the engine is
needed on top of the IPv4 counterpart, which already is in the features
list (NETIF_F_IP_CSUM).

Signed-off-by: default avatarAntoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 93ff130f
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -8321,7 +8321,8 @@ static int mvpp2_port_probe(struct platform_device *pdev,
		}
	}

	features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_TSO;
	features = NETIF_F_SG | NETIF_F_IP_CSUM | NETIF_F_IPV6_CSUM |
		   NETIF_F_TSO;
	dev->features = features | NETIF_F_RXCSUM;
	dev->hw_features |= features | NETIF_F_RXCSUM | NETIF_F_GRO |
			    NETIF_F_HW_VLAN_CTAG_FILTER;