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 | |
| 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')
| -rwxr-xr-x | src/conf_mode/system_acceleration.py | 3 | ||||
| -rwxr-xr-x | src/op_mode/show_acceleration.py | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/conf_mode/system_acceleration.py b/src/conf_mode/system_acceleration.py index 954bf8bba..3e7a06465 100755 --- a/src/conf_mode/system_acceleration.py +++ b/src/conf_mode/system_acceleration.py @@ -70,11 +70,12 @@ def verify(qat): # PCI id | Chipset # 19e2 -> C3xx # 37c8 -> C62x + # 37c9 -> C62xvf # 0435 -> DH895 # 6f54 -> D15xx # 18ee -> QAT_200XX data = re.findall( - '(8086:19e2)|(8086:37c8)|(8086:0435)|(8086:6f54)|(8086:18ee)', output) + '(8086:19e2)|(8086:37c[8-9])|(8086:0435)|(8086:6f54)|(8086:18ee)', output) # If QAT devices found if not data: raise ConfigError('No QAT acceleration device found') 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") |
