enic: fix checksum validation for IPv6
[ Upstream commit 7596175e99b3d4bce28022193efd954c201a782a ] In case of IPv6 pkts, ipv4_csum_ok is 0. Because of this, driver does not set skb->ip_summed. So IPv6 rx checksum is not offloaded. Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
ff0a4fa3e7
commit
16570a4ab8
1 changed files with 1 additions and 1 deletions
|
@ -1180,7 +1180,7 @@ static void enic_rq_indicate_buf(struct vnic_rq *rq,
|
||||||
* CHECSUM_UNNECESSARY.
|
* CHECSUM_UNNECESSARY.
|
||||||
*/
|
*/
|
||||||
if ((netdev->features & NETIF_F_RXCSUM) && tcp_udp_csum_ok &&
|
if ((netdev->features & NETIF_F_RXCSUM) && tcp_udp_csum_ok &&
|
||||||
ipv4_csum_ok)
|
(ipv4_csum_ok || ipv6))
|
||||||
skb->ip_summed = CHECKSUM_UNNECESSARY;
|
skb->ip_summed = CHECKSUM_UNNECESSARY;
|
||||||
|
|
||||||
if (vlan_stripped)
|
if (vlan_stripped)
|
||||||
|
|
Loading…
Add table
Reference in a new issue