ofp-msgs: ensure that l2 is set in ofpmp_reserve()
authorBen Pfaff <blp@nicira.com>
Tue, 12 Feb 2013 23:49:12 +0000 (15:49 -0800)
committerBen Pfaff <blp@nicira.com>
Tue, 12 Feb 2013 23:53:04 +0000 (15:53 -0800)
commit48efd47df8028c42afbb2bc38b7fbb7434d57cc3
tree77b118145d02215b654a11a5a8f90d67f35aa27e
parentd5c9288d87bc65c33a0cde3ac295340ff18787d8
ofp-msgs: ensure that l2 is set in ofpmp_reserve()

Ensure that the buffer returned by ofpmp_reserve() has buf->l2 set
as this may be required by nxm_reg_load_to_nxast() when generating
the reply to an stats request

This problem was observed when dumping a large number of flows
with set_field actions using ovs-ofctl dump-flows.

Signed-off-by: Ben Pfaff <blp@nicira.com>
Co-authored-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Simon Horman <horms@verge.net.au>
lib/ofp-msgs.c