Skip to content

Commit 959d8b3

Browse files
committed
qat: handle service parsing via debugfs
The QAT out-of-tree driver does not provide sysfs based cfg_services interface to read (and write) services configurations so QAT debugfs is used as the fallback. bad65eb changed how the services string is parsed and trimmed but missed the debugfs path. Because of this, the resource registration errors due so invalid resource names (e.g., "sym;dc", which should be "sym-dc"). Fix by handling the debugfs path the same way as the cfg_services sysfs path. Signed-off-by: Mikko Ylinen <[email protected]>
1 parent e84dca0 commit 959d8b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/qat_plugin/dpdkdrv/dpdkdrv.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ func readDeviceConfiguration(pfDev string) string {
370370
return defaultCapabilities
371371
}
372372

373-
return devCfg.Section("GENERAL").Key("ServicesEnabled").String()
373+
return strings.Join(strings.SplitN(strings.TrimSpace(devCfg.Section("GENERAL").Key("ServicesEnabled").String()), ";", 3), "-")
374374
}
375375

376376
func getDeviceHealthiness(device string, lookup map[string]string) string {

0 commit comments

Comments
 (0)