diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-03-23 14:57:06 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2020-03-23 14:57:06 +0000 |
commit | bdba9cd22af439cb6577c724805c040b819f9eb7 (patch) | |
tree | 9baa1aaa8f89ab2c45ff37983209cc6a7409a380 /sys/dev/pci/if_ix.h | |
parent | c047eaec216822d8f453f9af5cf70beff529dd08 (diff) |
Make it possible to use ix(4) with MSI-X, currently disabled by default.
The current implementation still uses a single queue but already establishes
a different handler for link interrupts. This is done in preparation for
multi-queues support.
Based on a bigger diff from haesbaert@ and on the FreeBSD code.
Tested by Hrvoje Popovski and jmatthew@, ok jmatthew@
Diffstat (limited to 'sys/dev/pci/if_ix.h')
-rw-r--r-- | sys/dev/pci/if_ix.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/pci/if_ix.h b/sys/dev/pci/if_ix.h index e50cf217476..a8ca03fb064 100644 --- a/sys/dev/pci/if_ix.h +++ b/sys/dev/pci/if_ix.h @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ix.h,v 1.37 2020/03/02 01:59:01 jmatthew Exp $ */ +/* $OpenBSD: if_ix.h,v 1.38 2020/03/23 14:57:05 mpi Exp $ */ /****************************************************************************** @@ -120,6 +120,7 @@ * Interrupt Moderation parameters */ #define IXGBE_INTS_PER_SEC 8000 +#define IXGBE_LINK_ITR 1000 struct ixgbe_tx_buf { uint32_t eop_index; @@ -154,6 +155,8 @@ struct ix_queue { uint32_t msix; /* This queue's MSIX vector */ uint32_t eims; /* This queue's EIMS bit */ uint32_t eitr_setting; + char name[8]; + pci_intr_handle_t ih; void *tag; struct tx_ring *txr; struct rx_ring *rxr; |