DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] net/ice/base: fix a refactor error
@ 2020-10-20  8:46 Simei Su
  2020-10-20 10:17 ` Zhang, Qi Z
  0 siblings, 1 reply; 2+ messages in thread
From: Simei Su @ 2020-10-20  8:46 UTC (permalink / raw)
  To: qi.z.zhang, qiming.yang; +Cc: dev, bruce.w.allan, Simei Su

This patch corrects an upper limit value in for loop.

Fixes: dd4a3cef556a ("net/ice/base: introduce and use bitmap set API")

Signed-off-by: Simei Su <simei.su@intel.com>
---
 drivers/net/ice/base/ice_bitops.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/ice/base/ice_bitops.h b/drivers/net/ice/base/ice_bitops.h
index f954a74..3954896 100644
--- a/drivers/net/ice/base/ice_bitops.h
+++ b/drivers/net/ice/base/ice_bitops.h
@@ -395,7 +395,7 @@ ice_bitmap_set(ice_bitmap_t *dst, u16 pos, u16 num_bits)
 {
 	u16 i;
 
-	for (i = pos; i < num_bits; i++)
+	for (i = pos; i < pos + num_bits; i++)
 		ice_set_bit(i, dst);
 }
 
-- 
2.9.5


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] net/ice/base: fix a refactor error
  2020-10-20  8:46 [dpdk-dev] [PATCH] net/ice/base: fix a refactor error Simei Su
@ 2020-10-20 10:17 ` Zhang, Qi Z
  0 siblings, 0 replies; 2+ messages in thread
From: Zhang, Qi Z @ 2020-10-20 10:17 UTC (permalink / raw)
  To: Su, Simei, Yang, Qiming; +Cc: dev, Allan, Bruce W



> -----Original Message-----
> From: Su, Simei <simei.su@intel.com>
> Sent: Tuesday, October 20, 2020 4:47 PM
> To: Zhang, Qi Z <qi.z.zhang@intel.com>; Yang, Qiming <qiming.yang@intel.com>
> Cc: dev@dpdk.org; Allan, Bruce W <bruce.w.allan@intel.com>; Su, Simei
> <simei.su@intel.com>
> Subject: [PATCH] net/ice/base: fix a refactor error
> 
> This patch corrects an upper limit value in for loop.
> 
> Fixes: dd4a3cef556a ("net/ice/base: introduce and use bitmap set API")
> 
> Signed-off-by: Simei Su <simei.su@intel.com>

Acked-by: Qi Zhang <qi.z.zhang@intel.com>

Applied to dpdk-next-net-intel.

Thanks
Qi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-10-20 10:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-20  8:46 [dpdk-dev] [PATCH] net/ice/base: fix a refactor error Simei Su
2020-10-20 10:17 ` Zhang, Qi Z

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).