From: Thomas Graf Date: Tue, 4 Dec 2012 17:39:13 +0000 (-0800) Subject: datapath: Avoid useless holes in struct vport X-Git-Tag: sliver-openvswitch-1.9.90-3~10^2~116 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=3da83627e8638e1c27fcb97a1d1a03b4741cbd58;p=sliver-openvswitch.git datapath: Avoid useless holes in struct vport 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 Signed-off-by: Jesse Gross --- diff --git a/datapath/vport.h b/datapath/vport.h index 5a7caf5f7..de65000ab 100644 --- a/datapath/vport.h +++ b/datapath/vport.h @@ -74,7 +74,6 @@ 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. * @kobj: Represents /sys/class/net//brport. * @linkname: The name of the link from /sys/class/net//brif to this @@ -82,6 +81,7 @@ struct vport_err_stats { * device gets renamed.) Set to the null string when no link exists. * @upcall_pid: 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. @@ -93,11 +93,11 @@ struct vport_err_stats { */ struct vport { struct rcu_head rcu; - u16 port_no; struct datapath *dp; struct kobject kobj; char linkname[IFNAMSIZ]; u32 upcall_pid; + u16 port_no; struct hlist_node hash_node; struct hlist_node dp_hash_node;