Currently, XSK control path in ice driver calls directly ice_vsi_cfg_txq() whereas we have ice_vsi_cfg_single_txq() for that purpose. Use the latter from XSK side and make ice_vsi_cfg_txq() static. ice_vsi_cfg_txq() resides in ice_base.c and is rather big, so to reduce the code churn let us move the callers of it from ice_lib.c to ice_base.c. This change puts ice_qp_ena() on nice diet due to the checks and operations that ice_vsi_cfg_single_{r,t}xq() do internally. add/remove: 0/0 grow/shrink: 0/1 up/down: 0/-182 (-182) Function old new delta ice_xsk_pool_setup 2165 1983 -182 Total: Before=472597, After=472415, chg -0.04% Signed-off-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Acked-by: Magnus Karlsson <magnus.karlsson@intel.com> Reviewed-by: Simon Horman <horms@kernel.org> Tested-by: Chandan Kumar Rout <chandanx.rout@intel.com> (A Contingent Worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
35 lines
1.4 KiB
C
35 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/* Copyright (c) 2019, Intel Corporation. */
|
|
|
|
#ifndef _ICE_BASE_H_
|
|
#define _ICE_BASE_H_
|
|
|
|
#include "ice.h"
|
|
|
|
int ice_vsi_cfg_single_rxq(struct ice_vsi *vsi, u16 q_idx);
|
|
int ice_vsi_cfg_rxqs(struct ice_vsi *vsi);
|
|
int __ice_vsi_get_qs(struct ice_qs_cfg *qs_cfg);
|
|
int
|
|
ice_vsi_ctrl_one_rx_ring(struct ice_vsi *vsi, bool ena, u16 rxq_idx, bool wait);
|
|
int ice_vsi_wait_one_rx_ring(struct ice_vsi *vsi, bool ena, u16 rxq_idx);
|
|
int ice_vsi_alloc_q_vectors(struct ice_vsi *vsi);
|
|
void ice_vsi_map_rings_to_vectors(struct ice_vsi *vsi);
|
|
void ice_vsi_free_q_vectors(struct ice_vsi *vsi);
|
|
int ice_vsi_cfg_single_txq(struct ice_vsi *vsi, struct ice_tx_ring **tx_rings,
|
|
u16 q_idx);
|
|
int ice_vsi_cfg_lan_txqs(struct ice_vsi *vsi);
|
|
int ice_vsi_cfg_xdp_txqs(struct ice_vsi *vsi);
|
|
void ice_cfg_itr(struct ice_hw *hw, struct ice_q_vector *q_vector);
|
|
void
|
|
ice_cfg_txq_interrupt(struct ice_vsi *vsi, u16 txq, u16 msix_idx, u16 itr_idx);
|
|
void
|
|
ice_cfg_rxq_interrupt(struct ice_vsi *vsi, u16 rxq, u16 msix_idx, u16 itr_idx);
|
|
void ice_trigger_sw_intr(struct ice_hw *hw, const struct ice_q_vector *q_vector);
|
|
int
|
|
ice_vsi_stop_tx_ring(struct ice_vsi *vsi, enum ice_disq_rst_src rst_src,
|
|
u16 rel_vmvf_num, struct ice_tx_ring *ring,
|
|
struct ice_txq_meta *txq_meta);
|
|
void
|
|
ice_fill_txq_meta(const struct ice_vsi *vsi, struct ice_tx_ring *ring,
|
|
struct ice_txq_meta *txq_meta);
|
|
#endif /* _ICE_BASE_H_ */
|