]> git.baikalelectronics.ru Git - kernel.git/commit
gso: Do not perform partial GSO if number of partial segments is 1 or less
authorAlexander Duyck <aduyck@mirantis.com>
Mon, 2 May 2016 16:38:12 +0000 (09:38 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 May 2016 17:32:26 +0000 (13:32 -0400)
commit0d4e21522936db6187658f8b1cdae500f5a93763
tree86b2631c7d53100b87166f8b051447b5e9eb6987
parente8e1060234ced398a93d924ec33ffda12edaa03c
gso: Do not perform partial GSO if number of partial segments is 1 or less

In the event that the number of partial segments is equal to 1 we don't
really need to perform partial segmentation offload.  As such we should
skip multiplying the MSS and instead just clear the partial_segs value
since it will not provide any gain to advertise the frame as being GSO when
it is a single frame.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/skbuff.c