Skip to contentSkip to conversation

PCI: ABI change request for adding new field in rte_pci_id structure

PATCH Superseded Ziye Yang 2 participants 4 messages Feb 16, 2016

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Ziye Yang

author
#0 lore raw

PATCH v2 1/1 PCI: ABI change request for adding new field in rte_pci_id structure

From: Ziye <[email protected]>

The purpose of this patch is used to add a new field "class" in rte_pci_id structure. The new class field includes class_id, subcalss_id, programming interface of a pci device. With this field, we can identify pci device by its class info, which can be more flexible instead of probing the device by vendor_id OR device_id OR subvendor_id OR subdevice_id. For example, we can probe all nvme devices by class field, which can be quite convenient.

---
 doc/guides/rel_notes/release_16_04.rst | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
doc/guides/rel_notes/release_16_04.rst +4 -3
index 27fc624..fe843a5 100644
@@ -95,9 +95,10 @@ This section should contain API changes. Sample format:
 ABI Changes
 -----------
 
-* Add a short 1-2 sentence description of the ABI change that was announced in
-  the previous releases and made in this release. Use fixed width quotes for
-  ``rte_function_names`` or ``rte_struct_names``. Use the past tense.
+* New field ``class`` is added into ``rte_pci_id`` structure. This new
+  added ``class`` field can be used to probe pci devices by class related
+  info. With this new field, the size of structure ``rte_pci_device`` will
+  be increased.
 
 
 Shared Library Versions
Signature · 1 line
1.9.3
#1 lore raw
Quoted 25 lines · Ziye Yang

From: Ziye <[email protected]>

The purpose of this patch is used to add a new field "class" in rte_pci_id structure. The new class field includes class_id, subcalss_id, programming interface of a pci device. With this field, we can identify pci device by its class info, which can be more flexible instead of probing the device by vendor_id OR device_id OR subvendor_id OR subdevice_id. For example, we can probe all nvme devices by class field, which can be quite convenient.

---
  doc/guides/rel_notes/release_16_04.rst | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)
doc/guides/rel_notes/release_16_04.rst +0 -0
index 27fc624..fe843a5 100644
@@ -95,9 +95,10 @@ This section should contain API changes. Sample format:
  ABI Changes
  -----------
 

doc/guides/rel_notes/release_16_04.rst This section should contain API changes. Sample format: · line 104

Quoted 10 lines
doc/guides/rel_notes/release_16_04.rst +4 -3
-* Add a short 1-2 sentence description of the ABI change that was announced in
-  the previous releases and made in this release. Use fixed width quotes for
-  ``rte_function_names`` or ``rte_struct_names``. Use the past tense.
+* New field ``class`` is added into ``rte_pci_id`` structure. This new
+  added ``class`` field can be used to probe pci devices by class related
+  info. With this new field, the size of structure ``rte_pci_device`` will
+  be increased.
 
 
  Shared Library Versions

ABI breakage announcements go into doc/guides/rel_notes/deprecation.rst, see the examples there. Also you can't break the ABI in the version under development but only the next one, so right now the earliest ABI breakage opportunity is in the release *after* 16.04, which is supposed to be 16.07 according to the roadmap.

- Panu -

author
#2 lore raw

Hi Panu,

" ABI breakage announcements go into doc/guides/rel_notes/deprecation.rst,
see the examples there. Also you can't break the ABI in the version under development but only the next one, so right now the earliest ABI breakage opportunity is in the release *after* 16.04, which is supposed to be 16.07 according to the roadmap."

So I only need to do the ABI breakage announcements into doc/guides/rel_notes/deprecation.rst, right?

Thanks.

Best Regards,
Ziye Yang

-----Original Message-----
From: Panu Matilainen [mailto:[email protected]]
Sent: Tuesday, February 16, 2016 3:39 PM
To: Yang, Ziye <[email protected]>; [email protected]
Subject: Re: [dpdk-dev] [PATCH v2] PCI: ABI change request for adding new field in rte_pci_id structure

Quoted 31 lines · Ziye Yang

From: Ziye <[email protected]>

The purpose of this patch is used to add a new field "class" in rte_pci_id structure. The new class field includes class_id, subcalss_id, programming interface of a pci device.
With this field, we can identify pci device by its class info, which can be more flexible instead of probing the device by vendor_id OR device_id OR subvendor_id OR subdevice_id.
For example, we can probe all nvme devices by class field, which can be quite convenient.

---
  doc/guides/rel_notes/release_16_04.rst | 7 ++++---
  1 file changed, 4 insertions(+), 3 deletions(-)
doc/guides/rel_notes/release_16_04.rst +0 -1
index 27fc624..fe843a5 100644
@@ -95,9 +95,10 @@ This section should contain API changes. Sample format:
  ABI Changes
  -----------
 
-* Add a short 1-2 sentence description of the ABI change that was 

announced in
- the previous releases and made in this release. Use fixed width quotes for

doc/guides/rel_notes/release_16_04.rst +0 -1
-  ``rte_function_names`` or ``rte_struct_names``. Use the past tense.

doc/guides/rel_notes/release_16_04.rst

Quoted 10 lines
doc/guides/rel_notes/release_16_04.rst +7 -0
+* New field ``class`` is added into ``rte_pci_id`` structure. This 
+new
+  added ``class`` field can be used to probe pci devices by class 
+related
+  info. With this new field, the size of structure ``rte_pci_device`` 
+will
+  be increased.
 
 
  Shared Library Versions

ABI breakage announcements go into doc/guides/rel_notes/deprecation.rst,
see the examples there. Also you can't break the ABI in the version under development but only the next one, so right now the earliest ABI breakage opportunity is in the release *after* 16.04, which is supposed to be 16.07 according to the roadmap.

- Panu -

#3 lore raw
Quoted 7 lines · Ziye

Hi Panu,

" ABI breakage announcements go into doc/guides/rel_notes/deprecation.rst,
see the examples there. Also you can't break the ABI in the version under development but only the next one, so right now the earliest ABI breakage opportunity is in the release *after* 16.04, which is supposed to be 16.07 according to the roadmap."

So I only need to do the ABI breakage announcements into doc/guides/rel_notes/deprecation.rst, right?

Yes.

The version-specific release notes ABI/API changes section is to be updated along with the actual changes to the code.

If you haven't already done so, do read
http://dpdk.org/doc/guides/contributing/versioning.html

- Panu -