]> git.baikalelectronics.ru Git - kernel.git/commit
be2net: do not use frag index in the RX-compl entry
authorSuresh Reddy <suresh.reddy@emulex.com>
Wed, 15 Jan 2014 07:53:38 +0000 (13:23 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jan 2014 23:52:03 +0000 (15:52 -0800)
commit947e5d8db918eee14ebd32f9ae3ebe752293b88b
treee7f10fae3f287b5fd5d4380fcd31616f70c8d83f
parent6ae5c0ce7f306d4e7570e89ce9f2b81d3181c35e
be2net: do not use frag index in the RX-compl entry

Instead, use the tail of the RXQ to pick the associated RXQ entry

This fix is required in preparation for supporting RXQ lengths greater than 1K.
For such queues, the frag index in the RX-compl entry is not valid as it is only a 10 bit entry not capable of addressing RXQs longer than 1K.

Signed-off-by: Suresh Reddy <suresh.reddy@emulex.com>
Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c