summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbevf/regs.h
diff options
context:
space:
mode:
authorEmil Tantilov <emil.s.tantilov@intel.com>2014-12-06 09:19:09 +0000
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2015-02-05 19:57:47 -0800
commit9295edb472dcd85cb27d2f23dc2e6bae054a0228 (patch)
treebb0a61aa7371dbdf4f2981f488c4515746fc0826 /drivers/net/ethernet/intel/ixgbevf/regs.h
parent2dc571aa61d3fe5b20167f16e0390e749cd4bb97 (diff)
downloadtalos-op-linux-9295edb472dcd85cb27d2f23dc2e6bae054a0228.tar.gz
talos-op-linux-9295edb472dcd85cb27d2f23dc2e6bae054a0228.zip
ixgbevf: add RSS support for X550
X550 provides RSS registers for configuring RSS per VF. This patch introduces ixgbevf_setup_vfmrqc() which uses the VFRETA, VFRSSRK and VFMRQC registers to configure RSS on X550. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbevf/regs.h')
-rw-r--r--drivers/net/ethernet/intel/ixgbevf/regs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbevf/regs.h b/drivers/net/ethernet/intel/ixgbevf/regs.h
index 09dd8f698bea..3e712fd6e695 100644
--- a/drivers/net/ethernet/intel/ixgbevf/regs.h
+++ b/drivers/net/ethernet/intel/ixgbevf/regs.h
@@ -69,6 +69,16 @@
#define IXGBE_VFGOTC_LSB 0x02020
#define IXGBE_VFGOTC_MSB 0x02024
#define IXGBE_VFMPRC 0x01034
+#define IXGBE_VFMRQC 0x3000
+#define IXGBE_VFRSSRK(x) (0x3100 + ((x) * 4))
+#define IXGBE_VFRETA(x) (0x3200 + ((x) * 4))
+
+/* VFMRQC bits */
+#define IXGBE_VFMRQC_RSSEN 0x00000001 /* RSS Enable */
+#define IXGBE_VFMRQC_RSS_FIELD_IPV4_TCP 0x00010000
+#define IXGBE_VFMRQC_RSS_FIELD_IPV4 0x00020000
+#define IXGBE_VFMRQC_RSS_FIELD_IPV6 0x00100000
+#define IXGBE_VFMRQC_RSS_FIELD_IPV6_TCP 0x00200000
#define IXGBE_WRITE_FLUSH(a) (IXGBE_READ_REG(a, IXGBE_VFSTATUS))
OpenPOWER on IntegriCloud