Skip to content

Commit e57723c

Browse files
authored
Merge pull request #1474 from lzha111/main
Change the regular expression of the device type to support sIOV device
2 parents 432741e + ca96e5b commit e57723c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/qat_plugin/kerneldrv/kerneldrv.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import (
3737
)
3838

3939
var (
40-
adfCtlRegex = regexp.MustCompile(`type: (?P<devtype>[[:alnum:]]+), .* inst_id: (?P<instid>[0-9]+), .* bsf: ([0-9a-f]{4}:)?(?P<bsf>[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]), .* state: (?P<state>[[:alpha:]]+)$`)
40+
adfCtlRegex = regexp.MustCompile(`type: (?P<devtype>[[:print:]]+), .* inst_id: (?P<instid>[0-9]+), .* bsf: ([0-9a-f]{4}:)?(?P<bsf>[0-9a-f]{2}:[0-9a-f]{2}\.[0-9a-f]), .* state: (?P<state>[[:alpha:]]+)$`)
4141
)
4242

4343
type endpoint struct {

0 commit comments

Comments
 (0)