]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: aquantia: set net_device mtu when mtu is changed
authorDavid Arcari <darcari@redhat.com>
Mon, 13 Mar 2017 23:07:16 +0000 (19:07 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Mar 2017 03:21:20 +0000 (20:21 -0700)
commit32f4b0f41c5b318d68db3d54f024fd4b20282527
treeceb4835b4a037c43a582d8aa5fdcc65aac644cb9
parentfc19dbddf767ae849194c25ed65ca78740c7e0aa
net: ethernet: aquantia: set net_device mtu when mtu is changed

When the aquantia device mtu is changed the net_device structure is not
updated.  As a result the ip command does not properly reflect the mtu change.

Commit 016290603f2e incorrectly assumed that __dev_set_mtu() was making the
assignment ndev->mtu = new_mtu;  This is not true in the case where the driver
has a ndo_change_mtu routine.

Fixes: 016290603f2e ("net: ethernet: aquantia: Fixes for aq_ndev_change_mtu")
Cc: Pavel Belous <Pavel.Belous@aquantia.com>
Signed-off-by: David Arcari <darcari@redhat.com>
Tested-by: Pavel Belous <pavel.belous@aquantia.com>
Reviewed-by: Jarod Wilson <jarod@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/aquantia/atlantic/aq_main.c