diff mbox series

[v2,1/5] event/dpaa2: fix def queue conf

Message ID 20190907064209.30686-2-hemant.agrawal@nxp.com
State Superseded
Headers show
Series NXP DPAA2 EVENTDEV enhancements | expand

Commit Message

Hemant Agrawal Sept. 7, 2019, 6:42 a.m. UTC
Test vector expect only one type of scheduling as default.
The old code is provide support scheduling types instead of default.

Fixes: 13370a3877a5 ("eventdev: fix inconsistency in queue config")
Cc: stable@dpdk.org
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>

---
 drivers/event/dpaa2/dpaa2_eventdev.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

-- 
2.17.1

Comments

Jerin Jacob Sept. 13, 2019, 6:24 a.m. UTC | #1
On Sat, Sep 7, 2019 at 12:14 PM Hemant Agrawal <hemant.agrawal@nxp.com> wrote:
>

> Test vector expect only one type of scheduling as default.

> The old code is provide support scheduling types instead of default.

>

> Fixes: 13370a3877a5 ("eventdev: fix inconsistency in queue config")

> Cc: stable@dpdk.org

> Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>


Please fix the clang build issue
http://mails.dpdk.org/archives/test-report/2019-September/096533.html



>  drivers/event/dpaa2/dpaa2_eventdev.c | 7 ++-----

>  1 file changed, 2 insertions(+), 5 deletions(-)

>

> diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c

> index 926b7edd8..b8cb437a0 100644

> --- a/drivers/event/dpaa2/dpaa2_eventdev.c

> +++ b/drivers/event/dpaa2/dpaa2_eventdev.c

> @@ -1,7 +1,5 @@

>  /* SPDX-License-Identifier: BSD-3-Clause

> - *

> - *   Copyright 2017 NXP

> - *

> + * Copyright 2017,2019 NXP

>   */

>

>  #include <assert.h>

> @@ -470,8 +468,7 @@ dpaa2_eventdev_queue_def_conf(struct rte_eventdev *dev, uint8_t queue_id,

>         RTE_SET_USED(queue_conf);

>

>         queue_conf->nb_atomic_flows = DPAA2_EVENT_QUEUE_ATOMIC_FLOWS;

> -       queue_conf->schedule_type = RTE_SCHED_TYPE_ATOMIC |

> -                                     RTE_SCHED_TYPE_PARALLEL;

> +       queue_conf->schedule_type = RTE_SCHED_TYPE_PARALLEL;

>         queue_conf->priority = RTE_EVENT_DEV_PRIORITY_NORMAL;

>  }

>

> --

> 2.17.1

>
Jerin Jacob Sept. 26, 2019, 5:55 p.m. UTC | #2
On Fri, Sep 13, 2019 at 11:54 AM Jerin Jacob <jerinjacobk@gmail.com> wrote:
>

> On Sat, Sep 7, 2019 at 12:14 PM Hemant Agrawal <hemant.agrawal@nxp.com> wrote:

> >

> > Test vector expect only one type of scheduling as default.

> > The old code is provide support scheduling types instead of default.

> >

> > Fixes: 13370a3877a5 ("eventdev: fix inconsistency in queue config")

> > Cc: stable@dpdk.org

> > Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>

>

> Please fix the clang build issue

> http://mails.dpdk.org/archives/test-report/2019-September/096533.html


Waiting for the next version to merge for RC1.


>

>

>

> >  drivers/event/dpaa2/dpaa2_eventdev.c | 7 ++-----

> >  1 file changed, 2 insertions(+), 5 deletions(-)

> >

> > diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c

> > index 926b7edd8..b8cb437a0 100644

> > --- a/drivers/event/dpaa2/dpaa2_eventdev.c

> > +++ b/drivers/event/dpaa2/dpaa2_eventdev.c

> > @@ -1,7 +1,5 @@

> >  /* SPDX-License-Identifier: BSD-3-Clause

> > - *

> > - *   Copyright 2017 NXP

> > - *

> > + * Copyright 2017,2019 NXP

> >   */

> >

> >  #include <assert.h>

> > @@ -470,8 +468,7 @@ dpaa2_eventdev_queue_def_conf(struct rte_eventdev *dev, uint8_t queue_id,

> >         RTE_SET_USED(queue_conf);

> >

> >         queue_conf->nb_atomic_flows = DPAA2_EVENT_QUEUE_ATOMIC_FLOWS;

> > -       queue_conf->schedule_type = RTE_SCHED_TYPE_ATOMIC |

> > -                                     RTE_SCHED_TYPE_PARALLEL;

> > +       queue_conf->schedule_type = RTE_SCHED_TYPE_PARALLEL;

> >         queue_conf->priority = RTE_EVENT_DEV_PRIORITY_NORMAL;

> >  }

> >

> > --

> > 2.17.1

> >
Hemant Agrawal Sept. 27, 2019, 6:02 a.m. UTC | #3
I will send the RC2 today.
diff mbox series

Patch

diff --git a/drivers/event/dpaa2/dpaa2_eventdev.c b/drivers/event/dpaa2/dpaa2_eventdev.c
index 926b7edd8..b8cb437a0 100644
--- a/drivers/event/dpaa2/dpaa2_eventdev.c
+++ b/drivers/event/dpaa2/dpaa2_eventdev.c
@@ -1,7 +1,5 @@ 
 /* SPDX-License-Identifier: BSD-3-Clause
- *
- *   Copyright 2017 NXP
- *
+ * Copyright 2017,2019 NXP
  */
 
 #include <assert.h>
@@ -470,8 +468,7 @@  dpaa2_eventdev_queue_def_conf(struct rte_eventdev *dev, uint8_t queue_id,
 	RTE_SET_USED(queue_conf);
 
 	queue_conf->nb_atomic_flows = DPAA2_EVENT_QUEUE_ATOMIC_FLOWS;
-	queue_conf->schedule_type = RTE_SCHED_TYPE_ATOMIC |
-				      RTE_SCHED_TYPE_PARALLEL;
+	queue_conf->schedule_type = RTE_SCHED_TYPE_PARALLEL;
 	queue_conf->priority = RTE_EVENT_DEV_PRIORITY_NORMAL;
 }