Skip to content

fix pcap handlers for secondary

Qi Zhang dpdk-dev 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 3 repliesIn review
  2. v32 patches 4 repliesSuperseded

Changes in v4 from the cover letter

- rx_burst/tx_burst should use the local pcap handler directly.
- add missing devargs memcpy for sharing to secondary process.

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net/pcap: move pcap handler to process privatedrivers/net/pcap/rte_eth_pcap.c+88 -511 reply
2/2net/pcap: enable data path for secondarydrivers/net/pcap/rte_eth_pcap.c+56 -100 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchFerruh Yigit
SeriesR-b
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/2] fix pcap handlers for secondary

Private vdev was the way previously, when pdump developed, now with shared device mode on virtual devices, pcap data path in secondary is not working.

When secondary adds a virtual device, related data transferred to primary and primary creates the device and shares device back with secondary. When pcap device created in primary, pcap handlers (pointers) are process local and they are not valid for secondary process. This breaks secondary.

So we can't directly share the pcap handlers, but need to create a new set of handlers for secondary, that's what we done in this patch.

Also so we use rte_eth_dev->process_private to store pcap handlers separately for each process, so a handler in one process will not be closed or overwritten by another process unexpectedly.

v4:
- rx_burst/tx_burst should use the local pcap handler directly.
- add missing devargs memcpy for sharing to secondary process.

v3:
- fix hardcoded queue number.
- use process_private.

v2:
- fix init issue when try to dump to an iface.

Qi Zhang (2):
net/pcap: move pcap handler to process private
net/pcap: enable data path for secondary

 drivers/net/pcap/rte_eth_pcap.c | 205 ++++++++++++++++++++++++++++------------
 1 file changed, 144 insertions(+), 61 deletions(-)
Signature · 1 line
2.13.6