Commit 9c0b06d
bnxt_en: Remove BNXT_RX_HDL and BNXT_TX_HDL
These 2 constants were used for the one RX and one TX completion
ring pointer in the cpr->cp_ring_arr fixed array. Now that we've
changed to allocating the array for the exact number of entries to
support more TX rings, we no longer use these constants.
The array index as well as the type of completion ring (RX/TX) are
now encoded in the handle for the completion ring. This will allow
us to locate the completion ring during NAPI for any number of
completion rings sharing the same MSIX. In the following patches,
we'll be adding support for more TX rings associated with the same
MSIX vector.
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 7845b8d commit 9c0b06d
2 files changed
+44
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2906 | 2906 | | |
2907 | 2907 | | |
2908 | 2908 | | |
| 2909 | + | |
2909 | 2910 | | |
2910 | 2911 | | |
2911 | 2912 | | |
2912 | | - | |
| 2913 | + | |
| 2914 | + | |
2913 | 2915 | | |
2914 | 2916 | | |
| 2917 | + | |
2915 | 2918 | | |
2916 | 2919 | | |
2917 | 2920 | | |
| |||
2927 | 2930 | | |
2928 | 2931 | | |
2929 | 2932 | | |
2930 | | - | |
2931 | | - | |
| 2933 | + | |
| 2934 | + | |
| 2935 | + | |
2932 | 2936 | | |
2933 | 2937 | | |
2934 | 2938 | | |
| |||
3592 | 3596 | | |
3593 | 3597 | | |
3594 | 3598 | | |
| 3599 | + | |
3595 | 3600 | | |
3596 | 3601 | | |
3597 | 3602 | | |
| |||
3612 | 3617 | | |
3613 | 3618 | | |
3614 | 3619 | | |
3615 | | - | |
3616 | | - | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
| 3623 | + | |
| 3624 | + | |
| 3625 | + | |
| 3626 | + | |
3617 | 3627 | | |
3618 | | - | |
3619 | | - | |
| 3628 | + | |
3620 | 3629 | | |
3621 | | - | |
| 3630 | + | |
3622 | 3631 | | |
3623 | | - | |
3624 | | - | |
3625 | | - | |
3626 | | - | |
3627 | | - | |
3628 | | - | |
3629 | | - | |
3630 | | - | |
3631 | | - | |
3632 | | - | |
3633 | | - | |
| 3632 | + | |
| 3633 | + | |
3634 | 3634 | | |
3635 | 3635 | | |
3636 | 3636 | | |
3637 | 3637 | | |
3638 | | - | |
| 3638 | + | |
| 3639 | + | |
| 3640 | + | |
| 3641 | + | |
| 3642 | + | |
| 3643 | + | |
| 3644 | + | |
| 3645 | + | |
3639 | 3646 | | |
3640 | 3647 | | |
3641 | 3648 | | |
| |||
6023 | 6030 | | |
6024 | 6031 | | |
6025 | 6032 | | |
6026 | | - | |
| 6033 | + | |
6027 | 6034 | | |
6028 | 6035 | | |
6029 | 6036 | | |
| |||
6060 | 6067 | | |
6061 | 6068 | | |
6062 | 6069 | | |
6063 | | - | |
| 6070 | + | |
6064 | 6071 | | |
6065 | 6072 | | |
6066 | 6073 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
543 | 543 | | |
544 | 544 | | |
545 | 545 | | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
546 | 559 | | |
547 | 560 | | |
548 | 561 | | |
| |||
997 | 1010 | | |
998 | 1011 | | |
999 | 1012 | | |
| 1013 | + | |
| 1014 | + | |
1000 | 1015 | | |
1001 | 1016 | | |
1002 | 1017 | | |
| |||
1023 | 1038 | | |
1024 | 1039 | | |
1025 | 1040 | | |
1026 | | - | |
1027 | | - | |
1028 | 1041 | | |
1029 | 1042 | | |
1030 | 1043 | | |
| |||
0 commit comments