Current implementation for netmap backend does not really probe the netmap kernel module to know whether virtio-net header is supported for a specific netmap port. This is only correct for VALE ports, but it is not correct for hardware ports, pipes, etc.
This patch properly implements the missing probe mechanism, fixing the implementation of the involved hooks (has_vnet_hdr, has_vnet_hdr_len, has_ufo, ...). CHANGELOG: - renamed netmap_do_set_vnet_hdr_len to netmap_fd_set_vnet_hdr_len - abort() when failing to restore previous vnet-hdr length - moved update to s->vnet_hdr_len to netmap_set_vnet_hdr_len Vincenzo Maffione (1): net: netmap: probe netmap interface for virtio-net header net/netmap.c | 59 ++++++++++++++++++++++++++++++++++++++--------------------- 1 file changed, 38 insertions(+), 21 deletions(-) -- 2.7.1