diff options
author | Andrew Rybchenko <arybchik@FreeBSD.org> | 2018-11-30 07:07:20 +0000 |
---|---|---|
committer | Andrew Rybchenko <arybchik@FreeBSD.org> | 2018-11-30 07:07:20 +0000 |
commit | d085cfff22b83044df62ea1dd10d6dc3588da613 (patch) | |
tree | 4106a612f2eef66cdb10a3e1510607aa623fd25e /sys/dev/sfxge/common/efx.h | |
parent | 94a7dab5bfc3a2ad5ed3e5fb9c739bec049b5eba (diff) | |
download | src-d085cfff22b83044df62ea1dd10d6dc3588da613.tar.gz src-d085cfff22b83044df62ea1dd10d6dc3588da613.zip |
sfxge(4): simplify the code to parse RSS hash type
RSS mode bits can be accessed a lot easier in the hash
type value provided that the variable type is uint32_t.
The macro helper can be removed to enhance readability.
Submitted by: Ivan Malov <ivan.malov at oktetlabs.ru>
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18268
Notes
Notes:
svn path=/head/; revision=341306
Diffstat (limited to 'sys/dev/sfxge/common/efx.h')
-rw-r--r-- | sys/dev/sfxge/common/efx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sfxge/common/efx.h b/sys/dev/sfxge/common/efx.h index 3fccc5295afc..10dcc2b08a94 100644 --- a/sys/dev/sfxge/common/efx.h +++ b/sys/dev/sfxge/common/efx.h @@ -2295,7 +2295,7 @@ typedef enum efx_rx_hash_alg_e { * - a combination of legacy flags * - a combination of EFX_RX_HASH() flags */ -typedef unsigned int efx_rx_hash_type_t; +typedef uint32_t efx_rx_hash_type_t; typedef enum efx_rx_hash_support_e { EFX_RX_HASH_UNAVAILABLE = 0, /* Hardware hash not inserted */ |