diff options
| author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2025-07-28 21:04:11 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-28 21:04:11 +0300 |
| commit | 112169e27080829fd94dee86a392a539f2d34fe8 (patch) | |
| tree | da56b4ec3f27e3ee84d8cd1526f480704758ebaa /src/op_mode | |
| parent | fd2df0f1b34609fea5dc186b3898a0c786e1bf2b (diff) | |
| parent | ffba3fc129dcd306f97942706f99a04c7c3d6af2 (diff) | |
| download | vyos-1x-112169e27080829fd94dee86a392a539f2d34fe8.tar.gz vyos-1x-112169e27080829fd94dee86a392a539f2d34fe8.zip | |
Merge pull request #4626 from dmbaturin/T7662-C62x-QAT
qat: T7662: add PCI ID range for Intel C62x virtual function devices
Diffstat (limited to 'src/op_mode')
| -rwxr-xr-x | src/op_mode/show_acceleration.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/op_mode/show_acceleration.py b/src/op_mode/show_acceleration.py index 6d1d842fa..36e906cb8 100755 --- a/src/op_mode/show_acceleration.py +++ b/src/op_mode/show_acceleration.py @@ -26,7 +26,7 @@ from vyos.utils.process import popen def detect_qat_dev(): output, err = popen('lspci -nn', decode='utf-8') if not err: - data = re.findall('(8086:19e2)|(8086:37c8)|(8086:0435)|(8086:6f54)', output) + data = re.findall('(8086:19e2)|(8086:37c[8-9])|(8086:0435)|(8086:6f54)', output) # QAT devices found if data: return @@ -93,7 +93,7 @@ args = parser.parse_args() if args.hw: detect_qat_dev() # Show availible Intel QAT devices - call('lspci -nn | egrep -e \'8086:37c8|8086:19e2|8086:0435|8086:6f54\'') + call('lspci -nn | egrep -e \'8086:37c[8-9]|8086:19e2|8086:0435|8086:6f54\'') elif args.flow and args.dev: check_qat_if_conf() call('cat '+get_qat_proc_path(args.dev)+"fw_counters") |
