net/enic: fix probe for secondary process
authorHyong Youb Kim <hyonkim@cisco.com>
Fri, 6 Sep 2019 06:50:19 +0000 (23:50 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 23 Oct 2019 14:43:08 +0000 (16:43 +0200)
commite92a4b4148d3caadb5d3a8351fdf0fa3a2a709c2
tree8edf995677014b8568c0281d9e63e0cc1c62ada6
parent9e06e39b3c6fbcf03d233cbe1fb9604d45dc866f
net/enic: fix probe for secondary process

Only the primary process initializes the adapter private data and
rte_eth_dev_data. For secondary processes, do not touch them.

Secondary processes need to select the right Tx and Rx handlers. Pick
the same handlers that the primary process uses.

Fixes: fefed3d1e62c ("enic: new driver")
Cc: stable@dpdk.org
Reported-by: Dirk-Holger Lenz <dirk.lenz@ng4t.com>
Signed-off-by: Hyong Youb Kim <hyonkim@cisco.com>
Tested-by: Dirk-Holger Lenz <dirk.lenz@ng4t.com>
Reviewed-by: John Daley <johndale@cisco.com>
drivers/net/enic/enic.h
drivers/net/enic/enic_ethdev.c
drivers/net/enic/enic_main.c
drivers/net/enic/enic_rxtx_vec_avx2.c