diff options
author | arybchik <arybchik@FreeBSD.org> | 2016-01-20 07:57:18 +0000 |
---|---|---|
committer | arybchik <arybchik@FreeBSD.org> | 2016-01-20 07:57:18 +0000 |
commit | 4b9f4885a94a52b439b65ffde691258c46220338 (patch) | |
tree | d10d0a039136e63e58abc50bf5d80894aeee50b7 /sys/dev/sfxge/common | |
parent | 59fb3e0b1e265bbf4ced042c0e57e00d2994ad67 (diff) | |
download | FreeBSD-src-4b9f4885a94a52b439b65ffde691258c46220338.zip FreeBSD-src-4b9f4885a94a52b439b65ffde691258c46220338.tar.gz |
MFC r293899
sfxge: cleanup: adjust efx_mcdi_get_port_modes() comment for clarity
Fix an explanatory comment which did not explain very well.
Submitted by: Richard Houldsworth <rhouldsworth at solarflare.com>
Reviewed by: gnn
Sponsored by: Solarflare Communications, Inc.
Diffstat (limited to 'sys/dev/sfxge/common')
-rw-r--r-- | sys/dev/sfxge/common/hunt_nic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/sfxge/common/hunt_nic.c b/sys/dev/sfxge/common/hunt_nic.c index a1cd990..823393e 100644 --- a/sys/dev/sfxge/common/hunt_nic.c +++ b/sys/dev/sfxge/common/hunt_nic.c @@ -112,7 +112,10 @@ efx_mcdi_get_port_modes( goto fail1; } - /* Accept pre-Medford size (8 bytes - no CurrentMode field) */ + /* + * Require only Modes and DefaultMode fields. + * (CurrentMode field was added for Medford) + */ if (req.emr_out_length_used < MC_CMD_GET_PORT_MODES_OUT_CURRENT_MODE_OFST) { rc = EMSGSIZE; |