* [PATCH] net/mlx5: remove redundant macro
@ 2024-05-24 13:42 Thomas Monjalon
2024-05-24 15:38 ` Dariusz Sosnowski
2024-05-27 11:38 ` Raslan Darawsheh
0 siblings, 2 replies; 3+ messages in thread
From: Thomas Monjalon @ 2024-05-24 13:42 UTC (permalink / raw)
To: dev
Cc: Dariusz Sosnowski, Viacheslav Ovsiienko, Ori Kam, Suanming Mou,
Matan Azrad
The macro MLX5_BITSHIFT() is not used anymore,
and is redundant with RTE_BIT64(),
so it can be removed.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
drivers/net/mlx5/mlx5_utils.h | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/mlx5/mlx5_utils.h b/drivers/net/mlx5/mlx5_utils.h
index d86a80947e..c44a9d88be 100644
--- a/drivers/net/mlx5/mlx5_utils.h
+++ b/drivers/net/mlx5/mlx5_utils.h
@@ -22,9 +22,6 @@
#include "mlx5_defs.h"
-/* Convert a bit number to the corresponding 64-bit mask */
-#define MLX5_BITSHIFT(v) (UINT64_C(1) << (v))
-
/* Save and restore errno around argument evaluation. */
#define ERRNO_SAFE(x) ((errno = (int []){ errno, ((x), 0) }[0]))
--
2.45.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] net/mlx5: remove redundant macro
2024-05-24 13:42 [PATCH] net/mlx5: remove redundant macro Thomas Monjalon
@ 2024-05-24 15:38 ` Dariusz Sosnowski
2024-05-27 11:38 ` Raslan Darawsheh
1 sibling, 0 replies; 3+ messages in thread
From: Dariusz Sosnowski @ 2024-05-24 15:38 UTC (permalink / raw)
To: NBU-Contact-Thomas Monjalon (EXTERNAL), dev
Cc: Slava Ovsiienko, Ori Kam, Suanming Mou, Matan Azrad
> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Friday, May 24, 2024 15:43
> To: dev@dpdk.org
> Cc: Dariusz Sosnowski <dsosnowski@nvidia.com>; Slava Ovsiienko
> <viacheslavo@nvidia.com>; Ori Kam <orika@nvidia.com>; Suanming Mou
> <suanmingm@nvidia.com>; Matan Azrad <matan@nvidia.com>
> Subject: [PATCH] net/mlx5: remove redundant macro
>
> The macro MLX5_BITSHIFT() is not used anymore, and is redundant with
> RTE_BIT64(), so it can be removed.
>
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Dariusz Sosnowski <dsosnowski@nvidia.com>
Best regards,
Dariusz Sosnowski
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] net/mlx5: remove redundant macro
2024-05-24 13:42 [PATCH] net/mlx5: remove redundant macro Thomas Monjalon
2024-05-24 15:38 ` Dariusz Sosnowski
@ 2024-05-27 11:38 ` Raslan Darawsheh
1 sibling, 0 replies; 3+ messages in thread
From: Raslan Darawsheh @ 2024-05-27 11:38 UTC (permalink / raw)
To: NBU-Contact-Thomas Monjalon (EXTERNAL), dev
Cc: Dariusz Sosnowski, Slava Ovsiienko, Ori Kam, Suanming Mou, Matan Azrad
Hi,
From: Thomas Monjalon <thomas@monjalon.net>
Sent: Friday, May 24, 2024 4:42 PM
To: dev@dpdk.org
Cc: Dariusz Sosnowski; Slava Ovsiienko; Ori Kam; Suanming Mou; Matan Azrad
Subject: [PATCH] net/mlx5: remove redundant macro
The macro MLX5_BITSHIFT() is not used anymore,
and is redundant with RTE_BIT64(),
so it can be removed.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-05-27 11:39 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-24 13:42 [PATCH] net/mlx5: remove redundant macro Thomas Monjalon
2024-05-24 15:38 ` Dariusz Sosnowski
2024-05-27 11:38 ` Raslan Darawsheh
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).