summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHanoh Haim <hhaim@cisco.com>2016-11-10 21:20:11 +0200
committerHanoh Haim <hhaim@cisco.com>2016-11-11 12:22:51 +0200
commit50746d0dc7db5cb49bfd6ab9e5942ecdea694734 (patch)
tree7537152fa67cd50f5839039d6f69fd47e928838c
parent1ec8425e4664083682469da1ac969654524f711d (diff)
mlx5 reduce the number of packets
Signed-off-by: Hanoh Haim <hhaim@cisco.com>
-rw-r--r--src/debug.cpp2
-rw-r--r--src/dpdk/drivers/net/mlx5/mlx5_fdir.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index 3a9cd506..86ed0df0 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -341,7 +341,7 @@ int CTrexDebug::verify_hw_rules(bool recv_all) {
rte_mbuf_t *m = NULL;
CPhyEthIF * lp;
rte_mbuf_t * rx_pkts[32];
- int sent_num = 20;
+ int sent_num = 8; /* reduce the size, there are driver that can handle only burst of 8 in QUEUE 0 */
int ret = 0;
for (int pkt_num = 0; pkt_num < sizeof(test_pkts) / sizeof (test_pkts[0]); pkt_num++) {
diff --git a/src/dpdk/drivers/net/mlx5/mlx5_fdir.c b/src/dpdk/drivers/net/mlx5/mlx5_fdir.c
index c8340530..84fb5d03 100644
--- a/src/dpdk/drivers/net/mlx5/mlx5_fdir.c
+++ b/src/dpdk/drivers/net/mlx5/mlx5_fdir.c
@@ -398,8 +398,6 @@ priv_fdir_flow_add(struct priv *priv,
spec_ipv6->val.traffic_class =
(desc->tos) & spec_ipv6->mask.traffic_class;// & mask->ipv4_mask.tos;
- printf(" %x %x \n",spec_ipv6->val.traffic_class,spec_ipv6->mask.traffic_class);
-
/* Update priority */
attr->priority = 1;