net: netmap: probe netmap interface for virtio-net header
commit9fbad2ca36f099699ebdf91c523a9ddc34d6b1c4
authorVincenzo Maffione <v.maffione@gmail.com>
Wed, 24 Feb 2016 10:30:41 +0000 (24 11:30 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 8 Mar 2016 07:34:18 +0000 (8 15:34 +0800)
treea649a421690ebcc1de0055ce27de976c24bdc2c5
parent3a2d44f6dd1d6cc1e5a5ebfa736a72e035c41d1b
net: netmap: probe netmap interface for virtio-net header

Previous implementation of has_ufo, has_vnet_hdr, has_vnet_hdr_len, etc.
did not really probe for virtio-net header support for the netmap
interface attached to the backend. These callbacks were correct for
VALE ports, but incorrect for hardware NICs, pipes, monitors, etc.

This patch fixes the implementation to work properly with all kinds
of netmap ports.

Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/netmap.c