[dpdk-dev,13/14] INC_VEC

Message ID 1413779906-28113-14-git-send-email-huawei.xie@intel.com (mailing list archive)
State Accepted, archived
Headers

Commit Message

Huawei Xie Oct. 20, 2014, 4:38 a.m. UTC
  mergeable feature doesn't work with latest mbuf change.
find that we could disable IXGBE_INC_VECTOR as a workaround.
root cause is WIP.

Signed-off-by: Huawei Xie <huawei.xie@intel.com>
---
 examples/vhost/main.c | 7 +++++++
 1 file changed, 7 insertions(+)
  

Patch

diff --git a/examples/vhost/main.c b/examples/vhost/main.c
index fb22df4..18ab82e 100644
--- a/examples/vhost/main.c
+++ b/examples/vhost/main.c
@@ -2862,7 +2862,14 @@  MAIN(int argc, char *argv[])
 	ret = us_vhost_parse_args(argc, argv);
 	if (ret < 0)
 		rte_exit(EXIT_FAILURE, "Invalid argument\n");
+#ifdef RTE_IXGBE_INC_VECTOR
+	if (mergeable == 1) {
+		rte_exit(EXIT_FAILURE, 
+			"sorry, mergeable feature doesn't work with vec sg recv, " \
+			"please disable it in cfg as a workaround\n");
+	}
 
+#endif
 	for (lcore_id = 0; lcore_id < RTE_MAX_LCORE; lcore_id ++)
 		if (rte_lcore_is_enabled(lcore_id))
 			lcore_ids[core_id ++] = lcore_id;