mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
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 <[email protected]> Signed-off-by: Jesse Gross <[email protected]>
This commit is contained in:
parent
c55177e3e1
commit
03fbf8b387
1 changed files with 3 additions and 1 deletions
|
|
@ -1635,7 +1635,9 @@ static int ovs_vport_cmd_set(struct sk_buff *skb, struct genl_info *info)
|
|||
|
||||
if (!err && a[OVS_VPORT_ATTR_OPTIONS])
|
||||
err = ovs_vport_set_options(vport, a[OVS_VPORT_ATTR_OPTIONS]);
|
||||
if (!err && a[OVS_VPORT_ATTR_UPCALL_PID])
|
||||
if (err)
|
||||
goto exit_unlock;
|
||||
if (a[OVS_VPORT_ATTR_UPCALL_PID])
|
||||
vport->upcall_pid = nla_get_u32(a[OVS_VPORT_ATTR_UPCALL_PID]);
|
||||
|
||||
reply = ovs_vport_cmd_build_info(vport, info->snd_pid, info->snd_seq,
|
||||
|
|
|
|||
Loading…
Reference in a new issue