]> 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)
commit783503298041951f3408776f34ca2513319deb0c
treecc6cebf59e8ea8ff2b7be36d8ec2261c3e1abe76
parent081ef54181a1ff0d2c7e189052277797ff8dd0dd
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