patch-2.4.21 linux-2.4.21/include/net/snmp.h
Next file: linux-2.4.21/include/net/sock.h
Previous file: linux-2.4.21/include/net/iw_handler.h
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
2003-06-13 07:51:39.000000000 -0700
- Orig file:
linux-2.4.20/include/net/snmp.h
- Orig date:
2001-11-22 11:47:11.000000000 -0800
diff -urN linux-2.4.20/include/net/snmp.h linux-2.4.21/include/net/snmp.h
@@ -268,5 +268,8 @@
#define SNMP_INC_STATS(mib, field) ((mib)[2*smp_processor_id()+!in_softirq()].field++)
#define SNMP_INC_STATS_BH(mib, field) ((mib)[2*smp_processor_id()].field++)
#define SNMP_INC_STATS_USER(mib, field) ((mib)[2*smp_processor_id()+1].field++)
-
+#define SNMP_ADD_STATS_BH(mib, field, addend) \
+ ((mib)[2*smp_processor_id()].field += addend)
+#define SNMP_ADD_STATS_USER(mib, field, addend) \
+ ((mib)[2*smp_processor_id()+1].field += addend)
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)