ip_reass: drop the volatile keyword from nfrags and mark with __exclusive_cache_line
The keyword adds nothing as all operations on the var are performed through atomic_* Reviewed by: kp Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D31526
This commit is contained in:
parent
20d728b559
commit
d2b95af1c2
@ -137,12 +137,12 @@ ipq_drop(struct ipqbucket *bucket, struct ipq *fp)
|
||||
#define IP_MAXFRAGPACKETS (imin(IP_MAXFRAGS, IPREASS_NHASH * 50))
|
||||
|
||||
static int maxfrags;
|
||||
static volatile u_int nfrags;
|
||||
static u_int __exclusive_cache_line nfrags;
|
||||
SYSCTL_INT(_net_inet_ip, OID_AUTO, maxfrags, CTLFLAG_RW,
|
||||
&maxfrags, 0,
|
||||
"Maximum number of IPv4 fragments allowed across all reassembly queues");
|
||||
SYSCTL_UINT(_net_inet_ip, OID_AUTO, curfrags, CTLFLAG_RD,
|
||||
__DEVOLATILE(u_int *, &nfrags), 0,
|
||||
&nfrags, 0,
|
||||
"Current number of IPv4 fragments across all reassembly queues");
|
||||
|
||||
VNET_DEFINE_STATIC(uma_zone_t, ipq_zone);
|
||||
|
Loading…
x
Reference in New Issue
Block a user