]> git.karo-electronics.de Git - linux-beck.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)
commitb89587a7af4b2a2e0682c304224be4041e993548
tree620db413ff4d8be7bd66b3346023ea64cf744010
parent79c11f2e3fd3e0e3594d4155821ef426153a773f
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