interface: add a new cap for virtual interfaces 84/42184/6
authorMohsin Kazmi <[email protected]>
Mon, 27 Jan 2025 16:07:30 +0000 (16:07 +0000)
committerBenoit Ganne <[email protected]>
Tue, 27 May 2025 10:41:09 +0000 (10:41 +0000)
commitc0513c19dce4948066dfa9f4e2d2a27747767586
treebdcd8f305c0ec547b9a057c9db0eb520d6b3057a
parentbbae334b5b9c35bf49707fd3e7d6f6eec6cf984a
interface: add a new cap for virtual interfaces

Type: improvement

The virtual interfaces can not process the headers at variable offsets from start of the packet. It requires some of the packet offload processing to be done in software i.e. checksums or GSO for packets with tunnel headers.
This patch introduces a new capability flag VNET_HW_IF_CAP_TX_FIXED_OFFSET to represent this behavior
in virtual interfaces.

Signed-off-by: Mohsin Kazmi <[email protected]>
Change-Id: I5ec58722b61e2ff52f58e38ff47d795f260bd1d5
src/plugins/af_packet/af_packet.c
src/plugins/vhost/vhost_user.c
src/plugins/vmxnet3/vmxnet3.c
src/vnet/devices/tap/tap.c
src/vnet/devices/virtio/pci.c
src/vnet/interface.h