]> git.baikalelectronics.ru Git - kernel.git/commit
sky2: size status ring based on Tx/Rx ring
authorstephen hemminger <shemminger@vyatta.com>
Thu, 22 Apr 2010 13:42:56 +0000 (13:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 23 Apr 2010 01:32:58 +0000 (18:32 -0700)
commited3bd74c114204b06d18310f4923a4e584cf853d
treedade60807aa05f2b06b15321086487ee3f372cd7
parent75ed118aeb45a5bd3a852d4387ae34abb61d93f3
sky2: size status ring based on Tx/Rx ring

Sky2 status ring must be big enough to handle worst case number
of status messages. It was being oversized (to handle dual port cards),
and excessive number of tx ring entries were allowed. This patch reduces
the footprint and makes sure the value is enough.

Later patch to add RSS increases the number of possible Rx status elements.

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