net 01/05: fib_rules: rearrange struct fib_rule
[profile/ivi/kernel-adaptation-intel-automotive.git] / include / net / fib_rules.h
index ca4b2e8..22fb323 100644 (file)
@@ -7,12 +7,10 @@
 #include <net/flow.h>
 #include <net/rtnetlink.h>
 
-struct fib_rule
-{
+struct fib_rule {
        struct list_head        list;
        atomic_t                refcnt;
        int                     ifindex;
-       char                    ifname[IFNAMSIZ];
        u32                     mark;
        u32                     mark_mask;
        u32                     pref;
@@ -21,19 +19,18 @@ struct fib_rule
        u8                      action;
        u32                     target;
        struct fib_rule *       ctarget;
+       char                    ifname[IFNAMSIZ];
        struct rcu_head         rcu;
        struct net *            fr_net;
 };
 
-struct fib_lookup_arg
-{
+struct fib_lookup_arg {
        void                    *lookup_ptr;
        void                    *result;
        struct fib_rule         *rule;
 };
 
-struct fib_rules_ops
-{
+struct fib_rules_ops {
        int                     family;
        struct list_head        list;
        int                     rule_size;