sctp: Make the mib per network namespace
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com> Acked-by: Vlad Yasevich <vyasevich@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
bb2db45b54
commit
b01a24078f
@@ -221,11 +221,10 @@ extern struct kmem_cache *sctp_bucket_cachep __read_mostly;
|
||||
#define sctp_bh_unlock_sock(sk) bh_unlock_sock(sk)
|
||||
|
||||
/* SCTP SNMP MIB stats handlers */
|
||||
DECLARE_SNMP_STAT(struct sctp_mib, sctp_statistics);
|
||||
#define SCTP_INC_STATS(field) SNMP_INC_STATS(sctp_statistics, field)
|
||||
#define SCTP_INC_STATS_BH(field) SNMP_INC_STATS_BH(sctp_statistics, field)
|
||||
#define SCTP_INC_STATS_USER(field) SNMP_INC_STATS_USER(sctp_statistics, field)
|
||||
#define SCTP_DEC_STATS(field) SNMP_DEC_STATS(sctp_statistics, field)
|
||||
#define SCTP_INC_STATS(net, field) SNMP_INC_STATS((net)->sctp.sctp_statistics, field)
|
||||
#define SCTP_INC_STATS_BH(net, field) SNMP_INC_STATS_BH((net)->sctp.sctp_statistics, field)
|
||||
#define SCTP_INC_STATS_USER(net, field) SNMP_INC_STATS_USER((net)->sctp.sctp_statistics, field)
|
||||
#define SCTP_DEC_STATS(net, field) SNMP_DEC_STATS((net)->sctp.sctp_statistics, field)
|
||||
|
||||
#endif /* !TEST_FRAME */
|
||||
|
||||
|
Reference in New Issue
Block a user