svn commit: r340812 - head/sys/dev/sfxge/common
Andrew Rybchenko
arybchik at FreeBSD.org
Fri Nov 23 09:16:12 UTC 2018
Author: arybchik
Date: Fri Nov 23 09:16:07 2018
New Revision: 340812
URL: https://svnweb.freebsd.org/changeset/base/340812
Log:
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
Modified:
head/sys/dev/sfxge/common/ef10_rx.c
head/sys/dev/sfxge/common/efx.h
Modified: head/sys/dev/sfxge/common/ef10_rx.c
==============================================================================
--- head/sys/dev/sfxge/common/ef10_rx.c Fri Nov 23 09:15:56 2018 (r340811)
+++ head/sys/dev/sfxge/common/ef10_rx.c Fri Nov 23 09:16:07 2018 (r340812)
@@ -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;
Modified: head/sys/dev/sfxge/common/efx.h
==============================================================================
--- head/sys/dev/sfxge/common/efx.h Fri Nov 23 09:15:56 2018 (r340811)
+++ head/sys/dev/sfxge/common/efx.h Fri Nov 23 09:16:07 2018 (r340812)
@@ -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 */
More information about the svn-src-head
mailing list