openvswitch: Avoid useless holes in struct vport
authorThomas Graf <tgraf@suug.ch>
Mon, 3 Dec 2012 22:24:32 +0000 (22:24 +0000)
committerJesse Gross <jesse@nicira.com>
Tue, 4 Dec 2012 17:28:03 +0000 (09:28 -0800)
Having the 16bit port_no in between a set of pointers creates
an unwanted and useless hole in the struct.

Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Jesse Gross <jesse@nicira.com>
net/openvswitch/vport.h

index 3f7961ea3c568d54011d6a570975fceb3c20d15f..aee7d43114c9db4f2b51aced3f9efc4f233e3b44 100644 (file)
@@ -68,10 +68,10 @@ struct vport_err_stats {
 /**
  * struct vport - one port within a datapath
  * @rcu: RCU callback head for deferred destruction.
- * @port_no: Index into @dp's @ports array.
  * @dp: Datapath to which this port belongs.
  * @upcall_portid: The Netlink port to use for packets received on this port that
  * miss the flow table.
+ * @port_no: Index into @dp's @ports array.
  * @hash_node: Element in @dev_table hash table in vport.c.
  * @dp_hash_node: Element in @datapath->ports hash table in datapath.c.
  * @ops: Class structure.
@@ -81,9 +81,9 @@ struct vport_err_stats {
  */
 struct vport {
        struct rcu_head rcu;
-       u16 port_no;
        struct datapath *dp;
        u32 upcall_portid;
+       u16 port_no;
 
        struct hlist_node hash_node;
        struct hlist_node dp_hash_node;
This page took 0.027228 seconds and 5 git commands to generate.