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 <igor.romanov@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <arybchenko@solarflare.com>
This commit is contained in:
Igor Romanov 2019-02-07 16:29:20 +00:00 committed by Ferruh Yigit
parent 802354e5a6
commit 5b5c345c1e
2 changed files with 1 additions and 1 deletions

View File

@ -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,

View File

@ -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