diff options
author | Andrew Rybchenko <arybchik@FreeBSD.org> | 2018-11-23 09:16:07 +0000 |
---|---|---|
committer | Andrew Rybchenko <arybchik@FreeBSD.org> | 2018-11-23 09:16:07 +0000 |
commit | 44d836f8d0278c6b948e1b915aa2d561808308bb (patch) | |
tree | 522276b89e8bd0fd6304374a982f4ca0d1027ab8 | |
parent | e9038435e7c52dcf37c6b1643f88b9486f90fa0a (diff) | |
download | src-44d836f8d0278c6b948e1b915aa2d561808308bb.tar.gz src-44d836f8d0278c6b948e1b915aa2d561808308bb.zip |
sfxge(4): add RSS key size define
Submitted by: Ivan Malov <ivan.malov at oktetlabs.ru>
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18082
Notes
Notes:
svn path=/head/; revision=340812
-rw-r--r-- | sys/dev/sfxge/common/ef10_rx.c | 3 | ||||
-rw-r--r-- | sys/dev/sfxge/common/efx.h | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/sfxge/common/ef10_rx.c b/sys/dev/sfxge/common/ef10_rx.c index 2fc09827e27d..0befdad996d7 100644 --- a/sys/dev/sfxge/common/ef10_rx.c +++ b/sys/dev/sfxge/common/ef10_rx.c @@ -588,6 +588,9 @@ ef10_rx_scale_key_set( { efx_rc_t rc; + EFX_STATIC_ASSERT(EFX_RSS_KEY_SIZE == + MC_CMD_RSS_CONTEXT_SET_KEY_IN_TOEPLITZ_KEY_LEN); + if (rss_context == EFX_RSS_CONTEXT_DEFAULT) { if (enp->en_rss_context_type == EFX_RX_SCALE_UNAVAILABLE) { rc = ENOTSUP; diff --git a/sys/dev/sfxge/common/efx.h b/sys/dev/sfxge/common/efx.h index 8db375730dcc..6a29d07b8a43 100644 --- a/sys/dev/sfxge/common/efx.h +++ b/sys/dev/sfxge/common/efx.h @@ -1912,6 +1912,7 @@ typedef enum efx_rx_hash_support_e { EFX_RX_HASH_AVAILABLE /* Insert hash with/without RSS */ } efx_rx_hash_support_t; +#define EFX_RSS_KEY_SIZE 40 /* RSS key size (bytes) */ #define EFX_RSS_TBL_SIZE 128 /* Rows in RX indirection table */ #define EFX_MAXRSS 64 /* RX indirection entry range */ #define EFX_MAXRSS_LEGACY 16 /* See bug16611 and bug17213 */ |