]> 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)
commit87580f0bb81114959a39db1b7a3a3d8087c2111d
tree69426af427007a9318ed3bdfa7012a7c0b509594
parent5cf0efda49a214896249f8a10fc904462334e9ae
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: 46718044a17607 ("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