amd-xgbe: Add ethtool show/set ring parameter support
Add ethtool support to show and set the number of the Rx and Tx ring descriptors. Changing the ring configuration will result in a device restart. Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
53a1024abf
commit
bab748de98
@@ -1426,10 +1426,8 @@ static void xgbe_stopdev(struct work_struct *work)
|
||||
netdev_alert(pdata->netdev, "device stopped\n");
|
||||
}
|
||||
|
||||
static void xgbe_restart_dev(struct xgbe_prv_data *pdata)
|
||||
void xgbe_restart_dev(struct xgbe_prv_data *pdata)
|
||||
{
|
||||
DBGPR("-->xgbe_restart_dev\n");
|
||||
|
||||
/* If not running, "restart" will happen on open */
|
||||
if (!netif_running(pdata->netdev))
|
||||
return;
|
||||
@@ -1440,8 +1438,6 @@ static void xgbe_restart_dev(struct xgbe_prv_data *pdata)
|
||||
xgbe_free_rx_data(pdata);
|
||||
|
||||
xgbe_start(pdata);
|
||||
|
||||
DBGPR("<--xgbe_restart_dev\n");
|
||||
}
|
||||
|
||||
static void xgbe_restart(struct work_struct *work)
|
||||
|
Reference in New Issue
Block a user