Bug 1288 - af_packet do not support multi-process
Summary: af_packet do not support multi-process
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: ethdev (show other bugs)
Version: 21.11
Hardware: All All
: Normal normal
Target Milestone: ---
Assignee: Stephen Hemminger
URL:
Depends on:
Blocks:
 
Reported: 2023-09-15 04:22 CEST by zero
Modified: 2024-02-28 01:41 CET (History)
1 user (show)



Attachments

Description zero 2023-09-15 04:22:47 CEST
hi,I'm recently have problem in using af_packet,I wanna do init in primary program and do rx_pkt_burst in secondary,so that I can make primary more stable,however, when change eth1 to af_packet, it cause coredump,and when I gdb ,it shows rx_pkt_burst is not init in secondary.
does the af_packet only support primary do rx_pkt_burst?
is there any way if I want to do rx_pkt_burst in a secondary program?
Comment 1 Stephen Hemminger 2023-09-15 17:41:38 CEST
Today, the AF_PACKET driver does not support primary/secondary process.
This should be documented but is not.

The AF_PACKET driver would need to pass file descriptor to secondary process for this to work. See TAP device for how this could be done.

Note You need to log in before you can comment on or make changes to this bug.