]> git.baikalelectronics.ru Git - kernel.git/commit
sky2: reduce default Tx ring size
authorstephen hemminger <shemminger@vyatta.com>
Wed, 16 Nov 2011 13:42:58 +0000 (13:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 17 Nov 2011 01:27:12 +0000 (20:27 -0500)
commitfd937ffde4a4bf04888a3619c221cc4b563ce04a
tree869889275a6991386cd1270852002dfa432680d1
parentdaa7740db16a93620f90548e99cdcc94d6188ca5
sky2: reduce default Tx ring size

The default Tx ring size for the sky2 driver is quite large and could
cause excess buffer bloat for many users. The minimum ring size
possible and still allow handling  the worst case packet on 64bit platforms
is 38 which gets rounded up to a power of 2. But most packets only require
a couple of ring elements.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/sky2.c