]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: ethernet: ti: cpsw_ethtool: fix ethtool ring param set
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Fri, 31 May 2019 13:47:25 +0000 (16:47 +0300)
committerKleber Sacilotto de Souza <kleber.souza@canonical.com>
Wed, 14 Aug 2019 09:18:49 +0000 (11:18 +0200)
commit0b3051a6dc242d332d6b0b999713e3842c1bac0d
tree8b46969568d11fd8c30ea5e6a11bf1932e526d29
parentf643c61bbd5dfe67c954c400c54dcd0cb8e030c5
net: ethernet: ti: cpsw_ethtool: fix ethtool ring param set

BugLink: https://bugs.launchpad.net/bugs/1838700
[ Upstream commit 09faf5a7d7c0bcb07faba072f611937af9dd5788 ]

Fix ability to set RX descriptor number, the reason - initially
"tx_max_pending" was set incorrectly, but the issue appears after
adding sanity check, so fix is for "sanity" patch.

Fixes: 37e2d99b59c476 ("ethtool: Ensure new ring parameters are within bounds during SRINGPARAM")
Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Reviewed-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/net/ethernet/ti/cpsw.c