tc_vlan.h 777 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2014 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_VLAN_H
  10. #define __LINUX_TC_VLAN_H
  11. #include <linux/pkt_cls.h>
  12. #define TCA_ACT_VLAN 12
  13. #define TCA_VLAN_ACT_POP 1
  14. #define TCA_VLAN_ACT_PUSH 2
  15. #define TCA_VLAN_ACT_MODIFY 3
  16. struct tc_vlan {
  17. tc_gen;
  18. int v_action;
  19. };
  20. enum {
  21. TCA_VLAN_UNSPEC,
  22. TCA_VLAN_TM,
  23. TCA_VLAN_PARMS,
  24. TCA_VLAN_PUSH_VLAN_ID,
  25. TCA_VLAN_PUSH_VLAN_PROTOCOL,
  26. TCA_VLAN_PAD,
  27. TCA_VLAN_PUSH_VLAN_PRIORITY,
  28. __TCA_VLAN_MAX,
  29. };
  30. #define TCA_VLAN_MAX (__TCA_VLAN_MAX - 1)
  31. #endif