devices: fix af_packet GSO check 85/34585/2
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Thu, 25 Nov 2021 17:44:01 +0000 (18:44 +0100)
committerEd Warnicke <hagbard@gmail.com>
Sat, 27 Nov 2021 15:31:46 +0000 (15:31 +0000)
commit9adcc9778c316d4c94c6734b8c8e4ce0daede820
tree0af9e73a9d29bc5ce632cac0589e086ddc7895ff
parentc6eb7da390fbfaf5bd93ec22a9d2e60e0448d71c
devices: fix af_packet GSO check

Type: fix

This fixes the GSO size calculation in af_packet
which didn't include the ethernet size.
This is not ideal, as we default to the host
side mtu to check whether a packet is GSO or not
and to set the GSO size. But there doesn't seem
to be more info passed with the packets.

Change-Id: I9769e1dd21d5989b4cf67295352b5535454f88d1
Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com>
src/vnet/devices/af_packet/node.c