aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sfxge/sfxge.c
diff options
context:
space:
mode:
authorAndrew Rybchenko <arybchik@FreeBSD.org>2015-03-17 08:21:31 +0000
committerAndrew Rybchenko <arybchik@FreeBSD.org>2015-03-17 08:21:31 +0000
commitebfb5f25464ea84bdab598967232700433589587 (patch)
treebd73b1f7baa8ee8127ed02adfdb1c0e5b9a17b27 /sys/dev/sfxge/sfxge.c
parent95caaf0f54c3ba1c087730ed55148a71b02b525f (diff)
Notes
Diffstat (limited to 'sys/dev/sfxge/sfxge.c')
-rw-r--r--sys/dev/sfxge/sfxge.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/sfxge/sfxge.c b/sys/dev/sfxge/sfxge.c
index 6206099db8717..6dd94cc5b6e46 100644
--- a/sys/dev/sfxge/sfxge.c
+++ b/sys/dev/sfxge/sfxge.c
@@ -57,6 +57,7 @@ __FBSDID("$FreeBSD$");
#include "sfxge.h"
#include "sfxge_rx.h"
+#include "sfxge_version.h"
#define SFXGE_CAP (IFCAP_VLAN_MTU | \
IFCAP_HWCSUM | IFCAP_VLAN_HWCSUM | IFCAP_TSO | \
@@ -475,6 +476,12 @@ sfxge_create(struct sfxge_softc *sc)
if ((error = efx_nic_probe(enp)) != 0)
goto fail5;
+ SYSCTL_ADD_STRING(device_get_sysctl_ctx(dev),
+ SYSCTL_CHILDREN(device_get_sysctl_tree(dev)),
+ OID_AUTO, "version", CTLFLAG_RD,
+ SFXGE_VERSION_STRING, 0,
+ "Driver version");
+
/* Initialize the NVRAM. */
if ((error = efx_nvram_init(enp)) != 0)
goto fail6;