Skip to content

Commit

Permalink
[PATCH] forcedeth config: tso cleanup
Browse files Browse the repository at this point in the history
There are a series of patches for configuration support in forcedeth and
one patch for device ids.

This patch is a cleanup of the a previous TSO patch.

Signed-Off-By: Ayaz Abdulla <aabdulla@nvidia.com>

Signed-off-by: Jeff Garzik <jeff@garzik.org>
  • Loading branch information
Ayaz Abdulla authored and Jeff Garzik committed Jun 11, 2006
1 parent cac925a commit 6a78814
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions 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 6a78814

Please sign in to comment.