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)
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>

No differences found