net/i40e: fix variable assignment
authorJingjing Wu <jingjing.wu@intel.com>
Mon, 18 Sep 2017 18:53:06 +0000 (02:53 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:48 +0000 (02:49 +0200)
commit9df0826a42e890006c77861c74b79907f33b8201
tree453aebec970c8aa6b94347ea48022031bcce6de8
parentc7755aef465f3d596d92b09b71f4c4b3e52027a9
net/i40e: fix variable assignment

rx/tx_queue_setup functions are shared between PF and VF
drivers. So the var 'pf' should not be assigned at the beginning.
This patch fixes the issue, and also corrects the return err code.

Fixes: b6583ee40265 ("i40e: full VMDQ pools support")
Cc: stable@dpdk.org
Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>
drivers/net/i40e/i40e_rxtx.c