From 27c3a85d07df78fdbecb792713591b9f6f3020ee Mon Sep 17 00:00:00 2001 From: Navdeep Parhar Date: Fri, 7 Jun 2019 05:03:03 +0000 Subject: [PATCH] cxgbe(4): Rename the DDP sysctl to rx_zcopy to match the tx_zcopy sysctl and update its description. The old name continues to work for now. Sponsored by: Chelsio Communications --- sys/dev/cxgbe/t4_main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/dev/cxgbe/t4_main.c b/sys/dev/cxgbe/t4_main.c index 3e92d230bf9..e5bbb160293 100644 --- a/sys/dev/cxgbe/t4_main.c +++ b/sys/dev/cxgbe/t4_main.c @@ -6232,8 +6232,10 @@ t4_sysctls(struct adapter *sc) &sc->tt.sndbuf, 0, "max hardware send buffer size"); sc->tt.ddp = 0; - SYSCTL_ADD_INT(ctx, children, OID_AUTO, "ddp", CTLFLAG_RW, - &sc->tt.ddp, 0, "DDP allowed"); + SYSCTL_ADD_INT(ctx, children, OID_AUTO, "ddp", + CTLFLAG_RW | CTLFLAG_SKIP, &sc->tt.ddp, 0, ""); + SYSCTL_ADD_INT(ctx, children, OID_AUTO, "rx_zcopy", CTLFLAG_RW, + &sc->tt.ddp, 0, "Enable zero-copy aio_read(2)"); sc->tt.rx_coalesce = 1; SYSCTL_ADD_INT(ctx, children, OID_AUTO, "rx_coalesce",