net/sched: Reflect HW offload status
[sfrench/cifs-2.6.git] / include / net / pkt_cls.h
index be5c12a5c3755088d7322f16c915b469b28aa753..269fd78bb0ae0a88b2affa858a75bd646322a9fc 100644 (file)
@@ -481,6 +481,11 @@ static inline bool tc_flags_valid(u32 flags)
        return true;
 }
 
+static inline bool tc_in_hw(u32 flags)
+{
+       return (flags & TCA_CLS_FLAGS_IN_HW) ? true : false;
+}
+
 enum tc_fl_command {
        TC_CLSFLOWER_REPLACE,
        TC_CLSFLOWER_DESTROY,