[PWCI] "doc/guides/nics: split pcap_ring into separate documentation files"#609
[PWCI] "doc/guides/nics: split pcap_ring into separate documentation files"#609
Conversation
The documentation had combined to unrelated drivers together. Use AI to split into two separate files: pcap.rst for the pcap PMD and ring.rst for the ring PMD. Changes to pcap.rst: - Use "pcap" consistently instead of mixed "libpcap/pcap/PCAP" naming - Remove Linux-specific references; document support for Linux, FreeBSD, and Windows - Add reference to upstream libpcap documentation - Add multi-queue support section explaining queue count determination and file handle limitations - Use ``--vdev=net_pcap0`` format consistently - Remove deprecated rte_eth_from_pcaps() API section - Improve technical documentation style throughout Changes to ring.rst: - Use ``--vdev=net_ring0`` format consistently - Fix inconsistent "Rings-based/Ring-based" naming - Retain rte_eth_from_rings() API section with usage examples - Improve technical documentation style throughout Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: 0-day Robot <robot@bytheb.org>
Reviewer's guide (collapsed on small PRs)Reviewer's GuideSplits the combined pcap_ring NIC documentation into two separate guides (pcap and ring) and wires them into the NIC guides index while removing the old consolidated file. File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
📝 WalkthroughWalkthroughThe pull request reorganizes NIC driver documentation by splitting the combined pcap_ring.rst file into two separate documentation files—pcap.rst for the Pcap Poll Mode Driver and ring.rst for the Ring Based Poll Mode Driver—and updates the driver index accordingly. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
💤 Files with no reviewable changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Hey - I've found 4 issues
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `doc/guides/nics/pcap.rst:24-26` </location>
<code_context>
+using the pcap driver, to be created at application startup time during EAL initialization.
+
+To do so, pass the ``--vdev=net_pcap0`` parameter to the EAL.
+This parameter accepts options to allocate and use pcap-based Ethernet transparently by the application.
+This can be used, for example, for testing on a virtual machine where there are no Ethernet ports.
+
</code_context>
<issue_to_address>
**suggestion (typo):** Consider rephrasing "transparently by the application" to the more idiomatic "transparently to the application".
The current phrasing is grammatically awkward; consider wording like "in a way that is transparent to the application" for smoother readability.
```suggestion
To do so, pass the ``--vdev=net_pcap0`` parameter to the EAL.
This parameter accepts options to allocate and use pcap-based Ethernet in a way that is transparent to the application.
This can be used, for example, for testing on a virtual machine where there are no Ethernet ports.
```
</issue_to_address>
### Comment 2
<location> `doc/guides/nics/pcap.rst:218-219` </location>
<code_context>
+
+.. note::
+
+ The network interface provided to the PMD should be up. The PMD will return
+ an error if interface is down, and the PMD itself won't change the status
+ of the external network interface.
</code_context>
<issue_to_address>
**issue (typo):** Add "the" before "interface" for correct grammar.
Consider updating this sentence to: "an error if the interface is down" for correct grammar.
```suggestion
The network interface provided to the PMD should be up. The PMD will return
an error if the interface is down, and the PMD itself won't change the status
```
</issue_to_address>
### Comment 3
<location> `doc/guides/nics/ring.rst:90` </location>
<code_context>
- ring[0] = rte_ring_create("R0", RING_SIZE, SOCKET0, RING_F_SP_ENQ|RING_F_SC_DEQ);
- ring[1] = rte_ring_create("R1", RING_SIZE, SOCKET0, RING_F_SP_ENQ|RING_F_SC_DEQ);
-
- /* create two ethdev's */
-
- port0 = rte_eth_from_rings("net_ring0", ring, NUM_RINGS, ring, NUM_RINGS, SOCKET0);
</code_context>
<issue_to_address>
**issue (typo):** Use the correct plural form "ethdevs" instead of "ethdev's".
The apostrophe implies possession rather than plurality. Please update the comment text to use the plural form, e.g. `/* create two ethdevs */`.
```suggestion
/* create two ethdevs */
```
</issue_to_address>
### Comment 4
<location> `doc/guides/nics/ring.rst:115` </location>
<code_context>
+Once an ethdev has been created for a ring-based PMD,
+it should be configured and started in the same way as a regular Ethernet device:
+call rte_eth_dev_configure() to set the number of receive and transmit queues,
+then call rte_eth_rx_queue_setup() / tx_queue_setup() for each of those queues,
+and finally call rte_eth_dev_start() to allow transmission and reception of packets to begin.
</code_context>
<issue_to_address>
**issue:** The TX queue setup API name appears incomplete; likely should be rte_eth_tx_queue_setup().
To match the RX API and actual DPDK ethdev names, this should reference `rte_eth_rx_queue_setup() / rte_eth_tx_queue_setup()`. The current `tx_queue_setup()` form may mislead readers searching for the correct API.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
| The network interface provided to the PMD should be up. The PMD will return | ||
| an error if interface is down, and the PMD itself won't change the status |
There was a problem hiding this comment.
issue (typo): Add "the" before "interface" for correct grammar.
Consider updating this sentence to: "an error if the interface is down" for correct grammar.
| The network interface provided to the PMD should be up. The PMD will return | |
| an error if interface is down, and the PMD itself won't change the status | |
| The network interface provided to the PMD should be up. The PMD will return | |
| an error if the interface is down, and the PMD itself won't change the status |
NOTE: This is an auto submission for "doc/guides/nics: split pcap_ring into separate documentation files".
See "http://patchwork.dpdk.org/project/dpdk/list/?series=36996" for details.
Summary by Sourcery
Documentation:
Summary by CodeRabbit
Documentation
✏️ Tip: You can customize this high-level summary in your review settings.