sfxge(4): move definition of the SW events to sfxge.h
Tx flush done event is defined and Rx-specific header is not a good place for it. Sponsored by: Solarflare Communications, Inc. MFC after: 2 days
This commit is contained in:
parent
de1d269583
commit
9885e222ea
@ -113,6 +113,26 @@
|
||||
|
||||
#define SFXGE_ETHERTYPE_LOOPBACK 0x9000 /* Xerox loopback */
|
||||
|
||||
|
||||
#define SFXGE_MAGIC_RESERVED 0x8000
|
||||
|
||||
#define SFXGE_MAGIC_DMAQ_LABEL_WIDTH 6
|
||||
#define SFXGE_MAGIC_DMAQ_LABEL_MASK \
|
||||
((1 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH) - 1)
|
||||
|
||||
#define SFXGE_MAGIC_RX_QFLUSH_DONE \
|
||||
(SFXGE_MAGIC_RESERVED | (1 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
|
||||
|
||||
#define SFXGE_MAGIC_RX_QFLUSH_FAILED \
|
||||
(SFXGE_MAGIC_RESERVED | (2 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
|
||||
|
||||
#define SFXGE_MAGIC_RX_QREFILL \
|
||||
(SFXGE_MAGIC_RESERVED | (3 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
|
||||
|
||||
#define SFXGE_MAGIC_TX_QFLUSH_DONE \
|
||||
(SFXGE_MAGIC_RESERVED | (4 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
|
||||
|
||||
|
||||
enum sfxge_evq_state {
|
||||
SFXGE_EVQ_UNINITIALIZED = 0,
|
||||
SFXGE_EVQ_INITIALIZED,
|
||||
|
@ -43,24 +43,6 @@
|
||||
#define SFXGE_LRO 1
|
||||
#endif
|
||||
|
||||
#define SFXGE_MAGIC_RESERVED 0x8000
|
||||
|
||||
#define SFXGE_MAGIC_DMAQ_LABEL_WIDTH 6
|
||||
#define SFXGE_MAGIC_DMAQ_LABEL_MASK \
|
||||
((1 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH) - 1)
|
||||
|
||||
#define SFXGE_MAGIC_RX_QFLUSH_DONE \
|
||||
(SFXGE_MAGIC_RESERVED | (1 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
|
||||
|
||||
#define SFXGE_MAGIC_RX_QFLUSH_FAILED \
|
||||
(SFXGE_MAGIC_RESERVED | (2 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
|
||||
|
||||
#define SFXGE_MAGIC_RX_QREFILL \
|
||||
(SFXGE_MAGIC_RESERVED | (3 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
|
||||
|
||||
#define SFXGE_MAGIC_TX_QFLUSH_DONE \
|
||||
(SFXGE_MAGIC_RESERVED | (4 << SFXGE_MAGIC_DMAQ_LABEL_WIDTH))
|
||||
|
||||
#define SFXGE_RX_SCALE_MAX EFX_MAXRSS
|
||||
|
||||
struct sfxge_rx_sw_desc {
|
||||
|
Loading…
x
Reference in New Issue
Block a user