OSDN Git Service

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)
commitb1cb82566242fbb54d5c655e23995a8f7bd37ecf
tree869889275a6991386cd1270852002dfa432680d1
parent926d0977b28793533a99ec66484385b5f602e9c8
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