]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sunvnet: hack to work around Solaris VIO bug
authorSowmini Varadhan <sowmini.varadhan@oracle.com>
Thu, 21 Jan 2016 12:09:49 +0000 (04:09 -0800)
committerAllen Pais <allen.pais@oracle.com>
Thu, 21 Jan 2016 17:42:18 +0000 (23:12 +0530)
commite4f7192a445ba9c603e2853b29958e27cecc3c3d
tree9b0b4b35102fcf743b51686ecf63391238cb8138
parentdc2c6e03d493ace34b4ec31c84a52d437e2f6b9c
sunvnet: hack to work around Solaris VIO bug

Orabug 21895216

port workaround used for Bug 20455702:

This patch works around a problem where Solaris drops packets bound for
physical NICs (i.e., off host) that are using LSO and do not have the VIO v7
descriptor flags VNET_PKT_HASH, VNET_PKT_HCK_IPV4_HDRCKSUM,
VNET_PKT_HCK_FULLCKSUM set along with VNET_PKT_IPV4_LSO.

This patch can't go upstream because it doesn't actually support output
hashing (all packets will hash to '0'). The full and IPv4 header checksum
computations caused by the flags are unnecessary for Linux, but only affect
destinations through the vswitch.
(cherry picked from commit 3839694e54df457997025775894f954ea3185aff)
drivers/net/ethernet/sun/sunvnet.c