net/ena: fix SIGFPE with 0 Rx queue
authorDaria Kolistratova <daria.kolistratova@intel.com>
Tue, 26 Jun 2018 17:38:56 +0000 (18:38 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 2 Jul 2018 23:35:58 +0000 (01:35 +0200)
commit361913ad6f8c05fc541fe4bfdae3b0dc095ae3af
tree9f6a4fea1bfb861169568760c142ad534133e6f0
parent050316a88313e2cc0ac1c9155a04143cbd96a52e
net/ena: fix SIGFPE with 0 Rx queue

When the number of rx queues is 0 (what can be when application does
not receive) failed with SIGFPE.
It happens when the application is also requesting ETH_MQ_RX_RSS_FLAG
in the rte_dev->data->dev_conf.rxmode.mq_mode.
Fixed adding zero rx queues check.

Signed-off-by: Daria Kolistratova <daria.kolistratova@intel.com>
Acked-by: Michal Krawczyk <mk@semihalf.com>
drivers/net/ena/ena_ethdev.c