[V1] framework/crb:get FreeBSD pci info
Checks
Commit Message
The change of FreeBSD system version will change the display of PCI
info,Now change the script adaptation.
Signed-off-by: Lewei Yang <leweix.yang@intel.com>
---
framework/crb.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
> -----Original Message-----
> From: Lewei Yang <leweix.yang@intel.com>
> Sent: 2021年11月25日 0:26
> To: dts@dpdk.org
> Cc: Yang, LeweiX <leweix.yang@intel.com>
> Subject: [dts][PATCH V1] framework/crb:get FreeBSD pci info
>
> The change of FreeBSD system version will change the display of PCI info,Now
> change the script adaptation.
>
> Signed-off-by: Lewei Yang <leweix.yang@intel.com>
Applied
@@ -336,7 +336,7 @@ class Crb(object):
Look for the NIC's information (PCI Id and card type).
"""
out = self.send_expect("pciconf -l", "# ", alt_session=True)
- rexp = r"pci0:([\da-f]{1,3}:[\da-f]{1,2}:\d{1}):\s*class=0x020000.*chip=0x([\da-f]{4})8086"
+ rexp = r"pci0:([\da-f]{1,3}:[\da-f]{1,2}:\d{1}):\s*class=0x020000.*0x([\da-f]{4}).*8086"
pattern = re.compile(rexp)
match = pattern.findall(out)