Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266471
b: refs/heads/master
c: 1d0861a
h: refs/heads/master
i:
  266469: e9f2093
  266467: f7ab681
  266463: 7869c31
v: v3
  • Loading branch information
Rick Jones authored and David S. Miller committed Oct 7, 2011
1 parent 42984cb commit 76ce8aa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 88c5100c28b02c4b2b2c6f6fafbbd76d90f698b9
refs/heads/master: 1d0861acfb24d0ca0661ff5a156b992b2c589458
10 changes: 10 additions & 0 deletions trunk/drivers/net/ethernet/realtek/8139cp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,15 @@ static void cp_get_drvinfo (struct net_device *dev, struct ethtool_drvinfo *info
strcpy (info->bus_info, pci_name(cp->pdev));
}

static void cp_get_ringparam(struct net_device *dev,
struct ethtool_ringparam *ring)
{
ring->rx_max_pending = CP_RX_RING_SIZE;
ring->tx_max_pending = CP_TX_RING_SIZE;
ring->rx_pending = CP_RX_RING_SIZE;
ring->tx_pending = CP_TX_RING_SIZE;
}

static int cp_get_regs_len(struct net_device *dev)
{
return CP_REGS_SIZE;
Expand Down Expand Up @@ -1525,6 +1534,7 @@ static const struct ethtool_ops cp_ethtool_ops = {
.get_eeprom_len = cp_get_eeprom_len,
.get_eeprom = cp_get_eeprom,
.set_eeprom = cp_set_eeprom,
.get_ringparam = cp_get_ringparam,
};

static int cp_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
Expand Down

0 comments on commit 76ce8aa

Please sign in to comment.