ibmveth: calculate gso_segs for large packets
authorThomas Falcon <tlfalcon@linux.vnet.ibm.com>
Wed, 14 Dec 2016 00:15:09 +0000 (18:15 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Apr 2017 07:30:08 +0000 (09:30 +0200)
commit403a728d1a35111103669aa125dcecfbe04e6872
treee46258e5f1dfa1cf01c64f619d7609f7a26d427f
parent65596042c3af1c3578f5e478f512f595d7fa31d0
ibmveth: calculate gso_segs for large packets

commit 94acf164dc8f1184e8d0737be7125134c2701dbe upstream.

Include calculations to compute the number of segments
that comprise an aggregated large packet.

Signed-off-by: Thomas Falcon <tlfalcon@linux.vnet.ibm.com>
Reviewed-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Reviewed-by: Jonathan Maxwell <jmaxwell37@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/ibm/ibmveth.c