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
This commit is contained in:
arybchik 2018-11-23 09:16:07 +00:00
parent cced2ad775
commit f7e885bdee
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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 */