]> git.baikalelectronics.ru Git - kernel.git/commit
net: qcom/emac: add ethtool support for setting ring parameters
authorTimur Tabi <timur@codeaurora.org>
Wed, 8 Feb 2017 21:49:28 +0000 (15:49 -0600)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Feb 2017 22:09:19 +0000 (17:09 -0500)
commit73d0fa8854d62d5bf404f55430eea64482ec93d2
treefd3c02c461fdeb60eb1ae3ab7470fcb92ec3399e
parent4c658b1ace31abe00afc49387d496860b9650779
net: qcom/emac: add ethtool support for setting ring parameters

Implement the set_ringparam method, which allows the user to specify
the size of the TX and RX descriptor rings.  The values are constrained
to the limits of the hardware.

Since the driver does not use separate queues for mini or jumbo frames,
attempts to set those values are rejected.

If the interface is already running when the setting is changed, then
the interface is reset.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qualcomm/emac/emac-ethtool.c