cregit-Linux how code gets into the kernel

Release 4.17 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;
	
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 struct net_device *tcf_mirred_dev(const struct tc_action *a) { return rtnl_dereference(to_mirred(a)->tcfm_dev); }

Contributors

PersonTokensPropCommitsCommitProp
Sridhar Samudrala1869.23%150.00%
Américo Wang830.77%150.00%
Total26100.00%2100.00%

#endif /* __NET_TC_MIR_H */

Overall Contributors

PersonTokensPropCommitsCommitProp
Sridhar Samudrala6539.63%17.14%
Yotam Gigi4426.83%17.14%
Jamal Hadi Salim2213.41%17.14%
David S. Miller116.71%17.14%
Américo Wang116.71%428.57%
Stephen Hemminger42.44%17.14%
Shmulik Ladkani42.44%214.29%
Eric Dumazet10.61%17.14%
Greg Kroah-Hartman10.61%17.14%
Thomas Graf10.61%17.14%
Total164100.00%14100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.