]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
vmxnet3: fix ethtool ring buffer size setting
authorNeil Horman <nhorman@tuxdriver.com>
Fri, 22 Feb 2013 10:32:24 +0000 (10:32 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Feb 2013 01:18:55 +0000 (20:18 -0500)
commit48412a7e7db656b6a1e52799c39f461a06292395
tree357a50bbe62574b2f06bc60155f8e1f351ece9b8
parent280b74f7f957130385a0f5184b50fc5800520146
vmxnet3: fix ethtool ring buffer size setting

Noticed that vmxnet3's get_ringparam function was returning the summation of all
ring buffers on a NIC, rather than just the size of any one ring.  This causes
problems when a vmxnet3 instance has multiple queues, as ethtool, when setting
ring parameters, first gets the current ring parameters to set the existing
values in the set_ringparm commannd.  The result is, that unless both rx and tx
ring sizes are set in a single operation, which ever ring is not set will
silently have its ring count multiplied by the number of queues on the NIC until
it reaches a driver defined maxiumum value.

Fix it by not multiplying the rx and tx ring sizes by the number of queues in
the system, like every other driver.  Tested by myself successfully.

Signed-off-by: Neil Horman <nhorman@tuxdriver.com>
CC: Shreyas Bhatewara <sbhatewara@vmware.com>
CC: "VMware, Inc." <pv-drivers@vmware.com>
CC: "David S. Miller" <davem@davemloft.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vmxnet3/vmxnet3_ethtool.c