net/ice/base: fix PF ID for DCF
authorDapeng Yu <dapengx.yu@intel.com>
Mon, 13 Sep 2021 02:40:02 +0000 (10:40 +0800)
committerQi Zhang <qi.z.zhang@intel.com>
Mon, 13 Sep 2021 02:48:09 +0000 (04:48 +0200)
commitf979702337c69c7b73a78a10cbfb700c74b3b508
tree98bf9e4acd4c539f3228e6855447c5a704e7aed1
parentdaf3332e11ed7ad6cc12e0aa69cbb8b602bc5685
net/ice/base: fix PF ID for DCF

In original implementation, if DCF is created on PF1, the PF ID is
still 0, but not 1. Without the right PF ID, the ACL will not work.

This patch makes VF to get its parent's physical function ID.

Fixes: 0b02c9519432 ("net/ice: handle PF initialization by DCF")
Cc: stable@dpdk.org
Signed-off-by: Dapeng Yu <dapengx.yu@intel.com>
Acked-by: Haiyue Wang <haiyue.wang@intel.com>
drivers/net/ice/base/ice_switch.c