]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
net: stmmac: Fixed mtu channged by cache aligned
authorDavid Wu <david.wu@rock-chips.com>
Wed, 13 Jan 2021 03:41:09 +0000 (11:41 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 19 Feb 2021 15:45:21 +0000 (16:45 +0100)
commit91c19dff0b9800ce87774510b953e2d3ebac3424
tree75ca7081ae780c649ceb851e3a9aad59a0c33dde
parent910721bab20b47dd8d8c0cac1dfda13b07eec2b6
net: stmmac: Fixed mtu channged by cache aligned

BugLink: https://bugs.launchpad.net/bugs/1915186
[ Upstream commit 5b55299eed78538cc4746e50ee97103a1643249c ]

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: eaf4fac478077 ("net: stmmac: Do not accept invalid MTU values")
Signed-off-by: David Wu <david.wu@rock-chips.com>
Link: https://lore.kernel.org/r/20210113034109.27865-1-david.wu@rock-chips.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c