Skip to content

Commit cdfc3bb

Browse files
increase default maxNumDevices to 64
In case there are more than 32 devices and there is no config set, all scanned devices have the same service. So, we increase the default value of maxNumDevices to 64 from 32. Signed-off-by: Hyeongju Johannes Lee <[email protected]>
1 parent fe8a196 commit cdfc3bb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd/qat_plugin/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The QAT plugin can take a number of command line arguments, summarised in the fo
4444
|:---- |:-------- |:------- |
4545
| -dpdk-driver | string | DPDK Device driver for configuring the QAT device (default: `vfio-pci`) |
4646
| -kernel-vf-drivers | string | Comma separated VF Device Driver of the QuickAssist Devices in the system. Devices supported: DH895xCC, C62x, C3xxx, 4xxx/401xx/402xx, C4xxx and D15xx (default: `c6xxvf,4xxxvf`) |
47-
| -max-num-devices | int | maximum number of QAT devices to be provided to the QuickAssist device plugin (default: `32`) |
47+
| -max-num-devices | int | maximum number of QAT devices to be provided to the QuickAssist device plugin (default: `64`) |
4848
| -mode | string | plugin mode which can be either `dpdk` or `kernel` (default: `dpdk`) |
4949
| -allocation-policy | string | 2 possible values: balanced and packed. Balanced mode spreads allocated QAT VF resources balanced among QAT PF devices, and packed mode packs one QAT PF device full of QAT VF resources before allocating resources from the next QAT PF. (There is no default.) |
5050

cmd/qat_plugin/qat_plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func main() {
4242
dpdkDriver := flag.String("dpdk-driver", "vfio-pci", "DPDK Device driver for configuring the QAT device")
4343
kernelVfDrivers := flag.String("kernel-vf-drivers", "c6xxvf,4xxxvf", "Comma separated VF Device Driver of the QuickAssist Devices in the system. Devices supported: DH895xCC, C62x, C3xxx, C4xxx, 4xxx, and D15xx")
4444
preferredAllocationPolicy := flag.String("allocation-policy", "", "Modes of allocating QAT devices: balanced and packed")
45-
maxNumDevices := flag.Int("max-num-devices", 32, "maximum number of QAT devices to be provided to the QuickAssist device plugin")
45+
maxNumDevices := flag.Int("max-num-devices", 64, "maximum number of QAT devices to be provided to the QuickAssist device plugin")
4646
flag.Parse()
4747

4848
switch *mode {

0 commit comments

Comments
 (0)