Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | #ifndef __NET_TC_PED_H |
| 2 | #define __NET_TC_PED_H |
| 3 | |
| 4 | #include <net/act_api.h> |
| 5 | |
David S. Miller | e9ce1cd | 2006-08-21 23:54:55 -0700 | [diff] [blame] | 6 | struct tcf_pedit { |
| 7 | struct tcf_common common; |
| 8 | unsigned char tcfp_nkeys; |
| 9 | unsigned char tcfp_flags; |
| 10 | struct tc_pedit_key *tcfp_keys; |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 11 | }; |
WANG Cong | 8606203 | 2014-02-11 17:07:31 -0800 | [diff] [blame] | 12 | #define to_pedit(a) \ |
| 13 | container_of(a->priv, struct tcf_pedit, common) |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
David S. Miller | e9ce1cd | 2006-08-21 23:54:55 -0700 | [diff] [blame] | 15 | #endif /* __NET_TC_PED_H */ |