devices: af-packet gso mtu 78/31078/4
authorNathan Skrzypczak <nathan.skrzypczak@gmail.com>
Mon, 1 Feb 2021 16:13:59 +0000 (17:13 +0100)
committerDamjan Marion <dmarion@me.com>
Fri, 5 Feb 2021 19:02:38 +0000 (19:02 +0000)
commitffc6bdcd38b8209050671d3d86f943c37887a7b7
tree4150c463c4b3bfbc91751d55ec272dc81d421289
parent5398dfb2592d525018997a991a4f7bfde515adc4
devices: af-packet gso mtu

Type: fix

Set the GSO flag when buffer length exceeds the
linux mtu. Don't listen for mtu changes on linux
side for now.

This also fixes a TX issue, as we only search for
valid frames on tx to the extent of n_left, we might
stay stuck.

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