net/i40e: fix send admin queue command before init
authorQi Zhang <qi.z.zhang@intel.com>
Fri, 28 Sep 2018 03:20:01 +0000 (11:20 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 11 Oct 2018 16:53:47 +0000 (18:53 +0200)
commit0a1b657838c2c0546ebc6469ed2840c5a9a796f4
tree68e229098234261baa2b896509dd949f07c88213
parent911462eb4a5fc38b4e3581d167a1541207a69d5c
net/i40e: fix send admin queue command before init

We should not issue Admin Queue command before Admin Queue is initialized.
But this happened in i40e_hw_init and i40e_filter_input_set_init.

The patch fixes the issue by proper reordering.

Fixes: b6a0ec418274 ("i40e: use AQ for Rx control register read/write")
Cc: stable@dpdk.org
Reported-by: Anand Rawat <anand.rawat@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Beilei Xing <beilei.xing@intel.com>
drivers/net/i40e/i40e_ethdev.c