interface: fix the incorrect sizes/offsets in the tso segmentation 81/20281/1
authorAndrew Yourtchenko <ayourtch@gmail.com>
Wed, 19 Jun 2019 12:09:51 +0000 (12:09 +0000)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 21 Jun 2019 12:25:24 +0000 (12:25 +0000)
commit5c588504218357bd60b79501ccf8721ff65bced3
tree6a680acf96753ef0bd242ca0731861510a14a5fc
parent03e099f935a5be25ce5d6833e5fba0ec75386573
interface: fix the incorrect sizes/offsets in the tso segmentation

The copying of the first segment copied too small amount of data.
The copying of the second and subsequent segments used the wrong
data offset - for the case of GSO enabled it starts from 12 bytes
earlier.

Change-Id: I3adc532c175babc1ca1e121c7e12e6cafbdb9974
Type: fix
Ticket: VPP-1700
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
(cherry picked from commit 4f740c8f0085c0cd576744c00bf50a9d9b111470)
src/vnet/interface_output.c