datapath: Kernel flow metadata parsing should be less restrictive
authorAnsis Atteka <aatteka@nicira.com>
Tue, 8 Nov 2011 22:32:13 +0000 (14:32 -0800)
committerAnsis Atteka <aatteka@nicira.com>
Thu, 10 Nov 2011 19:03:10 +0000 (11:03 -0800)
commit58828b08f0f8b5a2ea5b88b06f48eb1db83b0938
treec1b38287c5e37dd2ccbe8d1c2f9ff8d36eb521aa
parent77912ae717298cb06544f1bebd9701d0b3c2f2f0
datapath: Kernel flow metadata parsing should be less restrictive

The function flow_metadata_from_nlattrs() is very restrictive
about the ordering and type of metadata attributes that it receives.
This patch will change flow_metadata_from_nlattrs() behavior by
ignoring attributes that it does not understand and allowing them
to be passed in arbitrary order.

Issue #8167

Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Acked-by: Jesse Gross <jesse@nicira.com>
datapath/flow.c