summaryrefslogtreecommitdiff
path: root/drivers/net/virtio/virtio_ethdev.c
diff options
context:
space:
mode:
authorMaxime Coquelin <maxime.coquelin@redhat.com>2018-07-02 17:25:46 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2018-07-04 17:03:48 +0200
commit2f901132510787c4aaf082e89491422ccdc8c692 (patch)
tree1082306b77c357be11fbe00e6450fdedcd9ac0f2 /drivers/net/virtio/virtio_ethdev.c
parent4174a7b59d05bae1f912b603bc64547ceea7e0c2 (diff)
downloaddpdk-next-eventdev-2f901132510787c4aaf082e89491422ccdc8c692.zip
dpdk-next-eventdev-2f901132510787c4aaf082e89491422ccdc8c692.tar.gz
dpdk-next-eventdev-2f901132510787c4aaf082e89491422ccdc8c692.tar.xz
net/virtio: do not use simple Rx if TCP LRO or VLAN strip
Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com> Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
Diffstat (limited to 'drivers/net/virtio/virtio_ethdev.c')
-rw-r--r--drivers/net/virtio/virtio_ethdev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/virtio/virtio_ethdev.c b/drivers/net/virtio/virtio_ethdev.c
index 1d223d0..15d5b4f 100644
--- a/drivers/net/virtio/virtio_ethdev.c
+++ b/drivers/net/virtio/virtio_ethdev.c
@@ -1909,7 +1909,9 @@ virtio_dev_configure(struct rte_eth_dev *dev)
}
if (rx_offloads & (DEV_RX_OFFLOAD_UDP_CKSUM |
- DEV_RX_OFFLOAD_TCP_CKSUM))
+ DEV_RX_OFFLOAD_TCP_CKSUM |
+ DEV_RX_OFFLOAD_TCP_LRO |
+ DEV_RX_OFFLOAD_VLAN_STRIP))
hw->use_simple_rx = 0;
return 0;