hc
2024-05-10 ee930fffee469d076998274a2ca55e13dc1efb67
kernel/include/net/tc_act/tc_pedit.h
....@@ -14,6 +14,7 @@
1414 struct tc_action common;
1515 unsigned char tcfp_nkeys;
1616 unsigned char tcfp_flags;
17
+ u32 tcfp_off_max_hint;
1718 struct tc_pedit_key *tcfp_keys;
1819 struct tcf_pedit_key_ex *tcfp_keys_ex;
1920 };
....@@ -23,7 +24,7 @@
2324 static inline bool is_tcf_pedit(const struct tc_action *a)
2425 {
2526 #ifdef CONFIG_NET_CLS_ACT
26
- if (a->ops && a->ops->type == TCA_ACT_PEDIT)
27
+ if (a->ops && a->ops->id == TCA_ID_PEDIT)
2728 return true;
2829 #endif
2930 return false;