net/enic: fix queue stop and start
authorJohn Daley <johndale@cisco.com>
Tue, 12 Jul 2016 19:24:47 +0000 (12:24 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 15 Jul 2016 21:37:13 +0000 (23:37 +0200)
commit837e68ae94a2db471c7e1c158bab5517d9a408fc
tree8413b640b4dead85969027683d458aa5834b770e
parent954828b8be39f3b77a1869f0371bc9d759b075de
net/enic: fix queue stop and start

The exported device start and stop functions where not setting the queue
states to RTE_ETH_QUEUE_STATE_STARTED and RTE_ETH_QUEUE_STATE_STOPPED.
After starting the device, the RTE queue stop function would not call
the enic queue stop function since queue was already marked as stopped.

Put queue state updates in the lower level queue start/stop functions
which are called by both device and queue start/stop functions.

Fixes: fefed3d1e62c ("enic: new driver")

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