[dpdk-dev] [PATCH v8 4/4] net: provide IP-related API on any OS

Thomas Monjalon thomas at monjalon.net
Wed Apr 14 23:47:13 CEST 2021


08/04/2021 13:45, Olivier Matz:
> I see it has already been discussed for posix functions like close() or
> strdup(), so I won't reopen the door too long ;)
> 
> Since DPDK is a network-oriented project, it provides network defines or
> structure, prefixed with rte_. This API is on some aspects more complete
> than the one provided in libc (for instance, more protocol headers are
> available) . So, to me, it would make sense to define RTE_IPPROTO_* and
> replace usages of IPPROTO_*, and avoid inclusions of network libc
> headers in DPDK code.
> 
> This can be done later, if there is a consensus.

That's an interesting question.
What would be the benefit of avoiding network libc includes?





More information about the dev mailing list