DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/vhost: convert to new Rx offload API
@ 2018-05-22 11:36 Maxime Coquelin
  2018-05-22 11:41 ` Ferruh Yigit
  2018-05-22 11:53 ` Tiwei Bie
  0 siblings, 2 replies; 8+ messages in thread
From: Maxime Coquelin @ 2018-05-22 11:36 UTC (permalink / raw)
  To: dev, tiwei.bie, ferruh.yigit; +Cc: Maxime Coquelin

Signed-off-by: Maxime Coquelin <maxime.coquelin@redhat.com>
---
 drivers/net/vhost/rte_eth_vhost.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c
index f473bbbb3..aadb2327c 100644
--- a/drivers/net/vhost/rte_eth_vhost.c
+++ b/drivers/net/vhost/rte_eth_vhost.c
@@ -491,9 +491,9 @@ eth_dev_configure(struct rte_eth_dev *dev __rte_unused)
 	struct pmd_internal *internal = dev->data->dev_private;
 	const struct rte_eth_rxmode *rxmode = &dev->data->dev_conf.rxmode;
 
-	internal->vlan_strip = rxmode->hw_vlan_strip;
+	internal->vlan_strip = !!(rxmode->offloads & DEV_RX_OFFLOAD_VLAN_STRIP);
 
-	if (rxmode->hw_vlan_filter)
+	if (rxmode->offloads & DEV_RX_OFFLOAD_VLAN_FILTER)
 		VHOST_LOG(WARNING,
 			"vhost(%s): vlan filtering not available\n",
 			internal->dev_name);
-- 
2.14.3

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-05-22 12:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-22 11:36 [dpdk-dev] [PATCH] net/vhost: convert to new Rx offload API Maxime Coquelin
2018-05-22 11:41 ` Ferruh Yigit
2018-05-22 11:49   ` Ferruh Yigit
2018-05-22 12:34     ` Ferruh Yigit
2018-05-22 11:53 ` Tiwei Bie
2018-05-22 12:09   ` Tiwei Bie
2018-05-22 12:12     ` Maxime Coquelin
2018-05-22 12:16       ` Tiwei Bie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).