Convert /proc/device-tree/ to seq_file
[safe/jmp/linux-2.6] / include / linux / net_dropmon.h
index 0e2e100..2a73946 100644 (file)
@@ -9,6 +9,13 @@ struct net_dm_drop_point {
        __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