net/enic: fix multi-process operation
authorJohn Daley <johndale@cisco.com>
Mon, 11 Sep 2017 18:58:33 +0000 (11:58 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
commit0e804034dc9a5e27aa3bd9763457cd70e8970b81
tree551bd2ddb834e5880202b223609b8d1b412d2661
parente8c1642a3ce7517d8c974ed16446d5fc2c917e39
net/enic: fix multi-process operation

- Use rte_malloc() instead of malloc() for the per device 'vdev' structure
  so that it can be shared across processes.
- Only initialize the device if the process type is RTE_PROC_PRIMARY
- Only allow the primary process to do queue setup, start/stop, promisc
  allmulticast, mac add/del, mtu.

Fixes: fefed3d1e62c ("enic: new driver")
Cc: stable@dpdk.org
Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Aaron Conole <aconole@redhat.com>
doc/guides/nics/features/enic.ini
drivers/net/enic/base/vnic_dev.c
drivers/net/enic/enic_ethdev.c
drivers/net/enic/enic_main.c