]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0c25077a1e731e7ec5112f8df55e9b988aaa9c54
tree8e172b7f8b7d02929cc2045b7bd26e66d4248b24
parent499e452b2bb4711f6d1f801df33c1e5cf7b99487
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