net: cleanup include/net
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
4b7673a04a
commit
fd2c3ef761
@@ -37,8 +37,7 @@
|
||||
|
||||
struct neighbour;
|
||||
|
||||
struct neigh_parms
|
||||
{
|
||||
struct neigh_parms {
|
||||
#ifdef CONFIG_NET_NS
|
||||
struct net *net;
|
||||
#endif
|
||||
@@ -70,8 +69,7 @@ struct neigh_parms
|
||||
int locktime;
|
||||
};
|
||||
|
||||
struct neigh_statistics
|
||||
{
|
||||
struct neigh_statistics {
|
||||
unsigned long allocs; /* number of allocated neighs */
|
||||
unsigned long destroys; /* number of destroyed neighs */
|
||||
unsigned long hash_grows; /* number of hash resizes */
|
||||
@@ -97,8 +95,7 @@ struct neigh_statistics
|
||||
preempt_enable(); \
|
||||
} while (0)
|
||||
|
||||
struct neighbour
|
||||
{
|
||||
struct neighbour {
|
||||
struct neighbour *next;
|
||||
struct neigh_table *tbl;
|
||||
struct neigh_parms *parms;
|
||||
@@ -122,8 +119,7 @@ struct neighbour
|
||||
u8 primary_key[0];
|
||||
};
|
||||
|
||||
struct neigh_ops
|
||||
{
|
||||
struct neigh_ops {
|
||||
int family;
|
||||
void (*solicit)(struct neighbour *, struct sk_buff*);
|
||||
void (*error_report)(struct neighbour *, struct sk_buff*);
|
||||
@@ -133,8 +129,7 @@ struct neigh_ops
|
||||
int (*queue_xmit)(struct sk_buff*);
|
||||
};
|
||||
|
||||
struct pneigh_entry
|
||||
{
|
||||
struct pneigh_entry {
|
||||
struct pneigh_entry *next;
|
||||
#ifdef CONFIG_NET_NS
|
||||
struct net *net;
|
||||
@@ -149,8 +144,7 @@ struct pneigh_entry
|
||||
*/
|
||||
|
||||
|
||||
struct neigh_table
|
||||
{
|
||||
struct neigh_table {
|
||||
struct neigh_table *next;
|
||||
int family;
|
||||
int entry_size;
|
||||
|
Reference in New Issue
Block a user