sky2: enforce minimum ring size
authorstephen hemminger <shemminger@vyatta.com>
Thu, 17 Nov 2011 14:37:23 +0000 (14:37 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Nov 2011 02:43:57 +0000 (21:43 -0500)
commit738a849c8eef4787a526d95763f985b8c1cb68e4
tree8e172b7f8b7d02929cc2045b7bd26e66d4248b24
parent4a8bb7e27fbb68da888b55f26defd2855225b2d5
sky2: enforce minimum ring size

The hardware has a restriction that the minimum ring size possible
is 128. The number of elements used is controlled by tx_pending and
the overall number of elements in the ring tx_ring_size, therefore it
is okay to limit the number of elements in use to a small value (63)
but still provide a bigger ring.

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