event/dlb2: fix advertized capabilities
Checks
Commit Message
1) Remove RTE_EVENT_DEV_CAP_QUEUE_QOS. DLB/DLB2 do not support
queue priority
2) Add RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT
3) Add RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK
Fixes: e7c9971a857a ("event/dlb2: add probe-time hardware init")
Cc: stable@dpdk.org
Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
---
drivers/event/dlb2/dlb2.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
Comments
On Mon, Jun 6, 2022 at 9:31 PM Timothy McDaniel
<timothy.mcdaniel@intel.com> wrote:
>
Be more descriptive,
> 1) Remove RTE_EVENT_DEV_CAP_QUEUE_QOS. DLB/DLB2 do not support
> queue priority
> 2) Add RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT
> 3) Add RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK
file doc/guides/eventdevs/features/dlb2.ini is not updated. It is out of sync.
>
> Fixes: e7c9971a857a ("event/dlb2: add probe-time hardware init")
> Cc: stable@dpdk.org
>
> Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
> ---
> drivers/event/dlb2/dlb2.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c
> index 36f07d0061..5c30d5ce35 100644
> --- a/drivers/event/dlb2/dlb2.c
> +++ b/drivers/event/dlb2/dlb2.c
> @@ -61,11 +61,12 @@ static struct rte_event_dev_info evdev_dlb2_default_info = {
> .max_num_events = DLB2_MAX_NUM_LDB_CREDITS,
> .max_single_link_event_port_queue_pairs =
> DLB2_MAX_NUM_DIR_PORTS(DLB2_HW_V2),
> - .event_dev_cap = (RTE_EVENT_DEV_CAP_QUEUE_QOS |
> - RTE_EVENT_DEV_CAP_EVENT_QOS |
> + .event_dev_cap = (RTE_EVENT_DEV_CAP_EVENT_QOS |
> RTE_EVENT_DEV_CAP_BURST_MODE |
> RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED |
> RTE_EVENT_DEV_CAP_IMPLICIT_RELEASE_DISABLE |
> + RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT |
> + RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK |
> RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES |
> RTE_EVENT_DEV_CAP_MAINTENANCE_FREE),
> };
> --
> 2.25.1
>
I will update both the description and doc/guides/eventdevs/features/dlb2.ini
Thanks,
Tim
> -----Original Message-----
> From: Jerin Jacob <jerinjacobk@gmail.com>
> Sent: Thursday, June 9, 2022 12:06 PM
> To: McDaniel, Timothy <timothy.mcdaniel@intel.com>
> Cc: Jerin Jacob <jerinj@marvell.com>; dpdk-dev <dev@dpdk.org>; dpdk stable
> <stable@dpdk.org>
> Subject: Re: [PATCH] event/dlb2: fix advertized capabilities
>
> On Mon, Jun 6, 2022 at 9:31 PM Timothy McDaniel
> <timothy.mcdaniel@intel.com> wrote:
> >
>
> Be more descriptive,
>
> > 1) Remove RTE_EVENT_DEV_CAP_QUEUE_QOS. DLB/DLB2 do not support
> > queue priority
> > 2) Add RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT
> > 3) Add RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK
>
> file doc/guides/eventdevs/features/dlb2.ini is not updated. It is out of sync.
>
> >
> > Fixes: e7c9971a857a ("event/dlb2: add probe-time hardware init")
> > Cc: stable@dpdk.org
> >
> > Signed-off-by: Timothy McDaniel <timothy.mcdaniel@intel.com>
> > ---
> > drivers/event/dlb2/dlb2.c | 5 +++--
> > 1 file changed, 3 insertions(+), 2 deletions(-)
> >
> > diff --git a/drivers/event/dlb2/dlb2.c b/drivers/event/dlb2/dlb2.c
> > index 36f07d0061..5c30d5ce35 100644
> > --- a/drivers/event/dlb2/dlb2.c
> > +++ b/drivers/event/dlb2/dlb2.c
> > @@ -61,11 +61,12 @@ static struct rte_event_dev_info
> evdev_dlb2_default_info = {
> > .max_num_events = DLB2_MAX_NUM_LDB_CREDITS,
> > .max_single_link_event_port_queue_pairs =
> > DLB2_MAX_NUM_DIR_PORTS(DLB2_HW_V2),
> > - .event_dev_cap = (RTE_EVENT_DEV_CAP_QUEUE_QOS |
> > - RTE_EVENT_DEV_CAP_EVENT_QOS |
> > + .event_dev_cap = (RTE_EVENT_DEV_CAP_EVENT_QOS |
> > RTE_EVENT_DEV_CAP_BURST_MODE |
> > RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED |
> > RTE_EVENT_DEV_CAP_IMPLICIT_RELEASE_DISABLE |
> > + RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT |
> > + RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK |
> > RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES |
> > RTE_EVENT_DEV_CAP_MAINTENANCE_FREE),
> > };
> > --
> > 2.25.1
> >
@@ -61,11 +61,12 @@ static struct rte_event_dev_info evdev_dlb2_default_info = {
.max_num_events = DLB2_MAX_NUM_LDB_CREDITS,
.max_single_link_event_port_queue_pairs =
DLB2_MAX_NUM_DIR_PORTS(DLB2_HW_V2),
- .event_dev_cap = (RTE_EVENT_DEV_CAP_QUEUE_QOS |
- RTE_EVENT_DEV_CAP_EVENT_QOS |
+ .event_dev_cap = (RTE_EVENT_DEV_CAP_EVENT_QOS |
RTE_EVENT_DEV_CAP_BURST_MODE |
RTE_EVENT_DEV_CAP_DISTRIBUTED_SCHED |
RTE_EVENT_DEV_CAP_IMPLICIT_RELEASE_DISABLE |
+ RTE_EVENT_DEV_CAP_MULTIPLE_QUEUE_PORT |
+ RTE_EVENT_DEV_CAP_RUNTIME_PORT_LINK |
RTE_EVENT_DEV_CAP_QUEUE_ALL_TYPES |
RTE_EVENT_DEV_CAP_MAINTENANCE_FREE),
};