diff options
author | Ansis Atteka <aatteka@nicira.com> | 2012-04-09 15:12:12 -0400 |
---|---|---|
committer | Jesse Gross <jesse@nicira.com> | 2012-04-09 15:18:08 -0400 |
commit | 03fbf8b38792448370343f240131d9fde19d0387 (patch) | |
tree | 941d651fc1b5beeff618dfe68e141c0b5bdee19b /net/openvswitch/datapath.c | |
parent | c55177e3e1e8a89d9d810d95ac18cb104865322c (diff) |
openvswitch: Do not send notification if ovs_vport_set_options() failed
There is no need to send a notification if ovs_vport_set_options() failed
and ovs_vport_cmd_set() did not change anything.
Signed-off-by: Ansis Atteka <aatteka@nicira.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
Diffstat (limited to 'net/openvswitch/datapath.c')
-rw-r--r-- | net/openvswitch/datapath.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/openvswitch/datapath.c b/net/openvswitch/datapath.c index e44e631ea952..4813d953d8f2 100644 --- a/net/openvswitch/datapath.c +++ b/net/openvswitch/datapath.c | |||
@@ -1635,7 +1635,9 @@ static int ovs_vport_cmd_set(struct sk_buff *skb, struct genl_info *info) | |||
1635 | 1635 | ||
1636 | if (!err && a[OVS_VPORT_ATTR_OPTIONS]) | 1636 | if (!err && a[OVS_VPORT_ATTR_OPTIONS]) |
1637 | err = ovs_vport_set_options(vport, a[OVS_VPORT_ATTR_OPTIONS]); | 1637 | err = ovs_vport_set_options(vport, a[OVS_VPORT_ATTR_OPTIONS]); |
1638 | if (!err && a[OVS_VPORT_ATTR_UPCALL_PID]) | 1638 | if (err) |
1639 | goto exit_unlock; | ||
1640 | if (a[OVS_VPORT_ATTR_UPCALL_PID]) | ||
1639 | vport->upcall_pid = nla_get_u32(a[OVS_VPORT_ATTR_UPCALL_PID]); | 1641 | vport->upcall_pid = nla_get_u32(a[OVS_VPORT_ATTR_UPCALL_PID]); |
1640 | 1642 | ||
1641 | reply = ovs_vport_cmd_build_info(vport, info->snd_pid, info->snd_seq, | 1643 | reply = ovs_vport_cmd_build_info(vport, info->snd_pid, info->snd_seq, |