Add support for multiple GEN tasks running on the same core 03/56103/1
authorIgor Shaula <igor.shaula@intel.com>
Fri, 30 Mar 2018 12:05:50 +0000 (14:05 +0200)
committerDeepak S <deepak.s@linux.intel.com>
Fri, 20 Apr 2018 10:57:52 +0000 (16:27 +0530)
resolve memory allocation issue

Change-Id: I90bbf711a6a7a4869e5024c061470d9779839a60
Signed-off-by: Igor Shaula <igor.shaula@intel.com>
VNFs/DPPD-PROX/packet_utils.c

index c22183b..9e5bcde 100644 (file)
@@ -159,7 +159,7 @@ void task_init_l3(struct task_base *tbase, struct task_args *targ)
        static char hash_name[30];
        uint32_t n_entries = MAX_ARP_ENTRIES * 4;
        const int socket_id = rte_lcore_to_socket_id(targ->lconf->id);
-       sprintf(hash_name, "A%03d_mac_table", targ->lconf->id);
+       sprintf(hash_name, "A%03d_%03d_mac_table", targ->lconf->id, targ->id);
 
        hash_name[0]++;