tc_ctinfo.h 585 B

123456789101112131415161718192021222324252627282930313233
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __NET_TC_CTINFO_H
  3. #define __NET_TC_CTINFO_H
  4. #include <net/act_api.h>
  5. struct tcf_ctinfo_params {
  6. struct rcu_head rcu;
  7. struct net *net;
  8. u32 dscpmask;
  9. u32 dscpstatemask;
  10. u32 cpmarkmask;
  11. u16 zone;
  12. u8 mode;
  13. u8 dscpmaskshift;
  14. };
  15. struct tcf_ctinfo {
  16. struct tc_action common;
  17. struct tcf_ctinfo_params __rcu *params;
  18. u64 stats_dscp_set;
  19. u64 stats_dscp_error;
  20. u64 stats_cpmark_set;
  21. };
  22. enum {
  23. CTINFO_MODE_DSCP = BIT(0),
  24. CTINFO_MODE_CPMARK = BIT(1)
  25. };
  26. #define to_ctinfo(a) ((struct tcf_ctinfo *)a)
  27. #endif /* __NET_TC_CTINFO_H */