net/enic: fix name of classifiers hash table
authorNelson Escobar <neescoba@cisco.com>
Thu, 23 Jun 2016 23:10:02 +0000 (16:10 -0700)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 28 Jun 2016 10:09:52 +0000 (12:09 +0200)
commit9d802d1cb902931cd8236177a1aaf3053143d75e
treecf5fce0a7ba70bbe985ccf2c03b1281b00d6e9d6
parent36351ea34b92ab10daec550abc28a6bdbe863709
net/enic: fix name of classifiers hash table

The enic_clsf_init() function is called once per enic instance, but it
used a static name to create the hash table.  Consequently when using
more than one enic instance, there was a name collision which caused
errors:

EAL: memzone_reserve_aligned_thread_unsafe():
  memzone<RG_HT_enicpmd_clsf_hash> already exists
RING: Cannot reserve memory
HASH: memory allocation failed
PMD: rte_enic_pmd: Init of hash table for clsf failed.
  Flow director feature will not work

This patch changes the name to be unique per enic instance.

Fixes: fefed3d1e62c ("enic: new driver")

Signed-off-by: Nelson Escobar <neescoba@cisco.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic_clsf.c