SDP: SYSCTL_DECL SDP-wide sysctl node in header

This allows use of the shared _net_inet_sdp in more than one compilation
unit.  (Nothing in-tree uses this today, but some of Isilon's out-of-tree
SDP enhancements add sysctls below the node.)

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Conrad Meyer 2019-08-17 03:03:26 +00:00
parent 419fe172c2
commit 6669d5459b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=351159
2 changed files with 2 additions and 1 deletions

View File

@ -454,6 +454,7 @@ struct sdp_sock {
#define SDP_LOCK_ASSERT(ssk) rw_assert(&(ssk)->lock, RA_LOCKED)
MALLOC_DECLARE(M_SDP);
SYSCTL_DECL(_net_inet_sdp);
static inline void tx_sa_reset(struct tx_srcavail_state *tx_sa)
{

View File

@ -1881,7 +1881,7 @@ sdp_pcblist(SYSCTL_HANDLER_ARGS)
return (error);
}
static SYSCTL_NODE(_net_inet, -1, sdp, CTLFLAG_RW, 0, "SDP");
SYSCTL_NODE(_net_inet, -1, sdp, CTLFLAG_RW, 0, "SDP");
SYSCTL_PROC(_net_inet_sdp, TCPCTL_PCBLIST, pcblist,
CTLFLAG_RD | CTLTYPE_STRUCT, 0, 0, sdp_pcblist, "S,xtcpcb",