datapath: Preallocate reply skb in ovs_vport_cmd_set().
authorJesse Gross <jesse@nicira.com>
Wed, 20 Mar 2013 23:14:58 +0000 (16:14 -0700)
committerJesse Gross <jesse@nicira.com>
Tue, 26 Mar 2013 22:27:58 +0000 (15:27 -0700)
commitc25ea53406a819bc2acff7b50e804c21f307bdec
treeab65fa2e2428d4fb22af58d20d0b51af0dc6353e
parent6901e5e22831a78797b90bd1588bb8f3e8fdeac1
datapath: Preallocate reply skb in ovs_vport_cmd_set().

Allocation of the Netlink notification skb can potentially fail
after changing vport configuration.  In general, we try to avoid
this by undoing any change we made but that is difficult for existing
objects.  This avoids the problem by preallocating the buffer (which
is fixed size).

Signed-off-by: Jesse Gross <jesse@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
datapath/datapath.c