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?
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.