tc_bpf.h 788 B

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