Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203213
b: refs/heads/master
c: d92be4b
h: refs/heads/master
i:
  203211: 59bcf59
v: v3
  • Loading branch information
Stanislaw Gruszka authored and David S. Miller committed Jun 29, 2010
1 parent 47e0f80 commit c1ae4bb
Show file tree
Hide file tree
Showing 2 changed files with 8 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: 52b6dcfe59d73347a598ba0826a6191a1e497679
refs/heads/master: d92be4b1661be0cef5f277f10078c71c166f16ad
9 changes: 7 additions & 2 deletions trunk/drivers/net/vmxnet3/vmxnet3_ethtool.c
Original file line number Diff line number Diff line change
Expand Up @@ -276,16 +276,21 @@ vmxnet3_get_strings(struct net_device *netdev, u32 stringset, u8 *buf)
}

static u32
vmxnet3_get_flags(struct net_device *netdev) {
vmxnet3_get_flags(struct net_device *netdev)
{
return netdev->features;
}

static int
vmxnet3_set_flags(struct net_device *netdev, u32 data) {
vmxnet3_set_flags(struct net_device *netdev, u32 data)
{
struct vmxnet3_adapter *adapter = netdev_priv(netdev);
u8 lro_requested = (data & ETH_FLAG_LRO) == 0 ? 0 : 1;
u8 lro_present = (netdev->features & NETIF_F_LRO) == 0 ? 0 : 1;

if (data & ~ETH_FLAG_LRO)
return -EOPNOTSUPP;

if (lro_requested ^ lro_present) {
/* toggle the LRO feature*/
netdev->features ^= NETIF_F_LRO;
Expand Down

0 comments on commit c1ae4bb

Please sign in to comment.