summaryrefslogtreecommitdiff
path: root/examples/ip_fragmentation
diff options
context:
space:
mode:
authorOlivier Matz <olivier.matz@6wind.com>2016-06-13 11:43:03 +0200
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-06-15 16:29:18 +0200
commitd1082cdedeb5d55e702c923a389b4de6b09c0679 (patch)
tree66ec9720faab84c3e9900ab59eb96b963b3cbd3e /examples/ip_fragmentation
parent4b42e90ef0e421dc777f2b2e377eb237cd3675fa (diff)
downloaddpdk-d1082cdedeb5d55e702c923a389b4de6b09c0679.zip
dpdk-d1082cdedeb5d55e702c923a389b4de6b09c0679.tar.gz
dpdk-d1082cdedeb5d55e702c923a389b4de6b09c0679.tar.xz
examples: fix duplicated lpm6 name
When starting the ip_fragmentation or ip_reassembly example on several sockets, it fails. The name of the lpm6 table is the same on every socket, resulting in a table creation failure (-EEXIST). The failure appeared after: commit f82f705b635d ("lpm: fix allocation of an existing object") Indeed, before this commit the returned value when the existing table, which was probably a bug in that case: one table for 2 sockets for lpm6, and one per socket for lpm. Fixes: 74de12b7b63a ("examples/ip_fragmentation: overhaul") Fixes: b84fb4cb88ff ("examples/ip_reassembly: overhaul") Reported-by: Heng Ding <hengx.ding@intel.com> Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'examples/ip_fragmentation')
-rw-r--r--examples/ip_fragmentation/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/ip_fragmentation/main.c b/examples/ip_fragmentation/main.c
index b00f1e6..2f45264 100644
--- a/examples/ip_fragmentation/main.c
+++ b/examples/ip_fragmentation/main.c
@@ -785,7 +785,7 @@ init_mem(void)
RTE_LOG(INFO, IP_FRAG, "Creating LPM6 table on socket %i\n", socket);
snprintf(buf, sizeof(buf), "IP_FRAG_LPM_%i", socket);
- lpm6 = rte_lpm6_create("IP_FRAG_LPM6", socket, &lpm6_config);
+ lpm6 = rte_lpm6_create(buf, socket, &lpm6_config);
if (lpm6 == NULL) {
RTE_LOG(ERR, IP_FRAG, "Cannot create LPM table\n");
return -1;