Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27414
b: refs/heads/master
c: 6a78814
h: refs/heads/master
v: v3
  • Loading branch information
Ayaz Abdulla authored and Jeff Garzik committed Jun 11, 2006
1 parent d3c74c8 commit 04c71cf
Show file tree
Hide file tree
Showing 2 changed files with 3 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: cac925a4aab1b7233d3beb591f53498816058a08
refs/heads/master: 6a78814f6c9e35e9b4815c1973c988555212d6ef
8 changes: 2 additions & 6 deletions trunk/drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2675,17 +2675,15 @@ static int nv_nway_reset(struct net_device *dev)
return ret;
}

#ifdef NETIF_F_TSO
static int nv_set_tso(struct net_device *dev, u32 value)
{
struct fe_priv *np = netdev_priv(dev);

if ((np->driver_data & DEV_HAS_CHECKSUM))
return ethtool_op_set_tso(dev, value);
else
return value ? -EOPNOTSUPP : 0;
return -EOPNOTSUPP;
}
#endif

static struct ethtool_ops ops = {
.get_drvinfo = nv_get_drvinfo,
Expand All @@ -2698,10 +2696,8 @@ static struct ethtool_ops ops = {
.get_regs = nv_get_regs,
.nway_reset = nv_nway_reset,
.get_perm_addr = ethtool_op_get_perm_addr,
#ifdef NETIF_F_TSO
.get_tso = ethtool_op_get_tso,
.set_tso = nv_set_tso
#endif
.set_tso = nv_set_tso,
};

static void nv_vlan_rx_register(struct net_device *dev, struct vlan_group *grp)
Expand Down

0 comments on commit 04c71cf

Please sign in to comment.