net/txgbe: fix VLAN filter setting for VF
authorJiawen Wu <jiawenwu@trustnetic.com>
Wed, 14 Jul 2021 06:05:48 +0000 (14:05 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 23 Jul 2021 14:06:32 +0000 (16:06 +0200)
Fix the function call error on VLAN filter table address setting for VF.

Fixes: aa1ae7941e71 ("net/txgbe: support VF VLAN")
Cc: stable@dpdk.org
Signed-off-by: Jiawen Wu <jiawenwu@trustnetic.com>
drivers/net/txgbe/txgbe_ethdev_vf.c

index 6f577f4..0bae6ff 100644 (file)
@@ -823,7 +823,7 @@ static void txgbevf_set_vfta_all(struct rte_eth_dev *dev, bool on)
                        mask = 1;
                        for (j = 0; j < 32; j++) {
                                if (vfta & mask)
-                                       txgbe_set_vfta(hw, (i << 5) + j, 0,
+                                       hw->mac.set_vfta(hw, (i << 5) + j, 0,
                                                       on, false);
                                mask <<= 1;
                        }