svn commit: r253829 - head/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Wed Jul 31 05:12:52 UTC 2013
Author: np
Date: Wed Jul 31 05:12:51 2013
New Revision: 253829
URL: http://svnweb.freebsd.org/changeset/base/253829
Log:
Display SGE tunables in the sysctl tree.
dev.t5nex.0.fl_pktshift: payload DMA offset in rx buffer (bytes)
dev.t5nex.0.fl_pad: payload pad boundary (bytes)
dev.t5nex.0.spg_len: status page size (bytes)
dev.t5nex.0.cong_drop: congestion drop setting
Discussed with: scottl
Modified:
head/sys/dev/cxgbe/adapter.h
head/sys/dev/cxgbe/t4_main.c
head/sys/dev/cxgbe/t4_sge.c
Modified: head/sys/dev/cxgbe/adapter.h
==============================================================================
--- head/sys/dev/cxgbe/adapter.h Wed Jul 31 04:51:12 2013 (r253828)
+++ head/sys/dev/cxgbe/adapter.h Wed Jul 31 05:12:51 2013 (r253829)
@@ -801,6 +801,8 @@ void t4_init_sge_cpl_handlers(struct ada
void t4_tweak_chip_settings(struct adapter *);
int t4_read_chip_settings(struct adapter *);
int t4_create_dma_tag(struct adapter *);
+void t4_sge_sysctls(struct adapter *, struct sysctl_ctx_list *,
+ struct sysctl_oid_list *);
int t4_destroy_dma_tag(struct adapter *);
int t4_setup_adapter_queues(struct adapter *);
int t4_teardown_adapter_queues(struct adapter *);
Modified: head/sys/dev/cxgbe/t4_main.c
==============================================================================
--- head/sys/dev/cxgbe/t4_main.c Wed Jul 31 04:51:12 2013 (r253828)
+++ head/sys/dev/cxgbe/t4_main.c Wed Jul 31 05:12:51 2013 (r253829)
@@ -4223,6 +4223,8 @@ t4_sysctls(struct adapter *sc)
SYSCTL_ADD_INT(ctx, children, OID_AUTO, "nfilters", CTLFLAG_RD,
NULL, sc->tids.nftids, "number of filters");
+ t4_sge_sysctls(sc, ctx, children);
+
#ifdef SBUF_DRAIN
/*
* dev.t4nex.X.misc. Marked CTLFLAG_SKIP to avoid information overload.
Modified: head/sys/dev/cxgbe/t4_sge.c
==============================================================================
--- head/sys/dev/cxgbe/t4_sge.c Wed Jul 31 04:51:12 2013 (r253828)
+++ head/sys/dev/cxgbe/t4_sge.c Wed Jul 31 05:12:51 2013 (r253829)
@@ -498,6 +498,24 @@ t4_create_dma_tag(struct adapter *sc)
return (rc);
}
+void
+t4_sge_sysctls(struct adapter *sc, struct sysctl_ctx_list *ctx,
+ struct sysctl_oid_list *children)
+{
+
+ SYSCTL_ADD_INT(ctx, children, OID_AUTO, "fl_pktshift", CTLFLAG_RD,
+ NULL, fl_pktshift, "payload DMA offset in rx buffer (bytes)");
+
+ SYSCTL_ADD_INT(ctx, children, OID_AUTO, "fl_pad", CTLFLAG_RD,
+ NULL, fl_pad, "payload pad boundary (bytes)");
+
+ SYSCTL_ADD_INT(ctx, children, OID_AUTO, "spg_len", CTLFLAG_RD,
+ NULL, spg_len, "status page size (bytes)");
+
+ SYSCTL_ADD_INT(ctx, children, OID_AUTO, "cong_drop", CTLFLAG_RD,
+ NULL, cong_drop, "congestion drop setting");
+}
+
int
t4_destroy_dma_tag(struct adapter *sc)
{
More information about the svn-src-head
mailing list