diff options
author | Jiri Pirko <jiri@resnulli.us> | 2012-08-23 03:26:51 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-08-24 13:46:39 -0400 |
commit | 0c7517e9faa2f79afe95b47321f3cd08fe0145cd (patch) | |
tree | b2f869d36a3ae6e6d303220a4f71b4d8d04a58c5 | |
parent | 1f7c9ae7a014d994c01a7dd59333f2fcef2aba58 (diff) | |
download | kernel-common-0c7517e9faa2f79afe95b47321f3cd08fe0145cd.tar.gz kernel-common-0c7517e9faa2f79afe95b47321f3cd08fe0145cd.tar.bz2 kernel-common-0c7517e9faa2f79afe95b47321f3cd08fe0145cd.zip |
team: don't print warn message on -ESRCH during event send
When no one is listening on NL socket, -ESRCH is returned and warning
message is printed. This message is confusing people and in fact has no
meaning. So do not print it in this case.
Reported-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/team/team.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index c8a3f108dc94..a5926c8584aa 100644 --- a/drivers/net/team/team.c +++ b/drivers/net/team/team.c @@ -2486,7 +2486,7 @@ static void __team_options_change_check(struct team *team) list_add_tail(&opt_inst->tmp_list, &sel_opt_inst_list); } err = team_nl_send_event_options_get(team, &sel_opt_inst_list); - if (err) + if (err && err != -ESRCH) netdev_warn(team->dev, "Failed to send options change via netlink (err %d)\n", err); } @@ -2517,9 +2517,9 @@ static void __team_port_change_check(struct team_port *port, bool linkup) send_event: err = team_nl_send_event_port_list_get(port->team); - if (err) - netdev_warn(port->team->dev, "Failed to send port change of device %s via netlink\n", - port->dev->name); + if (err && err != -ESRCH) + netdev_warn(port->team->dev, "Failed to send port change of device %s via netlink (err %d)\n", + port->dev->name, err); } |