net/mlx5e: Move struct mlx5e_xmit_data to datapath header
Move TX datapath struct from the generic en.h to the datapath txrx.h header, where it belongs. Reviewed-by: Saeed Mahameed <saeedm@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
aebc62d336
commit
e32654f198
@ -475,12 +475,6 @@ struct mlx5e_txqsq {
|
||||
cqe_ts_to_ns ptp_cyc2time;
|
||||
} ____cacheline_aligned_in_smp;
|
||||
|
||||
struct mlx5e_xmit_data {
|
||||
dma_addr_t dma_addr;
|
||||
void *data;
|
||||
u32 len;
|
||||
};
|
||||
|
||||
struct mlx5e_xdp_info_fifo {
|
||||
struct mlx5e_xdp_info *xi;
|
||||
u32 *cc;
|
||||
@ -489,6 +483,7 @@ struct mlx5e_xdp_info_fifo {
|
||||
};
|
||||
|
||||
struct mlx5e_xdpsq;
|
||||
struct mlx5e_xmit_data;
|
||||
typedef int (*mlx5e_fp_xmit_xdp_frame_check)(struct mlx5e_xdpsq *);
|
||||
typedef bool (*mlx5e_fp_xmit_xdp_frame)(struct mlx5e_xdpsq *,
|
||||
struct mlx5e_xmit_data *,
|
||||
|
@ -77,6 +77,12 @@ static inline bool mlx5e_rx_hw_stamp(struct hwtstamp_config *config)
|
||||
}
|
||||
|
||||
/* TX */
|
||||
struct mlx5e_xmit_data {
|
||||
dma_addr_t dma_addr;
|
||||
void *data;
|
||||
u32 len;
|
||||
};
|
||||
|
||||
netdev_tx_t mlx5e_xmit(struct sk_buff *skb, struct net_device *dev);
|
||||
bool mlx5e_poll_tx_cq(struct mlx5e_cq *cq, int napi_budget);
|
||||
void mlx5e_free_txqsq_descs(struct mlx5e_txqsq *sq);
|
||||
|
Loading…
x
Reference in New Issue
Block a user