Skip to content

Commit 5016f54

Browse files
committed
qat: add support for new capabilities
Signed-off-by: Tuomas Katila <tuomas.katila@intel.com>
1 parent c7162df commit 5016f54

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ The summary of resources available via plugins in this repository is given in th
232232
* [intelgpu-job.yaml](demo/intelgpu-job.yaml)
233233
* `iaa.intel.com` : `wq-user-[shared or dedicated]`
234234
* [iaa-qpl-demo-pod.yaml](demo/iaa-qpl-demo-pod.yaml)
235-
* `qat.intel.com` : `generic` or `cy`/`dc`
235+
* `qat.intel.com` : `generic` or `cy`/`dc`/`asym-dc`/`sym-dc`
236236
* [crypto-perf-dpdk-pod-requesting-qat.yaml](deployments/qat_dpdk_app/base/crypto-perf-dpdk-pod-requesting-qat.yaml)
237237
* `sgx.intel.com` : `epc`
238238
* [intelsgx-job.yaml](deployments/sgx_enclave_apps/base/intelsgx-job.yaml)

cmd/qat_plugin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ In addition to the default configuration, you can add device-specific configurat
132132

133133
| Device | Possible Configuration | How To Customize | Options | Notes |
134134
|:-------|:-----------------------|:-----------------|:--------|:------|
135-
| 4xxx, 401xx,402xx | [cfg_services](https://github.com/torvalds/linux/blob/42e66b1cc3a070671001f8a1e933a80818a192bf/Documentation/ABI/testing/sysfs-driver-qat) reports the configured services (crypto services or compression services) of the QAT device. | `ServicesEnabled=<value>` | compress:`dc`, crypto:`sym;asym` | Linux 6.0+ kernel is required. |
135+
| 4xxx, 401xx,402xx | [cfg_services](https://github.com/torvalds/linux/blob/v6.6-rc5/Documentation/ABI/testing/sysfs-driver-qat) reports the configured services (crypto services or compression services) of the QAT device. | `ServicesEnabled=<value>` | compress:`dc`, crypto:`sym;asym`, <br>crypto+compress:`asym;dc`,<br>crypto+compress:`sym;dc` | Linux 6.0+ kernel is required. |
136136

137137
To create a provisioning `configMap`, run the following command before deploying initcontainer:
138138

@@ -141,7 +141,7 @@ $ kubectl create configmap --namespace=inteldeviceplugins-system qat-config --fr
141141
```
142142
or
143143
```bash
144-
$ kubectl create configmap --namespace=inteldeviceplugins-system --from-literal "qat.conf=ServicesEnabled=<option>" qat-config
144+
$ kubectl create configmap --namespace=inteldeviceplugins-system --from-literal "qat.conf=ServicesEnabled=<option>" qat-config
145145
```
146146

147147
When using the operator for deploying the plugin with provisioning config, use `provisioningConfig` field for the name of the ConfigMap, then the config is passed to initcontainer through the volume mount.

cmd/qat_plugin/dpdkdrv/dpdkdrv.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,14 @@ func getDeviceCapabilities(device string) (string, error) {
457457
return "sym", nil
458458
case "asym":
459459
return "asym", nil
460+
case "asym;dc":
461+
return "asym-dc", nil
462+
case "dc;asym":
463+
return "asym-dc", nil
464+
case "sym;dc":
465+
return "sym-dc", nil
466+
case "dc;sym":
467+
return "sym-dc", nil
460468
default:
461469
return defaultCapabilities, nil
462470
}

demo/qat-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
NODE_NAME="${NODE_NAME:-}"
44
ENABLED_QAT_PF_PCIIDS=${ENABLED_QAT_PF_PCIIDS:-37c8 4940 4942 4944}
55
DEVS=$(for pf in $ENABLED_QAT_PF_PCIIDS; do lspci -n | grep -e "$pf" | grep -o -e "^\\S*"; done)
6-
SERVICES_LIST="sym;asym dc"
6+
SERVICES_LIST="sym asym sym;asym dc sym;dc asym;dc"
77
QAT_4XXX_DEVICE_PCI_ID="0x4940"
88
QAT_401XX_DEVICE_PCI_ID="0x4942"
99
QAT_402XX_DEVICE_PCI_ID="0x4944"

0 commit comments

Comments
 (0)