]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - include/linux/net_dropmon.h
perf_counter tools: Create new chain_for_each_child() iterator
[mv-sheeva.git] / include / linux / net_dropmon.h
index 0e2e100c44a275f719377d7c0e2ad113743d404d..3ceb0cc1bc787382dd00d3ea27292422f161881b 100644 (file)
@@ -3,12 +3,20 @@
 
 #include <linux/types.h>
 #include <linux/netlink.h>
+#include <linux/types.h>
 
 struct net_dm_drop_point {
        __u8 pc[8];
        __u32 count;
 };
 
+#define is_drop_point_hw(x) do {\
+       int ____i, ____j;\
+       for (____i = 0; ____i < 8; i ____i++)\
+               ____j |= x[____i];\
+       ____j;\
+} while (0)
+
 #define NET_DM_CFG_VERSION  0
 #define NET_DM_CFG_ALERT_COUNT  1
 #define NET_DM_CFG_ALERT_DELAY 2