This is an experimental implementation of rx zero copy for af_packet. Its a bit rough and likely has errors but the plan is to clean it up over the next few months.
And seeing I said I would post it in another thread a few days back here it is. Comments welcome and use at your own risk. Thanks, John --- John Fastabend (2): af_packet: direct dma for packet ineterface ixgbe: add af_packet direct copy support drivers/net/ethernet/intel/ixgbe/ixgbe.h | 3 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 255 +++++++++++++++++++++++++ include/linux/netdevice.h | 8 + include/net/af_packet.h | 64 ++++++ include/uapi/linux/if_packet.h | 1 net/packet/af_packet.c | 37 ++++ net/packet/internal.h | 60 ------ tools/testing/selftests/net/psock_tpacket.c | 51 ++++- 8 files changed, 410 insertions(+), 69 deletions(-) create mode 100644 include/net/af_packet.h -- Signature