aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sfxge/common
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchik@FreeBSD.org>2016-01-14 09:12:40 +0000
committerAndrew Rybchenko <arybchik@FreeBSD.org>2016-01-14 09:12:40 +0000
commit410298b13812c3610bfcbcf8f63e9ff15c3e2529 (patch)
treeaa9f6a56d6bafac5b4a07ea95c1408cf91d860df /sys/dev/sfxge/common
parent72cda83214f188a51643837d589ee8249329f586 (diff)
downloadsrc-410298b13812c3610bfcbcf8f63e9ff15c3e2529.tar.gz
src-410298b13812c3610bfcbcf8f63e9ff15c3e2529.zip
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. MFC after: 2 days Differential Revision: https://reviews.freebsd.org/D4916
Notes
Notes: svn path=/head/; revision=293899
Diffstat (limited to 'sys/dev/sfxge/common')
-rw-r--r--sys/dev/sfxge/common/hunt_nic.c5
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 a1cd990e6b87..823393e7859a 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;