net/virtio: improve Tx offload features negotiation
authorMaxime Coquelin <maxime.coquelin@redhat.com>
Mon, 2 Jul 2018 15:25:45 +0000 (17:25 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 4 Jul 2018 15:03:48 +0000 (17:03 +0200)
commit4174a7b59d05bae1f912b603bc64547ceea7e0c2
treed93a7f91a8aef71811dbb285446f83e65abdaf13
parent57f818963d809df7b2800b60ac98fc6f68a4e414
net/virtio: improve Tx offload features negotiation

This patch improves the Tx offload features selection depending
on whether the application request for offloads.

When the application doesn't request for Tx offload features,
the corresponding features bits aren't negotiated.

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
drivers/net/virtio/virtio_ethdev.c
drivers/net/virtio/virtio_ethdev.h