Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27105
b: refs/heads/master
c: 0674d59
h: refs/heads/master
i:
  27103: 7e9d15e
v: v3
  • Loading branch information
Zachary Amsden authored and Linus Torvalds committed Jun 5, 2006
1 parent a547665 commit 72f5b0d
Show file tree
Hide file tree
Showing 2 changed files with 17 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: 78b86e579f11e7d7bd45acd90b6a87cd4b7c5a54
refs/heads/master: 0674d594ad8e0856243536c0bcc22e4583554bfb
16 changes: 16 additions & 0 deletions trunk/drivers/net/forcedeth.c
Original file line number Diff line number Diff line change
Expand Up @@ -2615,6 +2615,18 @@ 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;
}
#endif

static struct ethtool_ops ops = {
.get_drvinfo = nv_get_drvinfo,
.get_link = ethtool_op_get_link,
Expand All @@ -2626,6 +2638,10 @@ 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
};

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

0 comments on commit 72f5b0d

Please sign in to comment.