Open MaochenWang1 opened 3 days ago
Just disable CONFIG_NET_SOCKETS_PACKET
so that the packet socket processing is not done. If you need packet socket support, then the calls are needed to handle raw packet data in sockets.
The three net_packet_socket_input()
calls are each handling different kind of packet/raw sockets.
It is probably possible to optimize the packet socket handling even further, patches are certainly welcome to improve performance.
Is your enhancement proposal related to a problem? Please describe. In process_data(), there are three net_packet_socket_input() called, looks redundant for running UDP throughput case. And can we skip/optimize some of these functions? I locally tried, skip these functions can improve UDP RX for 5 Mbps.
Describe the solution you'd like can we add some configs to skip some net_packet_socket_input() functions for high throughput case.