treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / net / ethernet / sfc / tx_common.h
blobf92f1fe3a87ff27baed559478a628fadf2c8818c
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /****************************************************************************
3 * Driver for Solarflare network controllers and boards
4 * Copyright 2018 Solarflare Communications Inc.
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation, incorporated herein by reference.
9 */
11 #ifndef EFX_TX_COMMON_H
12 #define EFX_TX_COMMON_H
14 int efx_probe_tx_queue(struct efx_tx_queue *tx_queue);
15 void efx_init_tx_queue(struct efx_tx_queue *tx_queue);
16 void efx_fini_tx_queue(struct efx_tx_queue *tx_queue);
17 void efx_remove_tx_queue(struct efx_tx_queue *tx_queue);
19 void efx_dequeue_buffer(struct efx_tx_queue *tx_queue,
20 struct efx_tx_buffer *buffer,
21 unsigned int *pkts_compl,
22 unsigned int *bytes_compl);
24 void efx_xmit_done(struct efx_tx_queue *tx_queue, unsigned int index);
26 void efx_enqueue_unwind(struct efx_tx_queue *tx_queue,
27 unsigned int insert_count);
29 struct efx_tx_buffer *efx_tx_map_chunk(struct efx_tx_queue *tx_queue,
30 dma_addr_t dma_addr, size_t len);
31 int efx_tx_map_data(struct efx_tx_queue *tx_queue, struct sk_buff *skb,
32 unsigned int segment_count);
34 unsigned int efx_tx_max_skb_descs(struct efx_nic *efx);
36 #endif