9df0826a42
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>