svn commit: r357552 - head/sys/dev/cxgbe

Navdeep Parhar np at FreeBSD.org
Wed Feb 5 00:08:58 UTC 2020


Author: np
Date: Wed Feb  5 00:08:58 2020
New Revision: 357552
URL: https://svnweb.freebsd.org/changeset/base/357552

Log:
  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.
  
  MFC after:	2 weeks
  Sponsored by:	Chelsio Communications

Modified:
  head/sys/dev/cxgbe/t4_netmap.c

Modified: head/sys/dev/cxgbe/t4_netmap.c
==============================================================================
--- head/sys/dev/cxgbe/t4_netmap.c	Tue Feb  4 23:55:21 2020	(r357551)
+++ head/sys/dev/cxgbe/t4_netmap.c	Wed Feb  5 00:08:58 2020	(r357552)
@@ -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-all mailing list