Skip to content

Commit

Permalink
net: mvpp2: enable UDP/TCP checksum over IPv6
Browse files Browse the repository at this point in the history
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: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Antoine Tenart authored and David S. Miller committed Mar 5, 2018
1 parent 93ff130 commit 381c567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/marvell/mvpp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 381c567

Please sign in to comment.