summaryrefslogtreecommitdiffstats
path: root/sys/dev/oce/oce_sysctl.c
diff options
context:
space:
mode:
authorluigi <luigi@FreeBSD.org>2012-02-17 13:55:17 +0000
committerluigi <luigi@FreeBSD.org>2012-02-17 13:55:17 +0000
commit2c06717614b234671473c92b3a054f659d04d93d (patch)
tree8f85c35f3d7e3d50c81a3a4296906437325099c5 /sys/dev/oce/oce_sysctl.c
parent0a0e23c2d5dcf71d71150ec6d81239a2dcc212ed (diff)
downloadFreeBSD-src-2c06717614b234671473c92b3a054f659d04d93d.zip
FreeBSD-src-2c06717614b234671473c92b3a054f659d04d93d.tar.gz
Patches from Naresh Raju Gottumukkala
- Feature: UMC - Universal Multi Channel support - Bugfix: BE3 Firmware Flashing bug. - Code improvements: - Removed duplicate switch cases in the oce_ioctl routine. - Made changes to mcc_async notifications routine(oce_mq_handler) MFC after: 1 week
Diffstat (limited to 'sys/dev/oce/oce_sysctl.c')
-rw-r--r--sys/dev/oce/oce_sysctl.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/oce/oce_sysctl.c b/sys/dev/oce/oce_sysctl.c
index e0c50dd..93117f6 100644
--- a/sys/dev/oce/oce_sysctl.c
+++ b/sys/dev/oce/oce_sysctl.c
@@ -36,10 +36,8 @@
* Costa Mesa, CA 92626
*/
-
/* $FreeBSD$ */
-
#include "oce_if.h"
static void copy_stats_to_sc_xe201(POCE_SOFTC sc);
@@ -108,6 +106,13 @@ oce_add_sysctls(POCE_SOFTC sc)
&sc->speed,
0,"Link Speed");
+ if (sc->function_mode & FNM_UMC_MODE)
+ SYSCTL_ADD_UINT(ctx, child,
+ OID_AUTO, "pvid",
+ CTLFLAG_RD,
+ &sc->pvid,
+ 0,"PVID");
+
SYSCTL_ADD_PROC(ctx, child, OID_AUTO, "loop_back",
CTLTYPE_INT | CTLFLAG_RW, (void *)sc, 0,
oce_sysctl_loopback, "I", "Loop Back Tests");
OpenPOWER on IntegriCloud