[ovs-dev] Q on FLOW_SIG_SIZE and hashing

Ben Pfaff blp at nicira.com
Wed Feb 29 17:20:56 UTC 2012


On Tue, Feb 21, 2012 at 06:21:02PM +0100, Ravi.Kerur at telekom.com wrote:
> I am facing some issues w.r.t hashing when FLOW_SIG_SIZE > 130. What
> I did was to move around members of struct flow such that
> FLOW_SIG_SIZE = (112 + FLOW_N_REGS * 4). Note that struct flow is
> not packed so depending on where members are added, due to padding
> size can increase.  [...]

It's not marked __attribute__((packed)) or, equivalently, OVS_PACKED,
but it is arranged so that there are no holes in the middle, and the
hole at the end is plugged by a "reserved" member.



More information about the dev mailing list