]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: fix gso_prefix check
authorPaul Durrant <Paul.Durrant@citrix.com>
Thu, 12 Dec 2013 14:20:13 +0000 (14:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 12 Dec 2013 20:47:18 +0000 (15:47 -0500)
commit18bbb583a98a574cec78a81124eed0114498bac5
treed607b78376eed9c9a82cebb91282f66c023e02aa
parent896a3ac204ad206fc7565fb5dbda5ef7b843a31c
xen-netback: fix gso_prefix check

There is a mistake in checking the gso_prefix mask when passing large
packets to a guest. The wrong shift is applied to the bit - the raw skb
gso type is used rather then the translated one. This leads to large packets
being handed to the guest without the GSO metadata. This patch fixes the
check.

The mistake manifested as errors whilst running Microsoft HCK large packet
offload tests between a pair of Windows 8 VMs. I have verified this patch
fixes those errors.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: David Vrabel <david.vrabel@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c