enic: Check inner ip proto for pseudo header csum
authorGovindarajulu Varadarajan <gvaradar@cisco.com>
Thu, 1 Mar 2018 19:07:19 +0000 (11:07 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Mar 2018 23:19:25 +0000 (18:19 -0500)
commit4a464a2b06cebf7ba5b387fcdadf790cdeb36ac9
tree57892241bc159617d317619785a4694687e1a141
parent129fbeecbccdeaa4f89aaea5d1698aae44ae4b4b
enic: Check inner ip proto for pseudo header csum

To compute pseudo IP header csum, we need to check the inner header for
encap pkt, not outer IP header.

Also add pseudo csum for IPv6 inner pkt.

Signed-off-by: Govindarajulu Varadarajan <gvaradar@cisco.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cisco/enic/enic_main.c