]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 23 Feb 2017 20:29:35 +0000 (14:29 -0600)
commit6fdb33637792737b96f1b93cddbd969c481be88d
tree2d56ef0128dfadc5dccd9b8ddebe13e269538f85
parentb4d9a7b38a5341a9dfe973b3c53aa7a755b2ac6e
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>
(cherry picked from commit 038b9404d4e2db4fbc03d5d2203abafc6e188528)
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/net/ethernet/qualcomm/emac/emac-ethtool.c