* [dpdk-dev] [PATCH] event/sw: code refractor for counter set
@ 2018-02-27 21:10 Vipin Varghese
2018-03-14 13:16 ` Laatz, Kevin
0 siblings, 1 reply; 3+ messages in thread
From: Vipin Varghese @ 2018-02-27 21:10 UTC (permalink / raw)
To: dev, harry.van.haaren; +Cc: Vipin Varghese
Counter variable 'out_pkts' had been set to 0, then updated. Current
code change elimates double assignment to direct assignment.
Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
---
drivers/event/sw/sw_evdev_scheduler.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/drivers/event/sw/sw_evdev_scheduler.c b/drivers/event/sw/sw_evdev_scheduler.c
index 9143b93..e3a41e0 100644
--- a/drivers/event/sw/sw_evdev_scheduler.c
+++ b/drivers/event/sw/sw_evdev_scheduler.c
@@ -532,8 +532,7 @@ sw_event_schedule(struct rte_eventdev *dev)
} while (in_pkts > 4 &&
(int)in_pkts_this_iteration < sched_quanta);
- out_pkts = 0;
- out_pkts += sw_schedule_qid_to_cq(sw);
+ out_pkts = sw_schedule_qid_to_cq(sw);
out_pkts_total += out_pkts;
in_pkts_total += in_pkts_this_iteration;
--
2.7.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] event/sw: code refractor for counter set
2018-02-27 21:10 [dpdk-dev] [PATCH] event/sw: code refractor for counter set Vipin Varghese
@ 2018-03-14 13:16 ` Laatz, Kevin
2018-03-20 6:10 ` Jerin Jacob
0 siblings, 1 reply; 3+ messages in thread
From: Laatz, Kevin @ 2018-03-14 13:16 UTC (permalink / raw)
To: Vipin Varghese; +Cc: dev, harry.van.haaren
On 27/02/2018 21:10, Vipin Varghese wrote:
> Counter variable 'out_pkts' had been set to 0, then updated. Current
> code change elimates double assignment to direct assignment.
>
> Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
>
<...>
Acked-by: Kevin Laatz <kevin.laatz@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dpdk-dev] [PATCH] event/sw: code refractor for counter set
2018-03-14 13:16 ` Laatz, Kevin
@ 2018-03-20 6:10 ` Jerin Jacob
0 siblings, 0 replies; 3+ messages in thread
From: Jerin Jacob @ 2018-03-20 6:10 UTC (permalink / raw)
To: Laatz, Kevin; +Cc: Vipin Varghese, dev, harry.van.haaren
-----Original Message-----
> Date: Wed, 14 Mar 2018 13:16:11 +0000
> From: "Laatz, Kevin" <kevin.laatz@intel.com>
> To: Vipin Varghese <vipin.varghese@intel.com>
> CC: dev@dpdk.org, harry.van.haaren@intel.com
> Subject: Re: [dpdk-dev] [PATCH] event/sw: code refractor for counter set
> User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
> Thunderbird/52.6.0
>
>
>
> On 27/02/2018 21:10, Vipin Varghese wrote:
> > Counter variable 'out_pkts' had been set to 0, then updated. Current
> > code change elimates double assignment to direct assignment.
> >
> > Signed-off-by: Vipin Varghese <vipin.varghese@intel.com>
> >
> <...>
>
> Acked-by: Kevin Laatz <kevin.laatz@intel.com>
Applied to dpdk-next-eventdev/master. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-03-20 6:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-27 21:10 [dpdk-dev] [PATCH] event/sw: code refractor for counter set Vipin Varghese
2018-03-14 13:16 ` Laatz, Kevin
2018-03-20 6:10 ` Jerin Jacob
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).