]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Assign rx ret producer indexes by vector
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 1 Sep 2009 13:19:05 +0000 (13:19 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 2 Sep 2009 07:43:58 +0000 (00:43 -0700)
commit2f0b8a771ecd2cb2a0a33a6f91d435b280c38daa
tree3fc4ef598534d0e309a4a980b29e3a601f4581e1
parentef82e396f34076ff9769aa4a8766a88d33ee02b2
tg3: Assign rx ret producer indexes by vector

When RSS is enabled, the status block format changes slightly.  The
"rx_jumbo_consumer", "reserved", and "rx_mini_consumer" members get
mapped to the other three rx return ring producer indexes.  This patch
introduces a new per-interrupt member which identifies which location
in the status block a particular vector should look for return ring
updates.

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