svn commit: r358982 - stable/12/sys/dev/cxgbe
Navdeep Parhar
np at FreeBSD.org
Sat Mar 14 02:05:13 UTC 2020
Author: np
Date: Sat Mar 14 02:05:12 2020
New Revision: 358982
URL: https://svnweb.freebsd.org/changeset/base/358982
Log:
MFC r357552:
cxgbe(4): Allow nm_black_hole and nm_cong_drop to be set at any time.
The cong_drop setting will apply to queues created after the setting is
changed and not to existing queues.
Sponsored by: Chelsio Communications
Modified:
stable/12/sys/dev/cxgbe/t4_netmap.c
Directory Properties:
stable/12/ (props changed)
Modified: stable/12/sys/dev/cxgbe/t4_netmap.c
==============================================================================
--- stable/12/sys/dev/cxgbe/t4_netmap.c Sat Mar 14 01:59:39 2020 (r358981)
+++ stable/12/sys/dev/cxgbe/t4_netmap.c Sat Mar 14 02:05:12 2020 (r358982)
@@ -63,7 +63,7 @@ extern int fl_pad; /* XXXNM */
* 2 = supermassive black hole (buffer packing enabled)
*/
int black_hole = 0;
-SYSCTL_INT(_hw_cxgbe, OID_AUTO, nm_black_hole, CTLFLAG_RDTUN, &black_hole, 0,
+SYSCTL_INT(_hw_cxgbe, OID_AUTO, nm_black_hole, CTLFLAG_RWTUN, &black_hole, 0,
"Sink incoming packets.");
int rx_ndesc = 256;
@@ -85,7 +85,7 @@ SYSCTL_INT(_hw_cxgbe, OID_AUTO, nm_holdoff_tmr_idx, CT
* 1: no backpressure, drop packets for the congested queue immediately.
*/
static int nm_cong_drop = 1;
-SYSCTL_INT(_hw_cxgbe, OID_AUTO, nm_cong_drop, CTLFLAG_RDTUN,
+SYSCTL_INT(_hw_cxgbe, OID_AUTO, nm_cong_drop, CTLFLAG_RWTUN,
&nm_cong_drop, 0,
"Congestion control for netmap rx queues (0 = backpressure, 1 = drop");
More information about the svn-src-stable-12
mailing list