datapath: Return correct error code when dumping flow actions.
authorJesse Gross <jesse@nicira.com>
Mon, 21 Jan 2013 11:59:17 +0000 (03:59 -0800)
committerJesse Gross <jesse@nicira.com>
Tue, 22 Jan 2013 01:35:26 +0000 (17:35 -0800)
commit323e2b8ef07fa8672be00e53b9f19ecd754cc9b7
treeb7b41e430a88541f8e2ac1cce9be2340c3adc6ea
parentd1a0ac221a9704ff6a6c25dacdd81d209e39cb0f
datapath: Return correct error code when dumping flow actions.

Currently, if there isn't enough space to store the actions in a
flow during a dump we return -ENOMEM.  However, the standard error
in this situation is -EMSGSIZE so this changes the behavior to match.
This issue was introduced in 354d4c98a8cdaae3525848f564e58a9016bcd3af
 (datapath: Fix nelink attribute size for flow.).

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
datapath/datapath.c