virtio: clarify feature bit handling
authorStephen Hemminger <shemming@brocade.com>
Thu, 11 Jun 2015 15:53:26 +0000 (08:53 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 12 Jun 2015 12:43:40 +0000 (14:43 +0200)
commit4a92b67151be116ac69faec67dc570d543123205
tree03b47c28e6a200a90e11eb18cdb754abb0bad4dd
parent2704623620fa725ce511f7393466cc5703e451e6
virtio: clarify feature bit handling

Change the features from bit mask to bit number. This allows the
DPDK driver to use the definitions from Linux (yes the header
files already use a license compatiable with DPDK). This makes DPDK
driver handle future feature bit changes.

Get rid of double negative code in the feature bit intialization.
Instead just have a new define with the list of feature bits implemented.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Changchun Ouyang <changchun.ouyang@intel.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_ethdev.h
drivers/net/virtio/virtio_pci.h
drivers/net/virtio/virtqueue.h