net_sched: get rid of struct tcf_common
After the previous patch, struct tc_action should be enough to represent the generic tc action, tcf_common is not necessary any more. This patch gets rid of it to make tc action code more readable. Cc: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
a85a970af2
commit
ec0595cc44
@@ -14,7 +14,7 @@
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_bpf {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
struct bpf_prog __rcu *filter;
|
||||
union {
|
||||
u32 bpf_fd;
|
||||
|
@@ -4,7 +4,7 @@
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_connmark_info {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
struct net *net;
|
||||
u16 zone;
|
||||
};
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_csum {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
|
||||
u32 update_flags;
|
||||
};
|
||||
|
@@ -4,7 +4,7 @@
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_defact {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
u32 tcfd_datalen;
|
||||
void *tcfd_defdata;
|
||||
};
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#include <linux/tc_act/tc_gact.h>
|
||||
|
||||
struct tcf_gact {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
#ifdef CONFIG_GACT_PROB
|
||||
u16 tcfg_ptype;
|
||||
u16 tcfg_pval;
|
||||
|
@@ -8,7 +8,7 @@
|
||||
|
||||
#define IFE_METAHDRLEN 2
|
||||
struct tcf_ife_info {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
u8 eth_dst[ETH_ALEN];
|
||||
u8 eth_src[ETH_ALEN];
|
||||
u16 eth_type;
|
||||
|
@@ -6,7 +6,7 @@
|
||||
struct xt_entry_target;
|
||||
|
||||
struct tcf_ipt {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
u32 tcfi_hook;
|
||||
char *tcfi_tname;
|
||||
struct xt_entry_target *tcfi_t;
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#include <linux/tc_act/tc_mirred.h>
|
||||
|
||||
struct tcf_mirred {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
int tcfm_eaction;
|
||||
int tcfm_ifindex;
|
||||
int tcfm_ok_push;
|
||||
|
@@ -5,7 +5,7 @@
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_nat {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
|
||||
__be32 old_addr;
|
||||
__be32 new_addr;
|
||||
|
@@ -4,7 +4,7 @@
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_pedit {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
unsigned char tcfp_nkeys;
|
||||
unsigned char tcfp_flags;
|
||||
struct tc_pedit_key *tcfp_keys;
|
||||
|
@@ -23,7 +23,7 @@
|
||||
#include <linux/tc_act/tc_skbedit.h>
|
||||
|
||||
struct tcf_skbedit {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
u32 flags;
|
||||
u32 priority;
|
||||
u32 mark;
|
||||
|
@@ -16,7 +16,7 @@
|
||||
#define VLAN_F_PUSH 0x2
|
||||
|
||||
struct tcf_vlan {
|
||||
struct tcf_common common;
|
||||
struct tc_action common;
|
||||
int tcfv_action;
|
||||
u16 tcfv_push_vid;
|
||||
__be16 tcfv_push_proto;
|
||||
|
Reference in New Issue
Block a user