From 7de16b05fa2ef6feeec8370b36037a59aeb1f8e5 Mon Sep 17 00:00:00 2001 From: Ido Barnea Date: Mon, 14 Dec 2015 05:12:45 +0200 Subject: Changes only to DPDK files: dpdk22 40G fixes for TTL and ip_protocol match and IPv6 support + TX hang issue fix --- src/dpdk22/lib/librte_mbuf/rte_mbuf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/dpdk22/lib/librte_mbuf/rte_mbuf.h') diff --git a/src/dpdk22/lib/librte_mbuf/rte_mbuf.h b/src/dpdk22/lib/librte_mbuf/rte_mbuf.h index f234ac9a..683b2ef3 100644 --- a/src/dpdk22/lib/librte_mbuf/rte_mbuf.h +++ b/src/dpdk22/lib/librte_mbuf/rte_mbuf.h @@ -975,6 +975,9 @@ rte_mbuf_refcnt_set(struct rte_mbuf *m, uint16_t new_value) static inline uint16_t rte_mbuf_refcnt_update(struct rte_mbuf *m, int16_t value) { + // TREX_PATCH - The code in #if 0 caused tx queue to hang when running: + // sudo ./t-rex-64-o -f avl/sfr_delay_10_1g_no_bundeling.yaml -m 35 -p -d 100 +#if 0 /* * The atomic_add is an expensive operation, so we don't want to * call it in the case where we know we are the uniq holder of @@ -986,7 +989,7 @@ rte_mbuf_refcnt_update(struct rte_mbuf *m, int16_t value) rte_mbuf_refcnt_set(m, 1 + value); return 1 + value; } - +#endif return (uint16_t)(rte_atomic16_add_return(&m->refcnt_atomic, value)); } -- cgit 1.2.3-korg