net/virtio: keep Rx handler whatever the Tx queue config
authorOlivier Matz <olivier.matz@6wind.com>
Thu, 7 Sep 2017 12:13:46 +0000 (14:13 +0200)
committerYuanhan Liu <yliu@fridaylinux.org>
Tue, 10 Oct 2017 13:52:27 +0000 (15:52 +0200)
commit0964936308cdbe7a22927f8aee558e746a23d730
tree5dbccaeb316eb3c190426fe545f7e04bf475263a
parent02dd0e212934a4f775bf8c023d55eba897075a62
net/virtio: keep Rx handler whatever the Tx queue config

Split use_simple_rxtx into use_simple_rx and use_simple_tx,
and ensure that only use_simple_tx is updated when txq flags
forces to use the standard Tx handler.

This change is also useful for next commit (disable simple Rx
path when Rx checksum is requested).

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_pci.h
drivers/net/virtio/virtio_rxtx.c
drivers/net/virtio/virtio_user_ethdev.c