tc_em_cmp.h 414 B

123456789101112131415161718192021222324252627
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. #ifndef __LINUX_TC_EM_CMP_H
  3. #define __LINUX_TC_EM_CMP_H
  4. #include <linux/types.h>
  5. #include <linux/pkt_cls.h>
  6. struct tcf_em_cmp {
  7. __u32 val;
  8. __u32 mask;
  9. __u16 off;
  10. __u8 align:4;
  11. __u8 flags:4;
  12. __u8 layer:4;
  13. __u8 opnd:4;
  14. };
  15. enum {
  16. TCF_EM_ALIGN_U8 = 1,
  17. TCF_EM_ALIGN_U16 = 2,
  18. TCF_EM_ALIGN_U32 = 4
  19. };
  20. #define TCF_EM_CMP_TRANS 1
  21. #endif