Re: [dpdk-dev] [PATCH v3] eventdev: update crypto adapter metadata structures

2021-09-07 Thread Shijith Thotton
, but can be ignored with this patch. >> >> This patch removes the reserve field from request info and makes event >> crypto metadata type to structure from union to make space for response >> info. >> >> App and drivers are updated as per metadata change. >

Re: [dpdk-dev] [PATCH v3] eventdev: update crypto adapter metadata structures

2021-09-08 Thread Shijith Thotton
t_info; // 8 bytes }; Total structure size is 16 bytes. Response info can be set like below in test app: m_data.response_info = response_info.event; The main aim of this patch is to decouple response info from request info. >> >> >> >> >> This patch remove

[PATCH] drivers: limit SSO interrupt allocation count in cnxk PMD

2022-12-02 Thread Shijith Thotton
: Shijith Thotton --- drivers/common/cnxk/roc_dev.c | 12 ++--- drivers/common/cnxk/roc_dev_priv.h | 5 ++ drivers/common/cnxk/roc_irq.c | 11 drivers/common/cnxk/roc_sso.c | 78 - drivers/common/cnxk/roc_sso.h | 4 +- drivers/common/cnxk

RE: Building DPDK with IOVA_AS_VA

2022-12-06 Thread Shijith Thotton
Hi Jingjing Wu/Beilei Xing. >I guess driver may not handle the attribute enable_iova_as_pa well right now. >Maybe you can have a try by disabling idpf driver by adding "- >Ddisable_drivers=net/idpf". > Please send a fix. A check can be added similar to hns3 PMD. +if dpdk_conf.get('RTE_IOVA_AS_P

[PATCH] examples/l2fwd-event: fix function args of worker cleanup

2022-12-12 Thread Shijith Thotton
Fixed function call arguments of l2fwd worker cleanup. Number of events enqueued and dequeued are set the opposite. Fixes: 622ebb6b4a7d ("examples/l2fwd-event: clean up worker state before exit") Signed-off-by: Shijith Thotton --- examples/l2fwd-event/l2fwd_event.c | 4 ++-- 1 file

[PATCH] event/cnxk: arm early to account for software delays

2022-12-13 Thread Shijith Thotton
Arm a bucket early to account for software delays in timer arm routine. Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cnxk_tim_worker.h | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/event/cnxk/cnxk_tim_worker.h b/drivers/event/cnxk

[PATCH] eventdev/eth_rx: fix return of rx adapter instance get

2023-01-03 Thread Shijith Thotton
. Modified code to match this logic. Fixes: a1793ee8aba0 ("eventdev/eth_rx: add adapter instance get API") Signed-off-by: Shijith Thotton --- lib/eventdev/rte_event_eth_rx_adapter.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/li

[dpdk-dev] [PATCH 0/3] periodic mode for event timer adapter

2021-03-08 Thread Shijith Thotton
in periodic mode. Second one adds unit tests for periodic mode. Third one is a hardware implementation of the feature. Shijith Thotton (3): eventdev: introduce adapter flags for periodic mode test/event: add unit tests for periodic timer event/octeontx2: add timer periodic mode support app

[dpdk-dev] [PATCH 3/3] event/octeontx2: add timer periodic mode support

2021-03-08 Thread Shijith Thotton
Add support for periodic mode in event timer adapter. Signed-off-by: Shijith Thotton --- drivers/event/octeontx2/otx2_tim_evdev.c | 29 drivers/event/octeontx2/otx2_tim_evdev.h | 1 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/event

[dpdk-dev] [PATCH 2/3] test/event: add unit tests for periodic timer

2021-03-08 Thread Shijith Thotton
Add tests to arm and cancel periodic timer. Signed-off-by: Shijith Thotton --- app/test/test_event_timer_adapter.c | 136 +--- 1 file changed, 123 insertions(+), 13 deletions(-) diff --git a/app/test/test_event_timer_adapter.c b/app/test/test_event_timer_adapter.c

[dpdk-dev] [PATCH 1/3] eventdev: introduce adapter flags for periodic mode

2021-03-08 Thread Shijith Thotton
which stops generating events */ rte_event_timer_cancel_burst(...); Signed-off-by: Shijith Thotton --- doc/guides/prog_guide/event_timer_adapter.rst | 33 +++ lib/librte_eventdev/rte_event_timer_adapter.h | 6 lib/librte_eventdev/rte_eventdev.h| 3 ++ 3

Re: [dpdk-dev] [PATCH 1/3] eventdev: introduce adapter flags for periodic mode

2021-03-10 Thread Shijith Thotton
Hi Erik, On Tue, Mar 09, 2021 at 08:04:32PM +, Carrillo, Erik G wrote: > > A timer adapter in periodic mode can be used to arm periodic timers. > > This patch adds flags used to advertise capability and configure timer > > adapter > > in periodic mode. Capability flag should be set for adapte

[dpdk-dev] [PATCH v2 0/3] periodic mode for event timer adapter

2021-03-14 Thread Shijith Thotton
in periodic mode. Second one adds unit tests for periodic mode. Third one is a hardware implementation of the feature. Shijith Thotton (3): eventdev: introduce adapter flags for periodic mode test/event: add unit tests for periodic timer event/octeontx2: add timer periodic mode support

[dpdk-dev] [PATCH v2 1/3] eventdev: introduce adapter flags for periodic mode

2021-03-14 Thread Shijith Thotton
which stops generating events */ rte_event_timer_cancel_burst(...); Signed-off-by: Shijith Thotton --- doc/guides/prog_guide/event_timer_adapter.rst | 15 ++- lib/librte_eventdev/rte_event_timer_adapter.h | 11 +++ lib/librte_eventdev/rte_eventdev.h| 3 +++ 3

[dpdk-dev] [PATCH v2 2/3] test/event: add unit tests for periodic timer

2021-03-14 Thread Shijith Thotton
Add tests to arm and cancel periodic timer. Signed-off-by: Shijith Thotton --- app/test/test_event_timer_adapter.c | 136 +--- 1 file changed, 123 insertions(+), 13 deletions(-) diff --git a/app/test/test_event_timer_adapter.c b/app/test/test_event_timer_adapter.c

[dpdk-dev] [PATCH v2 3/3] event/octeontx2: add timer periodic mode support

2021-03-14 Thread Shijith Thotton
Add support for periodic mode in event timer adapter. Signed-off-by: Shijith Thotton --- drivers/event/octeontx2/otx2_tim_evdev.c | 29 drivers/event/octeontx2/otx2_tim_evdev.h | 1 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/event

Re: [dpdk-dev] [PATCH 1/3] eventdev: introduce adapter flags for periodic mode

2021-03-14 Thread Shijith Thotton
On Fri, Mar 12, 2021 at 03:30:11PM +, Carrillo, Erik G wrote: > Hi Shijith, > > Some comments in-line: > > > -Original Message- > > From: Shijith Thotton > > Sent: Monday, March 8, 2021 2:46 PM > > To: Carrillo, Erik G > > Cc: Shijith T

Re: [dpdk-dev] [PATCH v2 1/3] eventdev: introduce adapter flags for periodic mode

2021-03-16 Thread Shijith Thotton
On Tue, Mar 16, 2021 at 07:04:16PM +, Carrillo, Erik G wrote: > Thanks, Shijith. I'm posting a couple of follow-up comments in-line: > > > -Original Message- > > From: Shijith Thotton > > Sent: Sunday, March 14, 2021 11:46 AM > > To: Carrillo, Erik

[dpdk-dev] [PATCH v3 0/3] periodic mode for event timer adapter

2021-03-17 Thread Shijith Thotton
in periodic mode. Second one adds unit tests for periodic mode. Third one is a hardware implementation of the feature. v3: - Text and checkpatch related corrections. v2: - Updated rst and doxygen documentation. Shijith Thotton (3): eventdev: introduce adapter flags for periodic mode test

[dpdk-dev] [PATCH v3 1/3] eventdev: introduce adapter flags for periodic mode

2021-03-17 Thread Shijith Thotton
which stops generating events */ rte_event_timer_cancel_burst(...); Signed-off-by: Shijith Thotton --- doc/guides/prog_guide/event_timer_adapter.rst | 16 +++- lib/librte_eventdev/rte_event_timer_adapter.h | 13 + lib/librte_eventdev/rte_eventdev.h| 3

[dpdk-dev] [PATCH v3 2/3] test/event: add unit tests for periodic timer

2021-03-17 Thread Shijith Thotton
Add tests to arm and cancel periodic timer. Signed-off-by: Shijith Thotton --- app/test/test_event_timer_adapter.c | 138 +--- 1 file changed, 125 insertions(+), 13 deletions(-) diff --git a/app/test/test_event_timer_adapter.c b/app/test/test_event_timer_adapter.c

[dpdk-dev] [PATCH v3 3/3] event/octeontx2: add timer periodic mode support

2021-03-17 Thread Shijith Thotton
Add support for periodic mode in event timer adapter. Signed-off-by: Shijith Thotton --- drivers/event/octeontx2/otx2_tim_evdev.c | 29 drivers/event/octeontx2/otx2_tim_evdev.h | 1 + 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/drivers/event

[dpdk-dev] [PATCH v1 0/2] Enhancements to crypto adapter forward mode

2021-03-26 Thread Shijith Thotton
octeontx2. Akhil Goyal (1): eventdev: introduce crypto adapter enqueue API Shijith Thotton (1): event/octeontx2: support crypto adapter forward mode .../prog_guide/event_crypto_adapter.rst | 69 ++-- drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 34 +--- drivers/event

[dpdk-dev] [PATCH v1 1/2] eventdev: introduce crypto adapter enqueue API

2021-03-26 Thread Shijith Thotton
From: Akhil Goyal In case an event from a previous stage is required to be forwarded to a crypto adapter and PMD supports internal event port in crypto adapter, exposed via capability RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD, we do not have a way to check in the API rte_event_enqueue_bur

[dpdk-dev] [PATCH v1 2/2] event/octeontx2: support crypto adapter forward mode

2021-03-26 Thread Shijith Thotton
Advertise crypto adapter forward mode capability and set crypto adapter enqueue function in driver. Signed-off-by: Shijith Thotton --- drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 34 +--- drivers/event/octeontx2/otx2_evdev.c | 5 +- .../event/octeontx2

Re: [dpdk-dev] [PATCH v1 2/2] event/octeontx2: support crypto adapter forward mode

2021-03-28 Thread Shijith Thotton
On Sat, Mar 27, 2021 at 06:27:49AM +, Pavan Nikhilesh Bhagavatula wrote: > > > >-Original Message----- > >From: Shijith Thotton > >Sent: Friday, March 26, 2021 2:42 PM > >To: dev@dpdk.org > >Cc: Shijith Thotton ; tho...@monjalon.net; > >Jer

[dpdk-dev] [PATCH v2 0/2] Enhancements to crypto adapter forward mode

2021-03-29 Thread Shijith Thotton
RTE_EVENTDEV_VALID_DEVID_OR_ERR_RET macro. - Fixed v1 build error. v1: - Added crypto adapter forward mode support for octeontx2. Akhil Goyal (1): eventdev: introduce crypto adapter enqueue API Shijith Thotton (1): event/octeontx2: support crypto adapter forward mode .../prog_guide/event_crypto_adapter.rst

[dpdk-dev] [PATCH v2 1/2] eventdev: introduce crypto adapter enqueue API

2021-03-29 Thread Shijith Thotton
From: Akhil Goyal In case an event from a previous stage is required to be forwarded to a crypto adapter and PMD supports internal event port in crypto adapter, exposed via capability RTE_EVENT_CRYPTO_ADAPTER_CAP_INTERNAL_PORT_OP_FWD, we do not have a way to check in the API rte_event_enqueue_bur

[dpdk-dev] [PATCH v2 2/2] event/octeontx2: support crypto adapter forward mode

2021-03-29 Thread Shijith Thotton
Advertise crypto adapter forward mode capability and set crypto adapter enqueue function in driver. Signed-off-by: Shijith Thotton --- drivers/crypto/octeontx2/otx2_cryptodev_ops.c | 42 ++ drivers/event/octeontx2/otx2_evdev.c | 5 +- .../event/octeontx2

[PATCH] event/cnxk: move crypto adapter ops to respective files

2022-07-27 Thread Shijith Thotton
Moved the common crypto adapter ops to file specific to eventdev adapters. Signed-off-by: Shijith Thotton --- drivers/event/cnxk/cnxk_eventdev.c | 121 --- drivers/event/cnxk/cnxk_eventdev.h | 10 +- drivers/event/cnxk/cnxk_eventdev_adptr.c | 115

RE: [EXT] Re: [PATCH] mbuf: add mbuf physical address field to dynamic field

2022-08-03 Thread Shijith Thotton
> >> space is free to use as a dynamic field. So a new dynamic field >> > member >> > >> (dynfield2) is added in mbuf structure to make use of that space. >> > >> >> > >> A new mbuf flag RTE_MBUF_F_DYNFIELD2 is introduced to

[PATCH] eventdev: add weight and affinity attributes to queue conf

2022-08-10 Thread Shijith Thotton
Added new fields to represent event queue weight and affinity in rte_event_queue_conf structure. Internal op to get queue attribute is removed as it is no longer needed. Updated driver to use the new field. Signed-off-by: Shijith Thotton --- doc/guides/rel_notes/deprecation.rst | 3 -- doc

[PATCH v1 0/4] mbuf dynamic field expansion

2022-08-29 Thread Shijith Thotton
Marvell cnxk PMDs and software PMDs in IOVA as VA build as they work without PA field. 1. https://inbox.dpdk.org/dev/57d2ab7fff672716d37ba4078e2e3bb2db126607.1656605763.git.sthot...@marvell.com/. Shijith Thotton (4): build: add meson option to configure IOVA mode as VA mbuf: add second

[PATCH v1 1/4] build: add meson option to configure IOVA mode as VA

2022-08-29 Thread Shijith Thotton
file to enable build. mbuf structure holds the physical (PA) and virtual address (VA) of a buffer. if IOVA mode is set to VA, PA is redundant as it is the same as VA. So PA field need not be updated and marked invalid if the build is configured to use only VA. Signed-off-by: Shijith Thotton

[PATCH v1 2/4] mbuf: add second dynamic field member for VA only build

2022-08-29 Thread Shijith Thotton
mbuf physical address field is not used in builds which only uses VA. It is used to expand the dynamic field area. Signed-off-by: Shijith Thotton --- lib/mbuf/rte_mbuf_core.h | 26 +- lib/mbuf/rte_mbuf_dyn.c | 2 ++ 2 files changed, 19 insertions(+), 9 deletions

[PATCH v1 3/4] drivers: mark Marvell cnxk PMDs work with IOVA as VA

2022-08-29 Thread Shijith Thotton
Enabled the flag pmd_iova_as_va in cnxk driver build files as they work with IOVA as VA. Updated cn9k and cn10k soc build configurations to enable the IOVA as VA build by default. Signed-off-by: Shijith Thotton --- config/arm/meson.build | 8 ++-- drivers/common/cnxk

[PATCH v1 4/4] drivers: mark software PMDs work with IOVA as VA

2022-08-29 Thread Shijith Thotton
Enabled software PMDs in IOVA as VA build as they work with IOVA as VA. Signed-off-by: Shijith Thotton --- drivers/crypto/armv8/meson.build| 1 + drivers/crypto/ipsec_mb/meson.build | 1 + drivers/crypto/null/meson.build | 1 + drivers/crypto/openssl/meson.build | 1 + drivers/dma

RE: [PATCH v4] app/eventdev: add crypto producer mode

2022-02-15 Thread Shijith Thotton
rmance of crypto adapter. >> >> Example: >> ./dpdk-test-eventdev -l 0-2 -w -w -- \ >> --prod_type_cryptodev --crypto_adptr_mode 1 --test=perf_atq \ >> --stlist=a --wlcores 1 --plcores 2 >> >> Signed-off-by: Shijith Thotton >> --- > > >

[PATCH v5] app/eventdev: add crypto producer mode

2022-02-15 Thread Shijith Thotton
--crypto_adptr_mode 1 --test=perf_atq \ --stlist=a --wlcores 1 --plcores 2 Signed-off-by: Shijith Thotton --- v5: * Rebased. v4: * Addressed comments on v3 and rebased. * Added cryptodev cleanup in signal handler. v3: * Reduce dereference inside loop. v2: * Fix RHEL compilation warning. app/test

RE: [PATCH v5] app/eventdev: add crypto producer mode

2022-02-15 Thread Shijith Thotton
>> >> In crypto producer mode, producer core enqueues cryptodev with software >> generated crypto ops and worker core dequeues crypto completion events >> from the eventdev. Event crypto metadata used for above processing is pre- >> populated in each crypto session. >> >> Parameter --prod_type_cryp

RE: [EXT] [PATCH v5] app/eventdev: add crypto producer mode

2022-02-18 Thread Shijith Thotton
Hi Akhil, >Few comments inline. >With those fixed. >Acked-by: Akhil Goyal > Thanks. >> +static int >> +perf_event_crypto_adapter_setup(struct test_perf *t, struct prod_data *p) >> +{ >> +struct evt_options *opt = t->opt; >> +uint32_t cap; >> +int ret; >> + >> +ret = rte_event_c

[PATCH v6] app/eventdev: add crypto producer mode

2022-02-18 Thread Shijith Thotton
--crypto_adptr_mode 1 --test=perf_atq \ --stlist=a --wlcores 1 --plcores 2 Signed-off-by: Shijith Thotton Acked-by: Akhil Goyal --- v6: * Added cryptodev close. * Fixed cleanup. * Updated release notes. v5: * Rebased. v4: * Addressed comments on v3 and rebased. * Added cryptodev cleanup in signal handler

RE: [PATCH v5] app/eventdev: add crypto producer mode

2022-02-21 Thread Shijith Thotton
>> > >> > + @Van Haaren, Harry > >Hi All, > >I have been away on vacation for the last week - hence the delay in reply on >this >thread. > > > >> > > [1] >> > > Steps to reproduce: >> > > * Clone https://urldefense.proofpoint.com/v2/url?u=http- >3A__dpdk.org_git_next_dpdk-2Dnext- >2Deventdev&d=DwI

RE: [PATCH v5] app/eventdev: add crypto producer mode

2022-02-23 Thread Shijith Thotton
>-Original Message- >From: Gujjar, Abhinandan S >Sent: Wednesday, February 23, 2022 2:32 PM >To: Shijith Thotton ; Van Haaren, Harry >; Jerin Jacob ; Hemant >Agrawal ; Nipun Gupta >Cc: Jerin Jacob Kollanukkaran ; dev@dpdk.org >Subject: [EXT] RE: [PATCH v5]

RE: [PATCH v5] app/eventdev: add crypto producer mode

2022-02-23 Thread Shijith Thotton
et >EAL: Selected IOVA mode 'PA' >EAL: VFIO support initialized >CRYPTODEV: Creating cryptodev crypto_null > >CRYPTODEV: Initialisation parameters - name: crypto_null,socket id: 0, max >queue >pairs: 8 >TELEMETRY: No legacy callbacks, legacy socket not created >

[PATCH v7] app/eventdev: add crypto producer mode

2022-02-23 Thread Shijith Thotton
--crypto_adptr_mode 1 --test=perf_atq \ --stlist=a --wlcores 1 --plcores 2 Signed-off-by: Shijith Thotton Acked-by: Akhil Goyal --- v7: * Removed setting op and event_type in response info. * Fixed op type of event in FORWARD mode. v6: * Added cryptodev close. * Fixed cleanup. * Updated release notes. v5

[PATCH 0/6] Extend and set event queue attributes at runtime

2022-03-29 Thread Shijith Thotton
patches. Pavan Nikhilesh (1): common/cnxk: use lock when accessing mbox of SSO Shijith Thotton (5): eventdev: support to set queue attributes at runtime eventdev: add weight and affinity to queue attributes doc: announce change in event queue conf structure test/event: test cases to test

[PATCH 1/6] eventdev: support to set queue attributes at runtime

2022-03-29 Thread Shijith Thotton
Added a new eventdev API rte_event_queue_attr_set(), to set event queue attributes at runtime from the values set during initialization using rte_event_queue_setup(). PMD's supporting this feature should expose the capability RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR. Signed-off-by: Shijith Th

[PATCH 2/6] eventdev: add weight and affinity to queue attributes

2022-03-29 Thread Shijith Thotton
. Signed-off-by: Shijith Thotton --- lib/eventdev/eventdev_pmd.h | 22 lib/eventdev/rte_eventdev.c | 12 +++ lib/eventdev/rte_eventdev.h | 41 + 3 files changed, 71 insertions(+), 4 deletions(-) diff --git a/lib/eventdev/eventdev_pmd.h b

[PATCH 4/6] test/event: test cases to test runtime queue attribute

2022-03-29 Thread Shijith Thotton
Added test cases to test changing of queue QoS attributes priority, weight and affinity at runtime. Signed-off-by: Shijith Thotton --- app/test/test_eventdev.c | 146 +++ 1 file changed, 146 insertions(+) diff --git a/app/test/test_eventdev.c b/app/test

[PATCH 3/6] doc: announce change in event queue conf structure

2022-03-29 Thread Shijith Thotton
Structure rte_event_queue_conf will be extended to include fields to support weight and affinity attribute. Once it gets added in DPDK 22.11, eventdev internal op, queue_attr_get can be removed. Signed-off-by: Shijith Thotton --- doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3

[PATCH 5/6] event/cnxk: support to set runtime queue attributes

2022-03-29 Thread Shijith Thotton
Added API to set queue attributes at runtime and API to get weight and affinity. Signed-off-by: Shijith Thotton --- doc/guides/eventdevs/features/cnxk.ini | 1 + drivers/event/cnxk/cn10k_eventdev.c| 4 ++ drivers/event/cnxk/cn9k_eventdev.c | 4 ++ drivers/event/cnxk/cnxk_eventdev.c

[PATCH 6/6] common/cnxk: use lock when accessing mbox of SSO

2022-03-29 Thread Shijith Thotton
From: Pavan Nikhilesh Since mbox is now accessed from multiple threads, use lock to synchronize access. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/common/cnxk/roc_sso.c | 174 + drivers/common/cnxk/roc_sso_priv.h | 1

RE: [PATCH 0/6] Extend and set event queue attributes at runtime

2022-04-04 Thread Shijith Thotton
>> > >> > This series adds support for setting event queue attributes at runtime >> > and adds two new event queue attributes weight and affinity. Eventdev >> > capability RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR is added to expose >> the >> > capability to set attributes at runtime and rte_event_queue

RE: [PATCH 5/6] event/cnxk: support to set runtime queue attributes

2022-04-04 Thread Shijith Thotton
> > >> +int >> +cnxk_sso_queue_attribute_get(struct rte_eventdev *event_dev, uint8_t >> queue_id, >> + uint32_t attr_id, uint32_t *attr_value) >> +{ >> +struct cnxk_sso_evdev *dev = cnxk_sso_pmd_priv(event_dev); >> + >> +*attr_value = attr_id == RTE_EVENT_QUEUE_ATTR_

RE: [PATCH 2/6] eventdev: add weight and affinity to queue attributes

2022-04-04 Thread Shijith Thotton
ging it. New eventdev >> op queue_attr_get can be used to get it from the PMD. > >Have you considered using a PMD-specific command line parameter as a >stop-gap until you can extend the config struct? > >> Signed-off-by: Shijith Thotton >> --- >> l

RE: [PATCH 1/6] eventdev: support to set queue attributes at runtime

2022-04-04 Thread Shijith Thotton
> > >> +/** >> + * Set an event queue attribute at runtime. >> + * >> + * @param dev >> + * Event device pointer >> + * @param queue_id >> + * Event queue index >> + * @param attr_id >> + * Event queue attribute id >> + * @param attr_value >> + * Event queue attribute value >> + * >> + * @r

RE: [PATCH 1/6] eventdev: support to set queue attributes at runtime

2022-04-04 Thread Shijith Thotton
EUE_ATTR. >> >> Signed-off-by: Shijith Thotton >> --- >> doc/guides/eventdevs/features/default.ini | 1 + >> lib/eventdev/eventdev_pmd.h | 22 + >> lib/eventdev/rte_eventdev.c | 31 ++ >> lib/even

[PATCH v2 0/6] Extend and set event queue attributes at runtime

2022-04-04 Thread Shijith Thotton
patches. v2: * Modified attr_value type from u32 to u64 for set(). * Removed RTE_EVENT_QUEUE_ATTR_MAX macro. * Fixed return value in implementation. Pavan Nikhilesh (1): common/cnxk: use lock when accessing mbox of SSO Shijith Thotton (5): eventdev: support to set queue attributes at runtime

[PATCH v2 2/6] eventdev: add weight and affinity to queue attributes

2022-04-04 Thread Shijith Thotton
. Signed-off-by: Shijith Thotton --- lib/eventdev/eventdev_pmd.h | 22 + lib/eventdev/rte_eventdev.c | 12 lib/eventdev/rte_eventdev.h | 38 +++-- 3 files changed, 70 insertions(+), 2 deletions(-) diff --git a/lib/eventdev/eventdev_pmd.h

[PATCH v2 1/6] eventdev: support to set queue attributes at runtime

2022-04-04 Thread Shijith Thotton
Added a new eventdev API rte_event_queue_attr_set(), to set event queue attributes at runtime from the values set during initialization using rte_event_queue_setup(). PMD's supporting this feature should expose the capability RTE_EVENT_DEV_CAP_RUNTIME_QUEUE_ATTR. Signed-off-by: Shijith Th

[PATCH v2 3/6] doc: announce change in event queue conf structure

2022-04-04 Thread Shijith Thotton
Structure rte_event_queue_conf will be extended to include fields to support weight and affinity attribute. Once it gets added in DPDK 22.11, eventdev internal op, queue_attr_get can be removed. Signed-off-by: Shijith Thotton --- doc/guides/rel_notes/deprecation.rst | 3 +++ 1 file changed, 3

[PATCH v2 4/6] test/event: test cases to test runtime queue attribute

2022-04-04 Thread Shijith Thotton
Added test cases to test changing of queue QoS attributes priority, weight and affinity at runtime. Signed-off-by: Shijith Thotton --- app/test/test_eventdev.c | 149 +++ 1 file changed, 149 insertions(+) diff --git a/app/test/test_eventdev.c b/app/test

[PATCH v2 5/6] event/cnxk: support to set runtime queue attributes

2022-04-04 Thread Shijith Thotton
Added API to set queue attributes at runtime and API to get weight and affinity. Signed-off-by: Shijith Thotton --- doc/guides/eventdevs/features/cnxk.ini | 1 + drivers/event/cnxk/cn10k_eventdev.c| 4 ++ drivers/event/cnxk/cn9k_eventdev.c | 4 ++ drivers/event/cnxk/cnxk_eventdev.c

[PATCH v2 6/6] common/cnxk: use lock when accessing mbox of SSO

2022-04-04 Thread Shijith Thotton
From: Pavan Nikhilesh Since mbox is now accessed from multiple threads, use lock to synchronize access. Signed-off-by: Pavan Nikhilesh Signed-off-by: Shijith Thotton --- drivers/common/cnxk/roc_sso.c | 174 + drivers/common/cnxk/roc_sso_priv.h | 1

[dpdk-dev] [PATCH v1] test/event: fix return value of timer test setup

2021-05-07 Thread Shijith Thotton
Test case setup should return -ENOTSUP, if it is not supported. Fixes: 7d761b07fcf6 ("test/event: add unit tests for periodic timer") Signed-off-by: Shijith Thotton --- app/test/test_event_timer_adapter.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git

Re: [PATCH v2 0/6] Extend and set event queue attributes at runtime

2022-04-11 Thread Shijith Thotton
Please review and let me know if any comments. From: Shijith Thotton Sent: Tuesday, April 5, 2022 11:10 AM To: dev@dpdk.org ; Jerin Jacob Kollanukkaran Cc: Shijith Thotton ; Pavan Nikhilesh Bhagavatula ; harry.van.haa...@intel.com ; mattias.ronnb

Re: [dpdk-dev] [PATCH] igb_uio: issue FLR during open and release of device file

2017-07-07 Thread Shijith Thotton
work with http://dpdk.org/dev/patchwork/patch/25061/ patch [2]. > [2] was successfully tested with IXGBE & I40e VFs on RH 6.x, RH 7.x Ubuntu > 14.04 and SLES-11.4 > > Regards, > Gregory > > On Thursday, 6 July 2017 19:41:40 IDT Ferruh Yigit wrote: > > On 6/12/2

[dpdk-dev] [PATCH v2] igb_uio: issue FLR during open and release of device file

2017-07-07 Thread Shijith Thotton
nable and disable are added in open and release respectively to take care of device DMA. Signed-off-by: Shijith Thotton --- v2 changes: - Replaced pci_try_reset_function with pci_reset_function as it is not available in older kernel versions. v1 changes: - Added pci set master inside ope

Re: [dpdk-dev] [PATCH v2] igb_uio: issue FLR during open and release of device file

2017-07-10 Thread Shijith Thotton
On Mon, Jul 10, 2017 at 03:38:34AM +, Tan, Jianfeng wrote: > Hi Thotton, > > > -Original Message- > > From: Shijith Thotton [mailto:shijith.thot...@caviumnetworks.com] > > Sent: Friday, July 7, 2017 7:14 PM > > To: dev@dpdk.org > > Cc: Yigit, Ferr

Re: [dpdk-dev] [PATCH v2] igb_uio: issue FLR during open and release of device file

2017-07-10 Thread Shijith Thotton
On Mon, Jul 10, 2017 at 09:00:38AM +, Tan, Jianfeng wrote: > > > > -Original Message- > > From: Shijith Thotton [mailto:shijith.thot...@caviumnetworks.com] > > Sent: Monday, July 10, 2017 3:11 PM > > To: Tan, Jianfeng > > Cc: dev@dpdk.org; Yi

Re: [dpdk-dev] [RFC 11/14] liquidio: use _rte_eth_link_update

2017-07-18 Thread Shijith Thotton
link.link_speed = ETH_SPEED_NUM_NONE; > + link.link_duplex = ETH_LINK_HALF_DUPLEX; > + } > > - if (link.link_status == old.link_status) > - return -1; > + } > > - return 0; > + return _rte_eth_link_update(eth_dev, &link); > } > > /** > -- > 2.11.0 > Tested-by: Shijith Thotton Thanks, Shijith

Re: [dpdk-dev] [PATCH v2 36/46] net/liquidio: add API to set MTU

2017-03-21 Thread Shijith Thotton
On Tue, Mar 21, 2017 at 12:24:49PM +, Ferruh Yigit wrote: > On 3/2/2017 11:32 AM, Shijith Thotton wrote: > > Signed-off-by: Shijith Thotton > > Signed-off-by: Jerin Jacob > > Signed-off-by: Derek Chickles > > Signed-off-by: Venkat Koppula > > Signed-off-by:

Re: [dpdk-dev] [PATCH v2 36/46] net/liquidio: add API to set MTU

2017-03-21 Thread Shijith Thotton
On Tue, Mar 21, 2017 at 01:01:58PM +, Ferruh Yigit wrote: > On 3/21/2017 12:53 PM, Shijith Thotton wrote: > > On Tue, Mar 21, 2017 at 12:24:49PM +, Ferruh Yigit wrote: > >> On 3/2/2017 11:32 AM, Shijith Thotton wrote: > >>> Signed-off-by: Shijith Thotton &g

Re: [dpdk-dev] [PATCH v2 36/46] net/liquidio: add API to set MTU

2017-03-22 Thread Shijith Thotton
On Tue, Mar 21, 2017 at 02:09:44PM +, Ferruh Yigit wrote: > On 3/21/2017 1:56 PM, Shijith Thotton wrote: > > On Tue, Mar 21, 2017 at 01:01:58PM +, Ferruh Yigit wrote: > >> On 3/21/2017 12:53 PM, Shijith Thotton wrote: > >>> On Tue, Mar 21, 2017 at 12:24:

Re: [dpdk-dev] [PATCH v2 46/46] doc: add doc for liquidio

2017-03-22 Thread Shijith Thotton
On Tue, Mar 21, 2017 at 12:33:30PM +, Ferruh Yigit wrote: > On 3/2/2017 11:32 AM, Shijith Thotton wrote: > > Added doc/guides/nics/liquidio.rst and > > doc/guides/nics/features/liquidio.ini. Updated release notes. > > > > Signed-off-by: Shijith Thotton >

Re: [dpdk-dev] [PATCH v2 00/46] LiquidIO PMD

2017-03-24 Thread Shijith Thotton
On Tue, Mar 21, 2017 at 12:38:18PM +, Ferruh Yigit wrote: > On 3/2/2017 11:32 AM, Shijith Thotton wrote: > > The patch series provides initial version of virtual function poll mode > > driver for Cavium LiquidIO II server adapters. This version adds support > > for Liq

[dpdk-dev] [PATCH v3 00/46] LiquidIO PMD

2017-03-24 Thread Shijith Thotton
/058206.html * Fixed FreeBSD build failure. - http://dpdk.org/ml/archives/test-report/2017-February/011272.html * Updated driver documentation: - Added CN2360 under supported LiquidIO adapters. - Added CRC strip under limitations. Shijith Thotton (46): net/liquidio: add liquidio PMD skeleton net

[dpdk-dev] [PATCH v3 02/46] net/liquidio/base: hardware register definitions

2017-03-24 Thread Shijith Thotton
Add HW register definitions for LiquidIO II CN23XX adapter. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio/base

[dpdk-dev] [PATCH v3 05/46] net/liquidio/base: macros to read and write register

2017-03-24 Thread Shijith Thotton
Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio/base/lio_hw_defs.h | 67 + 1 file changed

[dpdk-dev] [PATCH v3 04/46] net/liquidio: liquidio VF PMD driver registration

2017-03-24 Thread Shijith Thotton
Register LiquidIO PMD (net_liovf) and define APIs to init and uninit. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- doc/guides/nics/features

[dpdk-dev] [PATCH v3 06/46] net/liquidio: liquidio device init

2017-03-24 Thread Shijith Thotton
Default device configuration and initialization code. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio/Makefile

[dpdk-dev] [PATCH v3 03/46] net/liquidio: definitions for log

2017-03-24 Thread Shijith Thotton
Add debug options to config file. Define macros used for log and make use of config file options to enable them. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham

[dpdk-dev] [PATCH v3 01/46] net/liquidio: add liquidio PMD skeleton

2017-03-24 Thread Shijith Thotton
Add makefile and config file options to compile PMD. Add feature and version map file. Update maintainers file to claim responsibility. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S

[dpdk-dev] [PATCH v3 10/46] net/liquidio: add API to setup mbox registers

2017-03-24 Thread Shijith Thotton
Map and initialize mbox registers. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio/base/lio_23xx_vf.c | 61

[dpdk-dev] [PATCH v3 07/46] net/liquidio: add API to disable IO queues

2017-03-24 Thread Shijith Thotton
Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio/base/lio_23xx_vf.c | 49 + drivers/net

[dpdk-dev] [PATCH v3 08/46] net/liquidio: add API to setup IO queue registers

2017-03-24 Thread Shijith Thotton
Set default configuration values for input and output queue registers. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio

[dpdk-dev] [PATCH v3 11/46] net/liquidio: add API for PF VF handshake

2017-03-24 Thread Shijith Thotton
Handshake with PF kernel driver to check driver version compatibility. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio

[dpdk-dev] [PATCH v3 09/46] net/liquidio: add mbox APIs for PF VF communication

2017-03-24 Thread Shijith Thotton
Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio/Makefile| 1 + drivers/net/liquidio/base/lio_mbox.c | 275

[dpdk-dev] [PATCH v3 12/46] net/liquidio: add API for VF FLR

2017-03-24 Thread Shijith Thotton
VF sends Function Level Reset request to PF using mbox and PF does the reset. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net

[dpdk-dev] [PATCH v3 15/46] net/liquidio: add APIs to allocate and free SC buffer pool

2017-03-24 Thread Shijith Thotton
Soft command (SC) holds device control command and related information. SC buffer pool holds buffers which are used during soft command allocation. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by

[dpdk-dev] [PATCH v3 14/46] net/liquidio: add API to setup IQ

2017-03-24 Thread Shijith Thotton
Map instruction queue registers and set queue size. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio/base/lio_23xx_vf.c

[dpdk-dev] [PATCH v3 13/46] net/liquidio: add APIs to allocate and free IQ

2017-03-24 Thread Shijith Thotton
Instruction queue (IQ) is used to send control and data packets to device from host. IQ 0 is used to send device configuration commands during initialization and later re-allocated as per application requirement. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek

[dpdk-dev] [PATCH v3 17/46] net/liquidio: add APIs for response list

2017-03-24 Thread Shijith Thotton
Add APIs to setup and process response list. Response list holds soft commands waiting for response from device. Entries of this list are processed to check for command response or timeout. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by

[dpdk-dev] [PATCH v3 18/46] net/liquidio: add API to send packet to device

2017-03-24 Thread Shijith Thotton
Add API to send control and data packets to device. Request list keeps track of host buffers to be freed till it reaches device. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed

[dpdk-dev] [PATCH v3 19/46] net/liquidio: add API to configure device

2017-03-24 Thread Shijith Thotton
Add API to configure device and initialize ethernet device operations. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio

[dpdk-dev] [PATCH v3 20/46] net/liquidio: add API to setup Rx queue

2017-03-24 Thread Shijith Thotton
Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio/base/lio_hw_defs.h | 3 + drivers/net/liquidio/lio_ethdev.c | 67

[dpdk-dev] [PATCH v3 16/46] net/liquidio: add APIs to allocate and free soft command

2017-03-24 Thread Shijith Thotton
Get buffers from SC buffer pool and create soft command. Buffers are freed to the pool once the command reaches device. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by

[dpdk-dev] [PATCH v3 23/46] net/liquidio: add API to release Rx queue

2017-03-24 Thread Shijith Thotton
Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio/lio_ethdev.c | 28 drivers/net/liquidio

[dpdk-dev] [PATCH v3 21/46] net/liquidio: initialize Rx queue

2017-03-24 Thread Shijith Thotton
Initialize Rx queue registers and allocate packet buffers for Rx queue. Signed-off-by: Shijith Thotton Signed-off-by: Jerin Jacob Signed-off-by: Derek Chickles Signed-off-by: Venkat Koppula Signed-off-by: Srisivasubramanian S Signed-off-by: Mallesham Jatharakonda --- drivers/net/liquidio

<    1   2   3   4   5   6   >