diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-17 06:36:18 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2020-06-17 06:36:18 +0000 |
commit | b659102db9c942b8e9da50e7ce040b072858abf4 (patch) | |
tree | d54017897e515ea2a392737a55445d79f7b69031 /sys/dev/pci/files.pci | |
parent | e995f9ef8644770967a6bac59067c7a579db9b4d (diff) |
enable multiple queues (and interrupts on multiple cpus) on vmx(4).
im doing this with vmx(4) because it only exists on two archs (well,
one and a half archs really) so any impact is localised. most other
drivers i'm working on are enabled on 3 or 4 archs, and we're still
working on the interrupt code on those archs.
in the meantime vmx(4) can be used as a reference driver on how to
implement multiq. it shows the use of rss, toeplitz, intrmap, and
interrupts on multiple cpus. it's also a relatively simple device,
which makes it easier to understand the above features.
note that vmx(4) seems to advertise 25 msi-x vectors. it appears
that the intention is that 16 of these vectors are supposed to be
used for rx, 8 for tx, and 1 for events (eg, link up and down).
we're keeping things simple for now and using a maximum of 8 vectors
for both tx and rx, and one for events.
this is mostly based on work that jmatthew@ did, but it's simplified
now cos intrmap makes things easier.
Diffstat (limited to 'sys/dev/pci/files.pci')
-rw-r--r-- | sys/dev/pci/files.pci | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/files.pci b/sys/dev/pci/files.pci index 266f42b091f..6ca9c269c4a 100644 --- a/sys/dev/pci/files.pci +++ b/sys/dev/pci/files.pci @@ -1,4 +1,4 @@ -# $OpenBSD: files.pci,v 1.346 2020/06/16 05:31:15 dlg Exp $ +# $OpenBSD: files.pci,v 1.347 2020/06/17 06:36:17 dlg Exp $ # $NetBSD: files.pci,v 1.20 1996/09/24 17:47:15 christos Exp $ # # Config file and device description for machine-independent PCI code. @@ -718,7 +718,7 @@ attach vic at pci file dev/pci/if_vic.c vic # VMware VMXNET3 virtual interface -device vmx: ether, ifnet, ifmedia, stoeplitz +device vmx: ether, ifnet, ifmedia, stoeplitz, intrmap attach vmx at pci file dev/pci/if_vmx.c vmx |