ntb_hw: In INTx fallback, correct db shift from 15 to 16
Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
6fde27ecee
commit
2219047bc1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290680
@ -905,7 +905,7 @@ ntb_init_isr(struct ntb_softc *ntb)
|
||||
|
||||
if (ntb->type == NTB_XEON && num_vectors < ntb->db_vec_count) {
|
||||
ntb->db_vec_count = 1;
|
||||
ntb->db_vec_shift = ntb->db_count;
|
||||
ntb->db_vec_shift = XEON_DB_TOTAL_SHIFT;
|
||||
rc = ntb_setup_legacy_interrupt(ntb);
|
||||
} else {
|
||||
ntb_create_msix_vec(ntb, num_vectors);
|
||||
|
@ -39,6 +39,7 @@
|
||||
#define XEON_HSX_SPLIT_MW_COUNT 3
|
||||
/* Reserve the uppermost bit for link interrupt */
|
||||
#define XEON_DB_COUNT 15
|
||||
#define XEON_DB_TOTAL_SHIFT 16
|
||||
#define XEON_DB_LINK 15
|
||||
#define XEON_DB_MSIX_VECTOR_COUNT 4
|
||||
#define XEON_DB_MSIX_VECTOR_SHIFT 5
|
||||
|
Loading…
Reference in New Issue
Block a user