cregit-Linux how code gets into the kernel

Release 4.14 include/net/tc_act/tc_mirred.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __NET_TC_MIR_H

#define __NET_TC_MIR_H

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


struct tcf_mirred {
	
struct tc_action	common;
	
int			tcfm_eaction;
	
int			tcfm_ifindex;
	
bool			tcfm_mac_header_xmit;
	
struct net_device __rcu	*tcfm_dev;
	
struct list_head	tcfm_list;
};

#define to_mirred(a) ((struct tcf_mirred *)a)


static inline bool is_tcf_mirred_egress_redirect(const struct tc_action *a) { #ifdef CONFIG_NET_CLS_ACT if (a->ops && a->ops->type == TCA_ACT_MIRRED) return to_mirred(a)->tcfm_eaction == TCA_EGRESS_REDIR; #endif return false; }

Contributors

PersonTokensPropCommitsCommitProp
Sridhar Samudrala4497.78%150.00%
Shmulik Ladkani12.22%150.00%
Total45100.00%2100.00%


static inline bool is_tcf_mirred_egress_mirror(const struct tc_action *a) { #ifdef CONFIG_NET_CLS_ACT if (a->ops && a->ops->type == TCA_ACT_MIRRED) return to_mirred(a)->tcfm_eaction == TCA_EGRESS_MIRROR; #endif return false; }

Contributors

PersonTokensPropCommitsCommitProp
Yotam Gigi4497.78%150.00%
Shmulik Ladkani12.22%150.00%
Total45100.00%2100.00%


static inline int tcf_mirred_ifindex(const struct tc_action *a) { return to_mirred(a)->tcfm_ifindex; }

Contributors

PersonTokensPropCommitsCommitProp
Sridhar Samudrala21100.00%1100.00%
Total21100.00%1100.00%

#endif /* __NET_TC_MIR_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Sridhar Samudrala6841.98%17.69%
Yotam Gigi4427.16%17.69%
Jamal Hadi Salim2414.81%17.69%
David S. Miller127.41%17.69%
Stephen Hemminger42.47%17.69%
Shmulik Ladkani42.47%215.38%
Américo Wang31.85%323.08%
Eric Dumazet10.62%17.69%
Thomas Graf10.62%17.69%
Greg Kroah-Hartman10.62%17.69%
Total162100.00%13100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.