summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/sfc/farch_regs.h
diff options
context:
space:
mode:
authorJon Cooper <jcooper@solarflare.com>2012-10-18 18:49:54 +0400
committerBen Hutchings <bhutchings@solarflare.com>2013-08-28 01:28:24 +0400
commit43a3739d559f02cb00d92a51d8f2a7d294a1b5e5 (patch)
treea3453b2992800f3b7a811a732b0bcb116eb16ae2 /drivers/net/ethernet/sfc/farch_regs.h
parent64a27752dc249bf2ccae53457e6d72e1281d758d (diff)
downloadlinux-43a3739d559f02cb00d92a51d8f2a7d294a1b5e5.tar.xz
sfc: Generalise packet hash lookup to support EF10 RX prefix
EF10 uses an entirely different RX prefix format from Falcon-arch. Extend struct efx_nic_type to describe this. [bwh: Also replace the magic numbers used for the Falcon-arch RX prefix] Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Diffstat (limited to 'drivers/net/ethernet/sfc/farch_regs.h')
-rw-r--r--drivers/net/ethernet/sfc/farch_regs.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/sfc/farch_regs.h b/drivers/net/ethernet/sfc/farch_regs.h
index 00ef17a59187..491b1039006b 100644
--- a/drivers/net/ethernet/sfc/farch_regs.h
+++ b/drivers/net/ethernet/sfc/farch_regs.h
@@ -2925,4 +2925,8 @@
#define FSF_AZ_DRV_GEN_EV_MAGIC_LBN 0
#define FSF_AZ_DRV_GEN_EV_MAGIC_WIDTH 32
+/* RX packet prefix */
+#define FS_BZ_RX_PREFIX_HASH_OFST 12
+#define FS_BZ_RX_PREFIX_SIZE 16
+
#endif /* EFX_FARCH_REGS_H */