VPP-1001 - update AF Packet Driver to for modern kernels 28/8628/8
authorAnton Ivanov <anton.ivanov@cambridgegreys.com>
Tue, 3 Oct 2017 09:08:05 +0000 (10:08 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Wed, 4 Oct 2017 09:42:23 +0000 (09:42 +0000)
commit3eab064e3fadaf2a6a128f167ad04ca0319b4e17
tree3655480915e5d403efae47cbaec9d83262fb9fcb
parent28029530963223c5c3b94f7a2f9d1343662a1a04
VPP-1001 - update AF Packet Driver to for modern kernels

1. Add VNET headers support for checksumming - required
to operate correctly on any recent Linux

2. Bypass QDISC on transmit - improves performance by ~ 5%.
Enabled only if the macro is detected - apparently not
present on archaic distributions.

This still does not solve all issues with TSO - it can be
fixed only by going to tpacket v3 and dynamic rx ring as
well as significant changes in the TX (sendmmsg?).

Change-Id: Iea14ade12586c0a8da49e6dd1012108a08bc85b3
Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com>
src/vnet/devices/af_packet/af_packet.c
src/vnet/devices/af_packet/af_packet.h
src/vnet/devices/af_packet/device.c
src/vnet/devices/af_packet/node.c