DPDK patches and discussions
 help / color / mirror / Atom feed
* [PATCH] net/ena: remove unused abort macro
@ 2024-10-09 11:49 Thomas Monjalon
  2024-10-09 12:08 ` Brandes, Shai
  0 siblings, 1 reply; 3+ messages in thread
From: Thomas Monjalon @ 2024-10-09 11:49 UTC (permalink / raw)
  To: dev
  Cc: Shai Brandes, Evgeny Schemeilin, Ron Beider, Amit Bernstein,
	Wajeeh Atrash

The function abort() should be forbidden for drivers and libs.
It is not used in ENA, but the rule is enfocred by removing the macro.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
---
 drivers/net/ena/base/ena_plat_dpdk.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/net/ena/base/ena_plat_dpdk.h b/drivers/net/ena/base/ena_plat_dpdk.h
index 21b96113c7..a41a4e4506 100644
--- a/drivers/net/ena/base/ena_plat_dpdk.h
+++ b/drivers/net/ena/base/ena_plat_dpdk.h
@@ -63,8 +63,6 @@ typedef uint64_t dma_addr_t;
 
 #define ENA_CDESC_RING_SIZE_ALIGNMENT  (1 << 12) /* 4K */
 
-#define ENA_ABORT() abort()
-
 #define ENA_MSLEEP(x) rte_delay_us_sleep(x * 1000)
 #define ENA_USLEEP(x) rte_delay_us_sleep(x)
 #define ENA_UDELAY(x) rte_delay_us_block(x)
-- 
2.46.0


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

* RE: [PATCH] net/ena: remove unused abort macro
  2024-10-09 11:49 [PATCH] net/ena: remove unused abort macro Thomas Monjalon
@ 2024-10-09 12:08 ` Brandes, Shai
  2024-10-09 12:25   ` Thomas Monjalon
  0 siblings, 1 reply; 3+ messages in thread
From: Brandes, Shai @ 2024-10-09 12:08 UTC (permalink / raw)
  To: Thomas Monjalon, dev
  Cc: Schmeilin, Evgeny, Beider, Ron, Bernstein, Amit, Atrash, Wajeeh



> -----Original Message-----
> From: Thomas Monjalon <thomas@monjalon.net>
> Sent: Wednesday, October 9, 2024 2:49 PM
> To: dev@dpdk.org
> Cc: Brandes, Shai <shaibran@amazon.com>; Schmeilin, Evgeny
> <evgenys@amazon.com>; Beider, Ron <rbeider@amazon.com>; Bernstein,
> Amit <amitbern@amazon.com>; Atrash, Wajeeh <atrwajee@amazon.com>
> Subject: [EXTERNAL] [PATCH] net/ena: remove unused abort macro
> 
> CAUTION: This email originated from outside of the organization. Do not click
> links or open attachments unless you can confirm the sender and know the
> content is safe.
> 
> 
> 
> The function abort() should be forbidden for drivers and libs.
> It is not used in ENA, but the rule is enfocred by removing the macro.
> 
> Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> ---
>  drivers/net/ena/base/ena_plat_dpdk.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/net/ena/base/ena_plat_dpdk.h
> b/drivers/net/ena/base/ena_plat_dpdk.h
> index 21b96113c7..a41a4e4506 100644
> --- a/drivers/net/ena/base/ena_plat_dpdk.h
> +++ b/drivers/net/ena/base/ena_plat_dpdk.h
> @@ -63,8 +63,6 @@ typedef uint64_t dma_addr_t;
> 
>  #define ENA_CDESC_RING_SIZE_ALIGNMENT  (1 << 12) /* 4K */
> 
> -#define ENA_ABORT() abort()
> -
>  #define ENA_MSLEEP(x) rte_delay_us_sleep(x * 1000)  #define
> ENA_USLEEP(x) rte_delay_us_sleep(x)  #define ENA_UDELAY(x)
> rte_delay_us_block(x)
> --
> 2.46.0
[Brandes, Shai] Thanks Thomas, we verified this in our CI.
Acked-by: Shai Brandes <shaibran@amazon.com>

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

* Re: [PATCH] net/ena: remove unused abort macro
  2024-10-09 12:08 ` Brandes, Shai
@ 2024-10-09 12:25   ` Thomas Monjalon
  0 siblings, 0 replies; 3+ messages in thread
From: Thomas Monjalon @ 2024-10-09 12:25 UTC (permalink / raw)
  To: Brandes, Shai
  Cc: dev, Schmeilin, Evgeny, Beider, Ron, Bernstein, Amit, Atrash, Wajeeh

09/10/2024 14:08, Brandes, Shai:
> From: Thomas Monjalon <thomas@monjalon.net>
> > 
> > The function abort() should be forbidden for drivers and libs.
> > It is not used in ENA, but the rule is enfocred by removing the macro.
> > 
> > Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
> > ---
> >  drivers/net/ena/base/ena_plat_dpdk.h | 2 --
> >  1 file changed, 2 deletions(-)
> > 
> > diff --git a/drivers/net/ena/base/ena_plat_dpdk.h
> > b/drivers/net/ena/base/ena_plat_dpdk.h
> > index 21b96113c7..a41a4e4506 100644
> > --- a/drivers/net/ena/base/ena_plat_dpdk.h
> > +++ b/drivers/net/ena/base/ena_plat_dpdk.h
> > @@ -63,8 +63,6 @@ typedef uint64_t dma_addr_t;
> > 
> >  #define ENA_CDESC_RING_SIZE_ALIGNMENT  (1 << 12) /* 4K */
> > 
> > -#define ENA_ABORT() abort()
> > -
> >  #define ENA_MSLEEP(x) rte_delay_us_sleep(x * 1000)  #define
> > ENA_USLEEP(x) rte_delay_us_sleep(x)  #define ENA_UDELAY(x)
> > rte_delay_us_block(x)
> > --
> > 2.46.0
> [Brandes, Shai] Thanks Thomas, we verified this in our CI.
> Acked-by: Shai Brandes <shaibran@amazon.com>

Thanks for the quick reply.

Applied




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

end of thread, other threads:[~2024-10-09 12:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-10-09 11:49 [PATCH] net/ena: remove unused abort macro Thomas Monjalon
2024-10-09 12:08 ` Brandes, Shai
2024-10-09 12:25   ` Thomas Monjalon

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