Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156335
b: refs/heads/master
c: accff95
h: refs/heads/master
i:
  156333: 3a75a0d
  156331: 979b83c
  156327: a8cb6e0
  156319: d18afc0
v: v3
  • Loading branch information
Jiajun Wu authored and David S. Miller committed Jul 30, 2009
1 parent 0f02067 commit 4595b82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72fc939789dbe7ca091b50b686d45ac0df15417a
refs/heads/master: accff95c2500c7bce671c1f722de6f8810fe550d
10 changes: 4 additions & 6 deletions trunk/drivers/net/gianfar_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,9 +366,8 @@ static int gfar_scoalesce(struct net_device *dev, struct ethtool_coalesce *cvals
return -EINVAL;
}

priv->rxic = mk_ic_value(
gfar_usecs2ticks(priv, cvals->rx_coalesce_usecs),
cvals->rx_max_coalesced_frames);
priv->rxic = mk_ic_value(cvals->rx_max_coalesced_frames,
gfar_usecs2ticks(priv, cvals->rx_coalesce_usecs));

/* Set up tx coalescing */
if ((cvals->tx_coalesce_usecs == 0) ||
Expand All @@ -390,9 +389,8 @@ static int gfar_scoalesce(struct net_device *dev, struct ethtool_coalesce *cvals
return -EINVAL;
}

priv->txic = mk_ic_value(
gfar_usecs2ticks(priv, cvals->tx_coalesce_usecs),
cvals->tx_max_coalesced_frames);
priv->txic = mk_ic_value(cvals->tx_max_coalesced_frames,
gfar_usecs2ticks(priv, cvals->tx_coalesce_usecs));

gfar_write(&priv->regs->rxic, 0);
if (priv->rxcoalescing)
Expand Down

0 comments on commit 4595b82

Please sign in to comment.