]> git.baikalelectronics.ru Git - kernel.git/commit
team: fix mtu setting
authorJiri Pirko <jiri@resnulli.us>
Thu, 29 May 2014 18:46:17 +0000 (20:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jun 2014 21:56:01 +0000 (14:56 -0700)
commitf092fde7252f2c9a4cf49b1ab93384e979855706
tree5b6fbf5f7132a6d1fe15fd5a23f89fe291a6127b
parent463c827905b9aab5236112826b99aa57feb08ff6
team: fix mtu setting

Now it is not possible to set mtu to team device which has a port
enslaved to it. The reason is that when team_change_mtu() calls
dev_set_mtu() for port device, notificator for NETDEV_PRECHANGEMTU
event is called and team_device_event() returns NOTIFY_BAD forbidding
the change. So fix this by returning NOTIFY_DONE here in case team is
changing mtu in team_change_mtu().

Introduced-by: 88d4fc0a "net: introduce ethernet teaming device"
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Flavio Leitner <fbl@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c
include/linux/if_team.h