Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 214565
b: refs/heads/master
c: 67c9660
h: refs/heads/master
i:
  214563: 271d4dc
v: v3
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Sep 17, 2010
1 parent 1838c70 commit 9b391d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 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: 457e9d2233bdde5bb5577df3e2d4d48f84c67b66
refs/heads/master: 67c9660831f6b6b76866a0838466c83765ffbbd3
7 changes: 5 additions & 2 deletions trunk/net/core/ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -1181,8 +1181,11 @@ static int ethtool_set_gro(struct net_device *dev, char __user *useraddr)
return -EFAULT;

if (edata.data) {
if (!dev->ethtool_ops->get_rx_csum ||
!dev->ethtool_ops->get_rx_csum(dev))
u32 rxcsum = dev->ethtool_ops->get_rx_csum ?
dev->ethtool_ops->get_rx_csum(dev) :
ethtool_op_get_rx_csum(dev);

if (!rxcsum)
return -EINVAL;
dev->features |= NETIF_F_GRO;
} else
Expand Down

0 comments on commit 9b391d3

Please sign in to comment.