]> git.baikalelectronics.ru Git - kernel.git/commit
xen-netback: add gso_segs calculation
authorPaul Durrant <Paul.Durrant@citrix.com>
Tue, 17 Dec 2013 11:44:35 +0000 (11:44 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Dec 2013 20:11:49 +0000 (15:11 -0500)
commit23f65880091da45a8a6e227121cb924f455a4c3e
tree620db413ff4d8be7bd66b3346023ea64cf744010
parent5bf0aa65937df986bcf5f05bd1ac099aeea0e8db
xen-netback: add gso_segs calculation

netback already has code which parses IPv4 and v6 headers to set up checksum
offsets and these are always applied to GSO packets being sent from
frontends. It's therefore suboptimal that GSOs are being marked
SKB_GSO_DODGY to defer the gso_segs calculation when netback already has all
necessary information to hand to do the calculation. This patch adds that
calculation.

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>
Cc: Eric Dumazet <eric.dumazet@gmail.com>
Acked-by: Eric Dumazet <edumazet@google.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c