diff options
| author | Eric Dumazet <eric.dumazet@gmail.com> | 2009-11-04 09:50:58 -0800 | 
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2009-11-04 09:50:58 -0800 | 
| commit | d94d9fee9fa4e66a0b91640a694b8b10177075b3 (patch) | |
| tree | 330b2b19e63c92f1fef3d9dbe0733ddeb0109664 /include/linux/tc_act | |
| parent | b8883a65be2d925ea82b14ca0068ce9a6c8bac1f (diff) | |
| download | olio-linux-3.10-d94d9fee9fa4e66a0b91640a694b8b10177075b3.tar.xz olio-linux-3.10-d94d9fee9fa4e66a0b91640a694b8b10177075b3.zip  | |
net: cleanup include/linux
This cleanup patch puts struct/union/enum opening braces,
in first line to ease grep games.
struct something
{
becomes :
struct something {
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/tc_act')
| -rw-r--r-- | include/linux/tc_act/tc_defact.h | 6 | ||||
| -rw-r--r-- | include/linux/tc_act/tc_gact.h | 9 | ||||
| -rw-r--r-- | include/linux/tc_act/tc_ipt.h | 3 | ||||
| -rw-r--r-- | include/linux/tc_act/tc_mirred.h | 6 | ||||
| -rw-r--r-- | include/linux/tc_act/tc_nat.h | 6 | ||||
| -rw-r--r-- | include/linux/tc_act/tc_pedit.h | 9 | 
6 files changed, 13 insertions, 26 deletions
diff --git a/include/linux/tc_act/tc_defact.h b/include/linux/tc_act/tc_defact.h index 964f473af0f..6f65d07c7ce 100644 --- a/include/linux/tc_act/tc_defact.h +++ b/include/linux/tc_act/tc_defact.h @@ -3,13 +3,11 @@  #include <linux/pkt_cls.h> -struct tc_defact -{ +struct tc_defact {  	tc_gen;  }; -enum -{ +enum {  	TCA_DEF_UNSPEC,  	TCA_DEF_TM,  	TCA_DEF_PARMS, diff --git a/include/linux/tc_act/tc_gact.h b/include/linux/tc_act/tc_gact.h index e895c0a3962..f7bf94eed51 100644 --- a/include/linux/tc_act/tc_gact.h +++ b/include/linux/tc_act/tc_gact.h @@ -5,14 +5,12 @@  #include <linux/pkt_cls.h>  #define TCA_ACT_GACT 5 -struct tc_gact -{ +struct tc_gact {  	tc_gen;  }; -struct tc_gact_p -{ +struct tc_gact_p {  #define PGACT_NONE              0  #define PGACT_NETRAND           1  #define PGACT_DETERM            2 @@ -22,8 +20,7 @@ struct tc_gact_p  	int                   paction;  }; -enum -{ +enum {  	TCA_GACT_UNSPEC,  	TCA_GACT_TM,  	TCA_GACT_PARMS, diff --git a/include/linux/tc_act/tc_ipt.h b/include/linux/tc_act/tc_ipt.h index 4b6f7b6c7a7..a2335563d21 100644 --- a/include/linux/tc_act/tc_ipt.h +++ b/include/linux/tc_act/tc_ipt.h @@ -5,8 +5,7 @@  #define TCA_ACT_IPT 6 -enum -{ +enum {  	TCA_IPT_UNSPEC,  	TCA_IPT_TABLE,  	TCA_IPT_HOOK, diff --git a/include/linux/tc_act/tc_mirred.h b/include/linux/tc_act/tc_mirred.h index 0a99ab60d61..7561750e8fd 100644 --- a/include/linux/tc_act/tc_mirred.h +++ b/include/linux/tc_act/tc_mirred.h @@ -10,15 +10,13 @@  #define TCA_INGRESS_REDIR 3  /* packet redirect to INGRESS*/  #define TCA_INGRESS_MIRROR 4 /* mirror packet to INGRESS */ -struct tc_mirred -{ +struct tc_mirred {  	tc_gen;  	int                     eaction;   /* one of IN/EGRESS_MIRROR/REDIR */  	__u32                   ifindex;  /* ifindex of egress port */  }; -enum -{ +enum {  	TCA_MIRRED_UNSPEC,  	TCA_MIRRED_TM,  	TCA_MIRRED_PARMS, diff --git a/include/linux/tc_act/tc_nat.h b/include/linux/tc_act/tc_nat.h index e7cf31e8ba7..6663aeba0b9 100644 --- a/include/linux/tc_act/tc_nat.h +++ b/include/linux/tc_act/tc_nat.h @@ -6,8 +6,7 @@  #define TCA_ACT_NAT 9 -enum -{ +enum {  	TCA_NAT_UNSPEC,  	TCA_NAT_PARMS,  	TCA_NAT_TM, @@ -17,8 +16,7 @@ enum  #define TCA_NAT_FLAG_EGRESS 1 -struct tc_nat -{ +struct tc_nat {  	tc_gen;  	__be32 old_addr;  	__be32 new_addr; diff --git a/include/linux/tc_act/tc_pedit.h b/include/linux/tc_act/tc_pedit.h index 54ce9064115..716cfabcd5b 100644 --- a/include/linux/tc_act/tc_pedit.h +++ b/include/linux/tc_act/tc_pedit.h @@ -6,8 +6,7 @@  #define TCA_ACT_PEDIT 7 -enum -{ +enum {  	TCA_PEDIT_UNSPEC,  	TCA_PEDIT_TM,  	TCA_PEDIT_PARMS, @@ -15,8 +14,7 @@ enum  };  #define TCA_PEDIT_MAX (__TCA_PEDIT_MAX - 1) -struct tc_pedit_key -{ +struct tc_pedit_key {  	__u32           mask;  /* AND */  	__u32           val;   /*XOR */  	__u32           off;  /*offset */ @@ -25,8 +23,7 @@ struct tc_pedit_key  	__u32           shift;  }; -struct tc_pedit_sel -{ +struct tc_pedit_sel {  	tc_gen;  	unsigned char           nkeys;  	unsigned char           flags;  |