You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/qat_plugin/README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,7 @@ The QAT plugin can take a number of command line arguments, summarised in the fo
53
53
| -kernel-vf-drivers | string | Comma separated VF Device Driver of the QuickAssist Devices in the system. Devices supported: DH895xCC, C62x, C3xxx, 4xxx, C4xxx and D15xx (default: `c6xxvf,4xxxvf`) |
54
54
| -max-num-devices | int | maximum number of QAT devices to be provided to the QuickAssist device plugin (default: `32`) |
55
55
| -mode | string | plugin mode which can be either `dpdk` or `kernel` (default: `dpdk`) |
56
+
| -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.) |
56
57
57
58
The plugin also accepts a number of other arguments related to logging. Please use the `-h` option to see
//getAllocationPolicy returns a func that fits the policy given as a parameter. It returns nonePolicy when the flag is not set, and it returns nil when the policy is not valid value.
Copy file name to clipboardExpand all lines: cmd/qat_plugin/qat_plugin.go
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,12 +41,13 @@ func main() {
41
41
42
42
dpdkDriver:=flag.String("dpdk-driver", "vfio-pci", "DPDK Device driver for configuring the QAT device")
43
43
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")
44
+
preferredAllocationPolicy:=flag.String("allocation-policy", "", "Modes of allocating QAT devices: balanced and packed")
44
45
maxNumDevices:=flag.Int("max-num-devices", 32, "maximum number of QAT devices to be provided to the QuickAssist device plugin")
0 commit comments