* [PATCH] Fix tests/test_device.py
@ 2020-08-25 1:23 Bob Pearson
2020-08-25 5:09 ` Leon Romanovsky
0 siblings, 1 reply; 2+ messages in thread
From: Bob Pearson @ 2020-08-25 1:23 UTC (permalink / raw)
To: leon, zyjzyj2000, linux-rdma; +Cc: Bob Pearson
Removed a test case which requires vendor_part_id to be non zero.
Per IBTA A3.3.1 VENDOR INFORMATION it is not required that the
vendor part ID field be set to a non-zero value:
The following components are vendor specific: VendorID, DeviceID, De-
vice Version, Subsystem VendorID, SubsystemID, ID String.
The vendor places its IEEE assigned Organization Unique Identifier
(OUI) in the VendorId field and *MAY PLACE ANY VALUE IN THE DEVICEID* and
Device Version fields. The vendor may also provide an ASCII string of its
choice in the ID String field.
The Subsystem VendorID and SubsystemID provide additional informa-
tion when a subsystem vendor uses components provided by other ven-
dors. In this case the subsystem vendor provides its OUI in the Subsystem
VendorID field and may specify any value in the SubsystemD field.
A vendor that produces a generic controller (i.e., one that supports a stan-
dard I/O protocol such as SRP), which does not have vendor specific de-
vice drivers, may use the value of 0xFFFFFF in the VendorID field.
However, such a value prevents the vendor from ever providing vendor
specific drivers for the product.
Signed-off-by: Bob Pearson <rpearson@hpe.com>
---
tests/test_device.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/tests/test_device.py b/tests/test_device.py
index c23caae1..d552f402 100644
--- a/tests/test_device.py
+++ b/tests/test_device.py
@@ -86,7 +86,6 @@ class DeviceTest(PyverbsAPITestCase):
assert attr.max_mr_size > PAGE_SIZE
assert attr.page_size_cap >= PAGE_SIZE
assert attr.vendor_id != 0
- assert attr.vendor_part_id != 0
assert attr.max_qp > 0
assert attr.max_qp_wr > 0
assert attr.max_sge > 0
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] Fix tests/test_device.py
2020-08-25 1:23 [PATCH] Fix tests/test_device.py Bob Pearson
@ 2020-08-25 5:09 ` Leon Romanovsky
0 siblings, 0 replies; 2+ messages in thread
From: Leon Romanovsky @ 2020-08-25 5:09 UTC (permalink / raw)
To: Bob Pearson; +Cc: zyjzyj2000, linux-rdma, Bob Pearson
On Mon, Aug 24, 2020 at 08:23:44PM -0500, Bob Pearson wrote:
> Removed a test case which requires vendor_part_id to be non zero.
> Per IBTA A3.3.1 VENDOR INFORMATION it is not required that the
> vendor part ID field be set to a non-zero value:
>
> The following components are vendor specific: VendorID, DeviceID, De-
> vice Version, Subsystem VendorID, SubsystemID, ID String.
>
> The vendor places its IEEE assigned Organization Unique Identifier
> (OUI) in the VendorId field and *MAY PLACE ANY VALUE IN THE DEVICEID* and
> Device Version fields. The vendor may also provide an ASCII string of its
> choice in the ID String field.
>
> The Subsystem VendorID and SubsystemID provide additional informa-
> tion when a subsystem vendor uses components provided by other ven-
> dors. In this case the subsystem vendor provides its OUI in the Subsystem
> VendorID field and may specify any value in the SubsystemD field.
> A vendor that produces a generic controller (i.e., one that supports a stan-
> dard I/O protocol such as SRP), which does not have vendor specific de-
> vice drivers, may use the value of 0xFFFFFF in the VendorID field.
> However, such a value prevents the vendor from ever providing vendor
> specific drivers for the product.
>
> Signed-off-by: Bob Pearson <rpearson@hpe.com>
> ---
> tests/test_device.py | 1 -
> 1 file changed, 1 deletion(-)
Thanks, I'll pick to rdma-core later this week if no objections come.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-08-25 5:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-25 1:23 [PATCH] Fix tests/test_device.py Bob Pearson
2020-08-25 5:09 ` Leon Romanovsky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.