Some VF RX DMA registers are using PF's addresses by mistake.
Although some of them are sharing the same addresses,
we should use the right ones.

Fixes: 0198848a47f5 ("ixgbe: add access to specific device info")

Signed-off-by: Wenzhuo Lu <wenzhuo.lu at intel.com>
---
 drivers/net/ixgbe/ixgbe_regs.h | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/net/ixgbe/ixgbe_regs.h b/drivers/net/ixgbe/ixgbe_regs.h
index ca4725d..773e169 100644
--- a/drivers/net/ixgbe/ixgbe_regs.h
+++ b/drivers/net/ixgbe/ixgbe_regs.h
@@ -145,17 +145,17 @@ static const struct reg_info ixgbe_regs_rxdma[] = {
 };

 static const struct reg_info ixgbevf_regs_rxdma[] = {
-       {IXGBE_RDBAL(0), 8, 0x40, "IXGBE_RDBAL"},
-       {IXGBE_RDBAH(0), 8, 0x40, "IXGBE_RDBAH"},
-       {IXGBE_RDLEN(0), 8, 0x40, "IXGBE_RDLEN"},
-       {IXGBE_RDH(0), 8, 0x40, "IXGBE_RDH"},
-       {IXGBE_RDT(0), 8, 0x40, "IXGBE_RDT"},
-       {IXGBE_RXDCTL(0), 8, 0x40, "IXGBE_RXDCTL"},
-       {IXGBE_SRRCTL(0), 8, 0x40, "IXGBE_SRRCTL"},
+       {IXGBE_VFRDBAL(0), 8, 0x40, "IXGBE_VFRDBAL"},
+       {IXGBE_VFRDBAH(0), 8, 0x40, "IXGBE_VFRDBAH"},
+       {IXGBE_VFRDLEN(0), 8, 0x40, "IXGBE_VFRDLEN"},
+       {IXGBE_VFRDH(0), 8, 0x40, "IXGBE_VFRDH"},
+       {IXGBE_VFRDT(0), 8, 0x40, "IXGBE_VFRDT"},
+       {IXGBE_VFRXDCTL(0), 8, 0x40, "IXGBE_VFRXDCTL"},
+       {IXGBE_VFSRRCTL(0), 8, 0x40, "IXGBE_VFSRRCTL"},
        {IXGBE_VFPSRTYPE, 1, 1, "IXGBE_VFPSRTYPE"},
        {IXGBE_VFRSCCTL(0), 8, 0x40, "IXGBE_VFRSCCTL"},
-       {IXGBE_PVFDCA_RXCTRL(0), 8, 0x40, "IXGBE_PVFDCA_RXCTRL"},
-       {IXGBE_PVFDCA_TXCTRL(0), 8, 0x40, "IXGBE_PVFDCA_TXCTRL"},
+       {IXGBE_VFDCA_RXCTRL(0), 8, 0x40, "IXGBE_VFDCA_RXCTRL"},
+       {IXGBE_VFDCA_TXCTRL(0), 8, 0x40, "IXGBE_VFDCA_TXCTRL"},
        {0, 0, 0, ""}
 };

-- 
1.9.3

Reply via email to