diff options
Diffstat (limited to 'drivers/net/gianfar_ethtool.c')
-rw-r--r-- | drivers/net/gianfar_ethtool.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/gianfar_ethtool.c b/drivers/net/gianfar_ethtool.c index 3021057d54ae..59b3b5d98efe 100644 --- a/drivers/net/gianfar_ethtool.c +++ b/drivers/net/gianfar_ethtool.c | |||
@@ -475,6 +475,7 @@ static int gfar_sringparam(struct net_device *dev, struct ethtool_ringparam *rva | |||
475 | /* Change the size */ | 475 | /* Change the size */ |
476 | priv->rx_ring_size = rvals->rx_pending; | 476 | priv->rx_ring_size = rvals->rx_pending; |
477 | priv->tx_ring_size = rvals->tx_pending; | 477 | priv->tx_ring_size = rvals->tx_pending; |
478 | priv->num_txbdfree = priv->tx_ring_size; | ||
478 | 479 | ||
479 | /* Rebuild the rings with the new size */ | 480 | /* Rebuild the rings with the new size */ |
480 | if (dev->flags & IFF_UP) { | 481 | if (dev->flags & IFF_UP) { |
@@ -623,6 +624,7 @@ const struct ethtool_ops gfar_ethtool_ops = { | |||
623 | .get_tx_csum = gfar_get_tx_csum, | 624 | .get_tx_csum = gfar_get_tx_csum, |
624 | .set_rx_csum = gfar_set_rx_csum, | 625 | .set_rx_csum = gfar_set_rx_csum, |
625 | .set_tx_csum = gfar_set_tx_csum, | 626 | .set_tx_csum = gfar_set_tx_csum, |
627 | .set_sg = ethtool_op_set_sg, | ||
626 | .get_msglevel = gfar_get_msglevel, | 628 | .get_msglevel = gfar_get_msglevel, |
627 | .set_msglevel = gfar_set_msglevel, | 629 | .set_msglevel = gfar_set_msglevel, |
628 | #ifdef CONFIG_PM | 630 | #ifdef CONFIG_PM |