]> 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)
commitee4738586f9162d635b02747542367ab84461688
treefd3c02c461fdeb60eb1ae3ab7470fcb92ec3399e
parentc8bb776a6bb2e0fdda23c2cdafccaa5283d98b55
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