sfc: add new headers in preparation for code split
New headers contain prototypes of functions that will be common between ef10 and upcoming driver. Removed static modifier from the affected functions. Some function prototypes were removed from existing headers. Signed-off-by: Alexandru-Mihai Maftei <amaftei@solarflare.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
b9ae512736
commit
e1253f3910
@@ -138,6 +138,8 @@ struct efx_special_buffer {
|
||||
* freed when descriptor completes
|
||||
* @xdpf: When @flags & %EFX_TX_BUF_XDP, the XDP frame information; its @data
|
||||
* member is the associated buffer to drop a page reference on.
|
||||
* @option: When @flags & %EFX_TX_BUF_OPTION, an EF10-specific option
|
||||
* descriptor.
|
||||
* @dma_addr: DMA address of the fragment.
|
||||
* @flags: Flags for allocation and DMA mapping type
|
||||
* @len: Length of this fragment.
|
||||
@@ -152,7 +154,7 @@ struct efx_tx_buffer {
|
||||
struct xdp_frame *xdpf;
|
||||
};
|
||||
union {
|
||||
efx_qword_t option;
|
||||
efx_qword_t option; /* EF10 */
|
||||
dma_addr_t dma_addr;
|
||||
};
|
||||
unsigned short flags;
|
||||
@@ -1610,6 +1612,15 @@ static inline struct efx_rx_buffer *efx_rx_buffer(struct efx_rx_queue *rx_queue,
|
||||
return &rx_queue->buffer[index];
|
||||
}
|
||||
|
||||
static inline struct efx_rx_buffer *
|
||||
efx_rx_buf_next(struct efx_rx_queue *rx_queue, struct efx_rx_buffer *rx_buf)
|
||||
{
|
||||
if (unlikely(rx_buf == efx_rx_buffer(rx_queue, rx_queue->ptr_mask)))
|
||||
return efx_rx_buffer(rx_queue, 0);
|
||||
else
|
||||
return rx_buf + 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* EFX_MAX_FRAME_LEN - calculate maximum frame length
|
||||
*
|
||||
|
Reference in New Issue
Block a user