Skip to content
Commit 5ae77250 authored by David Wu's avatar David Wu Committed by Greg Kroah-Hartman
Browse files

net: stmmac: Fixed mtu channged by cache aligned

[ Upstream commit 5b55299e ]

Since the original mtu is not used when the mtu is updated,
the mtu is aligned with cache, this will get an incorrect.
For example, if you want to configure the mtu to be 1500,
but mtu 1536 is configured in fact.

Fixed: eaf4fac4

 ("net: stmmac: Do not accept invalid MTU values")
Signed-off-by: default avatarDavid Wu <david.wu@rock-chips.com>
Link: https://lore.kernel.org/r/20210113034109.27865-1-david.wu@rock-chips.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 741690db
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment