Re: [PATCH v1 01/25] drivers/net: introduce a new PMD driver

2021-12-23 Thread Yanling Song
On Wed, 22 Dec 2021 08:55:22 -0800 Stephen Hemminger wrote: > On Wed, 22 Dec 2021 08:54:00 +0800 > Yanling Song wrote: > > > > If all you want is jiffie accuracy, you could use > > > CLOCK_MONOTONIC_COARSE. > > > > > I did not get your point: CLOCK_MONOTONIC is more accurate than > > CLOC

Re: [PATCH v1 01/25] drivers/net: introduce a new PMD driver

2021-12-22 Thread Stephen Hemminger
On Wed, 22 Dec 2021 08:54:00 +0800 Yanling Song wrote: > > If all you want is jiffie accuracy, you could use > > CLOCK_MONOTONIC_COARSE. > > > I did not get your point: CLOCK_MONOTONIC is more accurate than > CLOCK_MONOTONIC_COARSE, right? CLOCK_MONOTONIC ends up using the TSC counter and va

Re: [PATCH v1 01/25] drivers/net: introduce a new PMD driver

2021-12-21 Thread Yanling Song
On Sun, 19 Dec 2021 11:40:31 -0800 Stephen Hemminger wrote: > On Sat, 18 Dec 2021 10:51:28 +0800 > Yanling Song wrote: > > > +#ifdef CLOCK_MONOTONIC_RAW /* Defined in glibc bits/time.h */ > > +#define CLOCK_TYPE CLOCK_MONOTONIC_RAW > > +#else > > +#define CLOCK_TYPE CLOCK_MONOTONIC > > +#endif

Re: [PATCH v1 01/25] drivers/net: introduce a new PMD driver

2021-12-19 Thread Stephen Hemminger
On Sat, 18 Dec 2021 10:51:28 +0800 Yanling Song wrote: > +#ifdef CLOCK_MONOTONIC_RAW /* Defined in glibc bits/time.h */ > +#define CLOCK_TYPE CLOCK_MONOTONIC_RAW > +#else > +#define CLOCK_TYPE CLOCK_MONOTONIC > +#endif CLOCK_MONOTONIC_RAW was defined in Linux.2.6.28 DPDK does not support any ker

[PATCH v1 01/25] drivers/net: introduce a new PMD driver

2021-12-17 Thread Yanling Song
Introduce a new PMD driver which names spnic. Now, this driver only implements module entry without doing anything else. Signed-off-by: Yanling Song --- drivers/net/meson.build | 1 + drivers/net/spnic/base/meson.build| 26 drivers/net/spnic/base/spnic_compat.h | 188 ++