From: Igor Romanov Date: Thu, 7 Feb 2019 16:29:20 +0000 (+0000) Subject: net/sfc/base: move a macro to Siena implementation header X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5b5c345c1e6931005b1603eb6c0ebfa1c8af1730;p=dpdk.git net/sfc/base: move a macro to Siena implementation header The macro EFX_RXQ_DC_NDESCS() is used only by Siena implementation. Since the macro is not used by any drivers, it does not require exposed libefx interface. Make the macro Siena-specific. Signed-off-by: Igor Romanov Signed-off-by: Andrew Rybchenko --- diff --git a/drivers/net/sfc/base/efx.h b/drivers/net/sfc/base/efx.h index 80a6419e38..71500d6b88 100644 --- a/drivers/net/sfc/base/efx.h +++ b/drivers/net/sfc/base/efx.h @@ -2480,7 +2480,6 @@ efx_pseudo_hdr_pkt_length_get( #define EFX_RXQ_SIZE(_ndescs) ((_ndescs) * sizeof (efx_qword_t)) #define EFX_RXQ_NBUFS(_ndescs) (EFX_RXQ_SIZE(_ndescs) / EFX_BUF_SIZE) #define EFX_RXQ_LIMIT(_ndescs) ((_ndescs) - 16) -#define EFX_RXQ_DC_NDESCS(_dcsize) (8 << _dcsize) typedef enum efx_rxq_type_e { EFX_RXQ_TYPE_DEFAULT, diff --git a/drivers/net/sfc/base/siena_impl.h b/drivers/net/sfc/base/siena_impl.h index 675e499536..caab29af0d 100644 --- a/drivers/net/sfc/base/siena_impl.h +++ b/drivers/net/sfc/base/siena_impl.h @@ -23,6 +23,7 @@ extern "C" { #define EFX_RXQ_DC_SIZE 3 /* 64 descriptors */ #endif #define EFX_TXQ_DC_NDESCS(_dcsize) (8 << (_dcsize)) +#define EFX_RXQ_DC_NDESCS(_dcsize) (8 << (_dcsize)) #define SIENA_EVQ_MAXNEVS 32768 #define SIENA_EVQ_MINNEVS 512