Add timestamp to dpdk.log

2022-01-05 Thread Soumya Muralidhar
Hi, I am looking to add timestamp while logging using rte_openlog_stream function where you pass the file pointer as a parameter to this function. Below is the snippet : const char *dpdk_log_path

[PATCH v4 00/11] Add cnxk_gpio

2022-01-05 Thread Tomasz Duszynski
This series introduces a new rawdevice PMD which allows to manage userspace GPIOs and install custom GPIO interrupt handlers which bypass kernel. This is especially useful for applications that, besides providing standard dataplane functionality, want to have fast and low latency access to GPIO pin

[PATCH v4 02/11] raw/cnxk_gpio: support reading default queue conf

2022-01-05 Thread Tomasz Duszynski
Add support for reading default queue configuration. Signed-off-by: Tomasz Duszynski --- drivers/raw/cnxk_gpio/cnxk_gpio.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio.c b/drivers/raw/cnxk_gpio/cnxk_gpio.c index 881615d62e..f80788f7fb

[PATCH v4 01/11] raw/cnxk_gpio: add GPIO driver skeleton

2022-01-05 Thread Tomasz Duszynski
Add initial support for PMD that allows to control particular pins form userspace. Moreover PMD allows to attach custom interrupt handlers to controllable GPIOs. Main users of this PMD are dataplain applications requiring fast and low latency access to pin state. Signed-off-by: Tomasz Duszynski

[PATCH v4 03/11] raw/cnxk_gpio: support reading queue count

2022-01-05 Thread Tomasz Duszynski
Add support for reading number of available queues. Single queue corresponds to GPIO. Signed-off-by: Tomasz Duszynski --- drivers/raw/cnxk_gpio/cnxk_gpio.c | 9 + 1 file changed, 9 insertions(+) diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio.c b/drivers/raw/cnxk_gpio/cnxk_gpio.c index f8

[PATCH v4 04/11] raw/cnxk_gpio: support queue setup

2022-01-05 Thread Tomasz Duszynski
Add support for queue setup. Signed-off-by: Tomasz Duszynski --- drivers/raw/cnxk_gpio/cnxk_gpio.c | 80 +++ 1 file changed, 80 insertions(+) diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio.c b/drivers/raw/cnxk_gpio/cnxk_gpio.c index 3455d6258c..c1e74fad43 100644 --- a

[PATCH v4 05/11] raw/cnxk_gpio: support queue release

2022-01-05 Thread Tomasz Duszynski
Add support for queue release. Signed-off-by: Tomasz Duszynski --- drivers/raw/cnxk_gpio/cnxk_gpio.c | 34 +++ 1 file changed, 34 insertions(+) diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio.c b/drivers/raw/cnxk_gpio/cnxk_gpio.c index c1e74fad43..71f568f7a4 100644 ---

[PATCH v4 06/11] raw/cnxk_gpio: support enqueuing buffers

2022-01-05 Thread Tomasz Duszynski
Add dummy support for enqueuing buffers. Signed-off-by: Tomasz Duszynski --- drivers/raw/cnxk_gpio/cnxk_gpio.c | 47 +++ drivers/raw/cnxk_gpio/cnxk_gpio.h | 1 + drivers/raw/cnxk_gpio/meson.build | 1 + drivers/raw/cnxk_gpio/rte_pmd_cnxk_gpio.h | 38

[PATCH v4 07/11] raw/cnxk_gpio: support dequeuing buffers

2022-01-05 Thread Tomasz Duszynski
Add support for dequeuing buffers. Signed-off-by: Tomasz Duszynski --- drivers/raw/cnxk_gpio/cnxk_gpio.c | 26 ++ 1 file changed, 26 insertions(+) diff --git a/drivers/raw/cnxk_gpio/cnxk_gpio.c b/drivers/raw/cnxk_gpio/cnxk_gpio.c index 235f0d6f7a..909fa9d390 100644 ---

[PATCH v4 08/11] raw/cnxk_gpio: support standard GPIO operations

2022-01-05 Thread Tomasz Duszynski
Add support for standard GPIO operations i.e ones normally provided by GPIO sysfs interface. Signed-off-by: Tomasz Duszynski --- doc/guides/rawdevs/cnxk_gpio.rst | 98 drivers/raw/cnxk_gpio/cnxk_gpio.c | 147 +++- drivers/raw/cnxk_gpio/rte_pmd_cnxk_gpio.h | 279

[PATCH v4 09/11] raw/cnxk_gpio: support custom irq handlers

2022-01-05 Thread Tomasz Duszynski
Add support for custom interrupt handlers. Custom interrupt handlers bypass kernel completely and are meant for fast and low latency access to GPIO state. Signed-off-by: Tomasz Duszynski --- doc/guides/rawdevs/cnxk_gpio.rst | 21 +++ drivers/raw/cnxk_gpio/cnxk_gpio.c | 37

[PATCH v4 10/11] raw/cnxk_gpio: support selftest

2022-01-05 Thread Tomasz Duszynski
Add support for performing selftest. Signed-off-by: Tomasz Duszynski --- doc/guides/rawdevs/cnxk_gpio.rst | 11 + drivers/raw/cnxk_gpio/cnxk_gpio.c | 1 + drivers/raw/cnxk_gpio/cnxk_gpio.h | 2 + drivers/raw/cnxk_gpio/cnxk_gpio_selftest.c | 386 ++

[PATCH v4 11/11] raw/cnxk_gpio: add option to allow using subset of GPIOs

2022-01-05 Thread Tomasz Duszynski
Add PMD parameter that allows one to select only subset of available GPIOs. This might be useful in cases where some GPIOs are already reserved yet still available for userspace access but particular app should not touch them. Signed-off-by: Tomasz Duszynski Reviewed-by: Jerin Jacob Kollanukkara

Re: Add timestamp to dpdk.log

2022-01-05 Thread Stephen Hemminger
Your message is garbaled with lots of bogus URL's. Please avoid HTML mail or weird links. I use this. There was a more general version submitted as a patch to DPDK but no one seemed interested. The reason for redirecting stdout is that are libraries we use that print to stdout and want to get tim

[PATCH] doc: simplify baseband features matrix

2022-01-05 Thread Thomas Monjalon
The "feature" BBDEV API is useless as all baseband drivers must implement it by definition. The non-implemented features should not be marked with "N". Keeping them blank is clearer to read in the resulting matrix. Signed-off-by: Thomas Monjalon --- doc/guides/bbdevs/features/acc100.ini

Re: Add timestamp to dpdk.log

2022-01-05 Thread Stephen Hemminger
On Wed, 5 Jan 2022 17:42:49 + Soumya Muralidhar wrote: > Hi Stephen, > > Thanks for getting back. But I am looking at storing logs with timestamps in > a file, basically something similar to syslog. Could you help me with that ? > > Regards, > Soumya > > On 1/5/22, 8:17 AM, "Stephen Hemm

[RFC] eal: remove size for eal_set_runtime_dir

2022-01-05 Thread Stephen Hemminger
The size argument to eal_set_runtime_dir is useless and was being used incorrectly in strlcpy. It worked only because all callers passed PATH_MAX which is same as sizeof the destination runtime_dir. Signed-off-by: Stephen Hemminger Suggested-by: Morten Brørup --- lib/eal/common/eal_common_confi

RE: [RFC] eal: remove size for eal_set_runtime_dir

2022-01-05 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Wednesday, 5 January 2022 19.02 > > The size argument to eal_set_runtime_dir is useless and was > being used incorrectly in strlcpy. It worked only because > all callers passed PATH_MAX which is same as sizeof the destination >

RE: [PATCH] doc: simplify baseband features matrix

2022-01-05 Thread Morten Brørup
> From: Thomas Monjalon [mailto:tho...@monjalon.net] > Sent: Wednesday, 5 January 2022 18.40 > > The "feature" BBDEV API is useless as all baseband drivers > must implement it by definition. > > The non-implemented features should not be marked with "N". > Keeping them blank is clearer to read in

RE: [RFC 1/1] vhost: integrate dmadev in asynchronous datapath

2022-01-05 Thread Hu, Jiayu
Hi Maxime, > -Original Message- > From: Maxime Coquelin > Sent: Monday, January 3, 2022 6:26 PM > To: Hu, Jiayu ; dev@dpdk.org > Cc: i.maxim...@ovn.org; Xia, Chenbo ; Richardson, > Bruce ; Van Haaren, Harry > ; Mcnamara, John > ; Pai G, Sunil > Subject: Re: [RFC 1/1] vhost: integrate dma