]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40f3e69365894ca358e2e73faf23d8be9dff6b09
treecc6cebf59e8ea8ff2b7be36d8ec2261c3e1abe76
parent29230ba12c9ebdc4bb6e22babcaec9dfa3d76ff4
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