]> xenbits.xensource.com Git - unikraft/libs/lwip.git/commit
cc.h: Disable Ethernet frame padding
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Mon, 9 Nov 2020 16:06:23 +0000 (17:06 +0100)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Thu, 12 Nov 2020 22:43:08 +0000 (23:43 +0100)
commit5b3277c077939a8a4d665f361b9bbc26ce894571
treebcb6f967acd7d5f9cbb14062d1f1d08e7fe2482e
parent7fa66b6801159de472378fc78832b47e5db9f4b5
cc.h: Disable Ethernet frame padding

We set ETH_PAD_SIZE to 0 and remove support from uknetdev.c. This is done
because some uknetdev drivers will not support it (e.g., netfront) and
according to https://lwn.net/Articles/89597/, the gains of doing padding
is negligible on the CPU architectures that we currently support while
potentially hurting DMA engine performances that may get involved with
the respective driver and/or hypervisor.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Sharan Santhanam <sharan.santhanam@neclab.eu>
include/arch/cc.h
uknetdev.c