tc_bpf.h 671 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2015 Jiri Pirko <jiri@resnulli.us>
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. */
  9. #ifndef __LINUX_TC_BPF_H
  10. #define __LINUX_TC_BPF_H
  11. #include <linux/pkt_cls.h>
  12. #define TCA_ACT_BPF 13
  13. struct tc_act_bpf {
  14. tc_gen;
  15. };
  16. enum {
  17. TCA_ACT_BPF_UNSPEC,
  18. TCA_ACT_BPF_TM,
  19. TCA_ACT_BPF_PARMS,
  20. TCA_ACT_BPF_OPS_LEN,
  21. TCA_ACT_BPF_OPS,
  22. TCA_ACT_BPF_FD,
  23. TCA_ACT_BPF_NAME,
  24. __TCA_ACT_BPF_MAX,
  25. };
  26. #define TCA_ACT_BPF_MAX (__TCA_ACT_BPF_MAX - 1)
  27. #endif