tc_skbmod.h 558 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * Copyright (c) 2016, Jamal Hadi Salim
  4. */
  5. #ifndef __NET_TC_SKBMOD_H
  6. #define __NET_TC_SKBMOD_H
  7. #include <net/act_api.h>
  8. #include <linux/tc_act/tc_skbmod.h>
  9. struct tcf_skbmod_params {
  10. struct rcu_head rcu;
  11. u64 flags; /*up to 64 types of operations; extend if needed */
  12. u8 eth_dst[ETH_ALEN];
  13. u16 eth_type;
  14. u8 eth_src[ETH_ALEN];
  15. };
  16. struct tcf_skbmod {
  17. struct tc_action common;
  18. struct tcf_skbmod_params __rcu *skbmod_p;
  19. };
  20. #define to_skbmod(a) ((struct tcf_skbmod *)a)
  21. #endif /* __NET_TC_SKBMOD_H */