ntb_hw: In INTx fallback, correct db shift from 15 to 16

Sponsored by:	EMC / Isilon Storage Division
This commit is contained in:
Conrad Meyer 2015-11-11 18:55:07 +00:00
parent 6fde27ecee
commit 2219047bc1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=290680
2 changed files with 2 additions and 1 deletions

View File

@ -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);

View File

@ -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