]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Xen-netback: Fix issue caused by using gso_type wrongly
authorAnnie Li <annie.li@oracle.com>
Mon, 10 Mar 2014 14:58:34 +0000 (22:58 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 11 Mar 2014 01:57:50 +0000 (21:57 -0400)
commit5bd076708664313f2bdbbc1cf71093313b7774a1
tree916992d2ba92a45158462b7f665349071d9755ba
parent2818fa0fa068bcbc87d6bd9064e3c1f72d6fcc2a
Xen-netback: Fix issue caused by using gso_type wrongly

Current netback uses gso_type to check whether the skb contains
gso offload, and this is wrong. Gso_size is the right one to
check gso existence, and gso_type is only used to check gso type.

Some skbs contains nonzero gso_type and zero gso_size, current
netback would treat these skbs as gso and create wrong response
for this. This also causes ssh failure to domu from other server.

V2: use skb_is_gso function as Paul Durrant suggested

Signed-off-by: Annie Li <annie.li@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c