Bug 1288

Summary: af_packet do not support multi-process
Product: DPDK Reporter: zero (779198444)
Component: ethdevAssignee: Stephen Hemminger (stephen)
Status: UNCONFIRMED ---    
Severity: normal CC: stephen
Priority: Normal    
Version: 21.11   
Target Milestone: ---   
Hardware: All   
OS: All   

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.