]> git.baikalelectronics.ru Git - 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)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Jun 2019 21:33:30 +0000 (14:33 -0700)
commit552c28d51e410fa3d714714738e49ebb2f131ca0
tree69426af427007a9318ed3bdfa7012a7c0b509594
parent08650c44833695e7975927d51789588604fab5dd
net: ethernet: ti: cpsw_ethtool: fix ethtool ring param set

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: 77ec6b45abbdfc ("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>
drivers/net/ethernet/ti/cpsw_ethtool.c