net/fm10k: fix secondary process crash
authorXiao Wang <xiao.w.wang@intel.com>
Tue, 28 Mar 2017 03:58:55 +0000 (20:58 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:03:02 +0000 (19:03 +0200)
commit88e4ed70b3a0b279383ddac43ef231ec518d6b4d
tree514f3371f77f6db5407ef06bb4f238b7bc905b5a
parent2880f54a58d3c2cb65dd436f4a3ae4d8bdc8b0cb
net/fm10k: fix secondary process crash

If the primary process has initialized all the queues to vector
pmd mode, the secondary process should not use scalar code path,
because the per queue data structures haven't been prepared for
that, e.g. txq->ops is for vector Tx rather than scalar Tx.

Fixes: a6ce64a97520 ("fm10k: introduce vector driver")
Cc: stable@dpdk.org
Signed-off-by: Xiao Wang <xiao.w.wang@intel.com>
Acked-by: Jing Chen <jing.d.chen@intel.com>
drivers/net/fm10k/fm10k_ethdev.c