summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorarybchik <arybchik@FreeBSD.org>2015-05-21 08:55:06 +0000
committerarybchik <arybchik@FreeBSD.org>2015-05-21 08:55:06 +0000
commitec420a0fba1b52592e904a327f76756eae3e4493 (patch)
tree940d293007a36015e7ca6d75a9f30162d501812d /sys
parent511909eef43c51e1bc4372a7e87cde8fe9248bd7 (diff)
downloadFreeBSD-src-ec420a0fba1b52592e904a327f76756eae3e4493.zip
FreeBSD-src-ec420a0fba1b52592e904a327f76756eae3e4493.tar.gz
MFC: r282897
sfxge: add missing const qualifier to sfxge_link_mode Sponsored by: Solarflare Communications, Inc.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sfxge/sfxge_port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sfxge/sfxge_port.c b/sys/dev/sfxge/sfxge_port.c
index fd1c20a..8afb1dc 100644
--- a/sys/dev/sfxge/sfxge_port.c
+++ b/sys/dev/sfxge/sfxge_port.c
@@ -624,7 +624,7 @@ fail:
return (rc);
}
-static int sfxge_link_mode[EFX_PHY_MEDIA_NTYPES][EFX_LINK_NMODES] = {
+static const int sfxge_link_mode[EFX_PHY_MEDIA_NTYPES][EFX_LINK_NMODES] = {
[EFX_PHY_MEDIA_CX4] = {
[EFX_LINK_10000FDX] = IFM_ETHER | IFM_FDX | IFM_10G_CX4,
},
OpenPOWER on IntegriCloud