Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet
Michael Chan b81a90d302 bnxt_en: Re-structure ring indexing and mapping.
In order to support dedicated or shared completion rings, the ring
indexing and mapping are re-structured as below:

1. bp->grp_info[] array index is 1:1 with bp->bnapi[] array index and
completion ring index.

2. rx rings 0 to n will be mapped to completion rings 0 to n.

3. If tx and rx rings share completion rings, then tx rings 0 to m will
be mapped to completion rings 0 to m.

4. If tx and rx rings use dedicated completion rings, then tx rings 0 to
m will be mapped to completion rings n + 1 to n + m.

5. Each tx or rx ring will use the corresponding completion ring index
for doorbell mapping and MSIX mapping.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-01-04 15:54:39 -05:00
..
2015-09-29 21:11:12 -07:00
2015-09-29 21:11:13 -07:00
2015-09-29 13:49:53 -07:00
2015-09-08 22:44:42 -07:00
2015-11-20 14:48:27 -05:00
2015-12-27 20:51:40 -05:00
2015-11-18 16:17:41 -05:00
2015-06-29 12:52:06 -07:00
2015-01-11 21:44:55 -05:00
2015-07-08 16:04:06 -07:00