]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Cleanup extended rx ring size code
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 5 Apr 2011 14:22:43 +0000 (14:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2011 18:29:05 +0000 (11:29 -0700)
commit3410585a8477097b01e5c83e5b01c78e7f716b4c
treebf2e405e7480bd58afe20b58eaee9fdd091da61e
parentb1cd982978b6214327181f7966407ba834fc69d6
tg3: Cleanup extended rx ring size code

Hardcoded values are used in multiple places to describe the maximum rx
ring sizes.  This patch replaces those values with preprocessor
constants.  This patch also introduces a new TG3_FLG3_LRG_PROD_RING_CAP
to determine if the device is capable of supporting larger ring sizes.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c
drivers/net/tg3.h