flow: add miniflow_pad_from_64
authorSimon Horman <simon.horman@netronome.com>
Wed, 20 Jan 2016 06:15:01 +0000 (15:15 +0900)
committerSimon Horman <simon.horman@netronome.com>
Wed, 24 Feb 2016 05:13:50 +0000 (14:13 +0900)
commit1589ee5ae97c3f71c50413db64ddd0546daeecc0
treedf7bfa6f59371a3cf3b1ba7d8e7b4e65a2219be1
parent1dcf9ac7ee61a66b75790c05d082ded5266df00d
flow: add miniflow_pad_from_64

Provide leading padding to allow pushing a value to a miniflow where
the value is not aligned to 64 bytes and no value has already been
pushed to the same word.

This will be used by a follow-up patch to allow layer 3 packet - that is
packets without an ethernet header - to be represented in flows.

Signed-off-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Jarno Rajahalme <jarno@ovn.org>
lib/flow.c