net/ice/base: fix a refactor error
PATCH 1/1 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 <[email protected]>
--- drivers/net/ice/base/ice_bitops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ice/base/ice_bitops.h +1 -1
@@ -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); }
Signature · 1 line
2.9.5
Quoted 10 lines
-----Original Message-----
From: Su, Simei <[email protected]>
Sent: Tuesday, October 20, 2020 4:47 PM
To: Zhang, Qi Z <[email protected]>; Yang, Qiming <[email protected]>
Cc: [email protected]; Allan, Bruce W <[email protected]>; Su, Simei <[email protected]>
Subject: [PATCH]net/ice/base: fix a refactor error
Quoted 5 lines
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 <[email protected]>
Acked-by Qi Zhang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi