linux/drivers/net/atlx
J. K. Cliburn 2f32c86721 atl1: fix oops when changing tx/rx ring params
Commit 3f5a2a713a zeroes out the statistics
message block (SMB) and coalescing message block (CMB) when adapter ring
resources are freed.  This is desirable behavior, but, as a side effect,
the commit leads to an oops when atl1_set_ringparam() attempts to alter
the number of rx or tx elements in the ring buffer (by using ethtool
-G, for example).  We don't want SMB or CMB to change during this
operation.

Modify atl1_set_ringparam() to preserve SMB and CMB when changing ring
parameters.

Cc: stable@kernel.org
Signed-off-by: Jay Cliburn <jcliburn@gmail.com>
Reported-by: Tõnu Raitviir <jussuf@linux.ee>
Signed-off-by: David S. Miller <davem@davemloft.net>
2011-01-03 11:04:49 -08:00
..
Makefile atl2: add atl2 driver 2008-09-18 11:34:52 -04:00
atl1.c atl1: fix oops when changing tx/rx ring params 2011-01-03 11:04:49 -08:00
atl1.h atlx: make local functions/data static 2010-10-24 14:55:49 -07:00
atl2.c vlan: Don't check for vlan group before vlan_tx_tag_present. 2010-10-21 01:26:52 -07:00
atl2.h tree-wide: Assorted spelling fixes 2010-02-09 11:13:56 +01:00
atlx.c atlx: make local functions/data static 2010-10-24 14:55:49 -07:00
atlx.h atlx: move modinfo data from atlx.h to atl1.c 2009-05-26 20:50:12 -07:00