diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/realtek/8139cp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/ethernet/realtek/8139cp.c b/drivers/net/ethernet/realtek/8139cp.c index c77d5af676a1..5dcd5be03f31 100644 --- a/drivers/net/ethernet/realtek/8139cp.c +++ b/drivers/net/ethernet/realtek/8139cp.c | |||
@@ -1324,6 +1324,15 @@ static void cp_get_drvinfo (struct net_device *dev, struct ethtool_drvinfo *info | |||
1324 | strcpy (info->bus_info, pci_name(cp->pdev)); | 1324 | strcpy (info->bus_info, pci_name(cp->pdev)); |
1325 | } | 1325 | } |
1326 | 1326 | ||
1327 | static void cp_get_ringparam(struct net_device *dev, | ||
1328 | struct ethtool_ringparam *ring) | ||
1329 | { | ||
1330 | ring->rx_max_pending = CP_RX_RING_SIZE; | ||
1331 | ring->tx_max_pending = CP_TX_RING_SIZE; | ||
1332 | ring->rx_pending = CP_RX_RING_SIZE; | ||
1333 | ring->tx_pending = CP_TX_RING_SIZE; | ||
1334 | } | ||
1335 | |||
1327 | static int cp_get_regs_len(struct net_device *dev) | 1336 | static int cp_get_regs_len(struct net_device *dev) |
1328 | { | 1337 | { |
1329 | return CP_REGS_SIZE; | 1338 | return CP_REGS_SIZE; |
@@ -1525,6 +1534,7 @@ static const struct ethtool_ops cp_ethtool_ops = { | |||
1525 | .get_eeprom_len = cp_get_eeprom_len, | 1534 | .get_eeprom_len = cp_get_eeprom_len, |
1526 | .get_eeprom = cp_get_eeprom, | 1535 | .get_eeprom = cp_get_eeprom, |
1527 | .set_eeprom = cp_set_eeprom, | 1536 | .set_eeprom = cp_set_eeprom, |
1537 | .get_ringparam = cp_get_ringparam, | ||
1528 | }; | 1538 | }; |
1529 | 1539 | ||
1530 | static int cp_ioctl (struct net_device *dev, struct ifreq *rq, int cmd) | 1540 | static int cp_ioctl (struct net_device *dev, struct ifreq *rq, int cmd) |