patch-2.3.43 linux/include/net/snmp.h
Next file: linux/include/net/sock.h
Previous file: linux/include/net/pkt_sched.h
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Wed Feb 9 20:08:09 2000
- Orig file:
v2.3.42/linux/include/net/snmp.h
- Orig date:
Fri Jan 28 15:09:09 2000
diff -u --recursive --new-file v2.3.42/linux/include/net/snmp.h linux/include/net/snmp.h
@@ -202,7 +202,7 @@
unsigned long __pad[32-26];
};
-#define SNMP_INC_STATS(mib, field) ((mib)[2*smp_processor_id()+!in_interrupt()].field++)
+#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++)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)