net/cxgbevf: do not allocate control queues
authorShagun Agrawal <shaguna@chelsio.com>
Thu, 26 Jul 2018 07:28:06 +0000 (12:58 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 2 Aug 2018 09:24:40 +0000 (11:24 +0200)
commita0163693bcc4f78f50c3471dbcacc2ca1394f71f
tree79e5381eb3eae48e399a26f2bc718c8a6dfef81f
parent217d1816265ddfff008436d7f019914b712aaffc
net/cxgbevf: do not allocate control queues

Control queues can not be allocated for VFs. So, add check to
only allocate control queues for PFs. This fixes adapter crash
when an attempt is made to allocate control queues for VFs.

Fixes: 3a3aaabc ("net/cxgbe: add control queue to communicate filter requests")

Signed-off-by: Shagun Agrawal <shaguna@chelsio.com>
Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
drivers/net/cxgbe/cxgbe_ethdev.c