diff options
author | Neil Horman <nhorman@tuxdriver.com> | 2014-06-13 10:03:21 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-16 21:26:40 -0700 |
commit | f00e2b0ac3ae25a37c04a113ed03bf249fad15d8 (patch) | |
tree | cc6cebf59e8ea8ff2b7be36d8ec2261c3e1abe76 /drivers/net/vmxnet3/vmxnet3_int.h | |
parent | 7171511eaec5bf23fb06078f59784a3a0626b38f (diff) | |
download | lwn-f00e2b0ac3ae25a37c04a113ed03bf249fad15d8.tar.gz lwn-f00e2b0ac3ae25a37c04a113ed03bf249fad15d8.zip |
vmxnet3: adjust ring sizes when interface is down
If ethtool is used to update ring sizes on a vmxnet3 interface that isn't
running, the change isn't stored, meaning the ring update is effectively is
ignored and lost without any indication to the user.
Other network drivers store the ring size update so that ring allocation uses
the new sizes next time the interface is brought up. This patch modifies
vmxnet3 to behave this way as well
Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: "David S. Miller" <davem@davemloft.net>
CC: Shreyas Bhatewara <sbhatewara@vmware.com>
CC: "VMware, Inc." <pv-drivers@vmware.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/vmxnet3/vmxnet3_int.h')
-rw-r--r-- | drivers/net/vmxnet3/vmxnet3_int.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/vmxnet3/vmxnet3_int.h b/drivers/net/vmxnet3/vmxnet3_int.h index 190569d02450..29ee77f2c97f 100644 --- a/drivers/net/vmxnet3/vmxnet3_int.h +++ b/drivers/net/vmxnet3/vmxnet3_int.h @@ -349,6 +349,11 @@ struct vmxnet3_adapter { u32 link_speed; /* in mbps */ u64 tx_timeout_count; + + /* Ring sizes */ + u32 tx_ring_size; + u32 rx_ring_size; + struct work_struct work; unsigned long state; /* VMXNET3_STATE_BIT_xxx */ |