summaryrefslogtreecommitdiffstats
path: root/VNFs
diff options
context:
space:
mode:
authorDeepak S <deepak.s@linux.intel.com>2017-06-01 08:04:42 +0000
committerDeepak S <deepak.s@linux.intel.com>2017-06-01 08:16:49 +0000
commitb04a6e5dacc458f81097c9b8a172dcbf16d8fd50 (patch)
treeadcd42e1d80571365aad8cc36f756d16ceb7359e /VNFs
parent7c3d41940456132c801ecd30cfc7422066fab5fa (diff)
[BUG]: Fix segfault while sending the packets back
JIRA: SAMPLEVNF-18 This patch fixes segfault due to wrong use of portid while accessing array Change-Id: I1e8b57c27e7c26918bd61cb1d72dbe88ab269c98 Signed-off-by: Deepak S <deepak.s@linux.intel.com>
Diffstat (limited to 'VNFs')
-rw-r--r--VNFs/UDP_Replay/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/VNFs/UDP_Replay/main.c b/VNFs/UDP_Replay/main.c
index 2578169d..0a705f6e 100644
--- a/VNFs/UDP_Replay/main.c
+++ b/VNFs/UDP_Replay/main.c
@@ -1243,7 +1243,7 @@ simple_ipv4_replay_8pkts(struct rte_mbuf *m[8], uint8_t portid, struct lcore_con
/* if not already processed as a arp/icmp pkt */
if (a[i]) {
port->transmit_single_pkt(port, m[i]);
- tx_pkt_count[(uint64_t)port]++;
+ tx_pkt_count[(uint64_t)portid]++;
}
}