cregit-Linux how code gets into the kernel

Release 4.13 include/net/tc_act/tc_gact.h

#ifndef __NET_TC_GACT_H

#define __NET_TC_GACT_H

#include <net/act_api.h>
#include <linux/tc_act/tc_gact.h>


struct tcf_gact {
	
struct tc_action	common;
#ifdef CONFIG_GACT_PROB
	
u16			tcfg_ptype;
	
u16			tcfg_pval;
	
int			tcfg_paction;
	
atomic_t		packets;
#endif
};

#define to_gact(a) ((struct tcf_gact *)a)


static inline bool __is_tcf_gact_act(const struct tc_action *a, int act) { #ifdef CONFIG_NET_CLS_ACT struct tcf_gact *gact; if (a->ops && a->ops->type != TCA_ACT_GACT) return false; gact = to_gact(a); if (gact->tcf_action == act) return true; #endif return false; }

Contributors

PersonTokensPropCommitsCommitProp
John Fastabend5179.69%125.00%
Amir Vadai57.81%125.00%
Jiri Pirko57.81%125.00%
Américo Wang34.69%125.00%
Total64100.00%4100.00%


static inline bool is_tcf_gact_shot(const struct tc_action *a) { return __is_tcf_gact_act(a, TC_ACT_SHOT); }

Contributors

PersonTokensPropCommitsCommitProp
Jiri Pirko21100.00%1100.00%
Total21100.00%1100.00%


static inline bool is_tcf_gact_trap(const struct tc_action *a) { return __is_tcf_gact_act(a, TC_ACT_TRAP); }

Contributors

PersonTokensPropCommitsCommitProp
Jiri Pirko21100.00%1100.00%
Total21100.00%1100.00%

#endif /* __NET_TC_GACT_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
John Fastabend5636.36%110.00%
Jiri Pirko4730.52%110.00%
Jamal Hadi Salim2415.58%110.00%
David S. Miller127.79%110.00%
Américo Wang63.90%330.00%
Amir Vadai53.25%110.00%
Eric Dumazet31.95%110.00%
Thomas Graf10.65%110.00%
Total154100.00%10100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.