HomeFreeBSD

sfxge(4): simplify the code to parse RSS hash type

Description

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

Details

Provenance
arybchikAuthored on
Differential Revision
D18268: sfxge(4): simplify the code to parse RSS hash type
Parents
rS341305: sfxge(4): check buffer size for hash flags
Branches
Unknown
Tags
Unknown