i40e/base: set AQ count after memory allocation
authorHelin Zhang <helin.zhang@intel.com>
Tue, 8 Mar 2016 08:14:15 +0000 (16:14 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 16 Mar 2016 16:24:39 +0000 (17:24 +0100)
commit4a08159e6e7897f850017444fe3f3f1996c1babe
tree9f4a6865c68b5713ec3e714b9aa9284baf5eb7bc
parent9f44dd3d8ad447c7f797a9564d30a15e5ab7f72b
i40e/base: set AQ count after memory allocation

The standard way to check if the AQ is enabled is to look at
the count field. So it should only set this field after it has
successfully allocated memory.

Signed-off-by: Helin Zhang <helin.zhang@intel.com>
Acked-by: Jingjing Wu <jingjing.wu@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
drivers/net/i40e/base/i40e_adminq.c