HomeFreeBSD

sfxge(4): use simpler code to check hash algorithm type

Description

sfxge(4): use simpler code to check hash algorithm type

The API which is used to list supported hash flags verifies
hash algorithm choice before writing the output. This check
is based on a switch() statement which has only two options
and no distinctive actions to be conducted for each of them.
Use simpler code instead of switch() to improve readability.

Submitted by: Ivan Malov <ivan.malov at oktetlabs.ru>
Sponsored by: Solarflare Communications, Inc.
Differential Revision: https://reviews.freebsd.org/D18266

Details

Provenance
arybchikAuthored on
Differential Revision
D18266: sfxge(4): use simpler code to check hash algorithm type
Parents
rS341303: sfxge(4): add support to get active FEC type
Branches
Unknown
Tags
Unknown