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)
commit09faf5a7d7c0bcb07faba072f611937af9dd5788
tree69426af427007a9318ed3bdfa7012a7c0b509594
parentafa0925c6fcc6a8f610e996ca09bc3215048033c
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: 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>
drivers/net/ethernet/ti/cpsw_ethtool.c