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>
This commit is contained in:

committed by
David S. Miller

parent
b8883a65be
commit
d94d9fee9f
@@ -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,
|
||||
|
@@ -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,
|
||||
|
@@ -5,8 +5,7 @@
|
||||
|
||||
#define TCA_ACT_IPT 6
|
||||
|
||||
enum
|
||||
{
|
||||
enum {
|
||||
TCA_IPT_UNSPEC,
|
||||
TCA_IPT_TABLE,
|
||||
TCA_IPT_HOOK,
|
||||
|
@@ -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,
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user