Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116841
b: refs/heads/master
c: 70c9c0d
h: refs/heads/master
i:
  116839: ff83631
v: v3
  • Loading branch information
Or Gerlitz authored and Roland Dreier committed Oct 22, 2008
1 parent 6f9cc7b commit cccbedf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 2767840a5ca73fde62b25e0209aa9269ec4fa7c7
refs/heads/master: 70c9c0db549245a49cabf42d5a74688077254d46
9 changes: 8 additions & 1 deletion trunk/drivers/infiniband/ulp/ipoib/ipoib_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ static void ipoib_get_drvinfo(struct net_device *netdev,
strncpy(drvinfo->driver, "ipoib", sizeof(drvinfo->driver) - 1);
}

static u32 ipoib_get_rx_csum(struct net_device *dev)
{
struct ipoib_dev_priv *priv = netdev_priv(dev);
return test_bit(IPOIB_FLAG_CSUM, &priv->flags) &&
!test_bit(IPOIB_FLAG_ADMIN_CM, &priv->flags);
}

static int ipoib_get_coalesce(struct net_device *dev,
struct ethtool_coalesce *coal)
{
Expand Down Expand Up @@ -129,7 +136,7 @@ static void ipoib_get_ethtool_stats(struct net_device *dev,

static const struct ethtool_ops ipoib_ethtool_ops = {
.get_drvinfo = ipoib_get_drvinfo,
.get_tso = ethtool_op_get_tso,
.get_rx_csum = ipoib_get_rx_csum,
.get_coalesce = ipoib_get_coalesce,
.set_coalesce = ipoib_set_coalesce,
.get_flags = ethtool_op_get_flags,
Expand Down

0 comments on commit cccbedf

Please sign in to comment.