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

2021-04-14 Thread Thomas Monjalon
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 mor

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

2021-04-09 Thread Olivier Matz
On Thu, Apr 08, 2021 at 10:51:34PM +0300, Dmitry Kozlyuk wrote: > 2021-04-08 13:45 (UTC+0200), Olivier Matz: > [...] > > > diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c > > > index c572d003cb..e7361bf520 100644 > > > --- a/drivers/net/i40e/i40e_fdir.c > > > +++ b/drivers/

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

2021-04-08 Thread Dmitry Kozlyuk
2021-04-08 13:45 (UTC+0200), Olivier Matz: [...] > > diff --git a/drivers/net/i40e/i40e_fdir.c b/drivers/net/i40e/i40e_fdir.c > > index c572d003cb..e7361bf520 100644 > > --- a/drivers/net/i40e/i40e_fdir.c > > +++ b/drivers/net/i40e/i40e_fdir.c > > @@ -22,6 +22,7 @@ > > #include > > #include > >

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

2021-04-08 Thread Olivier Matz
Hi Dmitry, On Thu, Apr 08, 2021 at 01:22:49AM +0300, Dmitry Kozlyuk wrote: > Users of relied on it to provide IP-related defines, > like IPPROTO_* constants, but still had to include POSIX headers > for inet_pton() and other standard IP-related facilities. > > Extend so that it is a single head

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

2021-04-07 Thread Dmitry Kozlyuk
Users of relied on it to provide IP-related defines, like IPPROTO_* constants, but still had to include POSIX headers for inet_pton() and other standard IP-related facilities. Extend so that it is a single header to gain access to IP-related facilities on any OS. Use it to replace POSIX includes