vmxnet3: adjust ring sizes when interface is down
authorNeil Horman <nhorman@tuxdriver.com>
Fri, 13 Jun 2014 14:03:21 +0000 (10:03 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 17 Jun 2014 04:26:40 +0000 (21:26 -0700)
commitf00e2b0ac3ae25a37c04a113ed03bf249fad15d8
treecc6cebf59e8ea8ff2b7be36d8ec2261c3e1abe76
parent7171511eaec5bf23fb06078f59784a3a0626b38f
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>
drivers/net/vmxnet3/vmxnet3_drv.c
drivers/net/vmxnet3/vmxnet3_ethtool.c
drivers/net/vmxnet3/vmxnet3_int.h