Skip to content

Commit ac532f4

Browse files
Yue Haibinganguy11
authored andcommitted
ice: Cleanup unused declarations
Since commit fff292b ("ice: add VF representors one by one") ice_eswitch_configure() is not used anymore. Commit 1b8f15b ("ice: refactor filter functions") removed ice_vsi_cfg_mac_fltr() but leave declaration. Commit a24b4c6 ("ice: xsk: Do not convert to buff to frame for XDP_TX") leave ice_xmit_xdp_buff() declaration. Commit 7cab44f ("ice: Introduce ETH56G PHY model for E825C products") declared ice_phy_cfg_{rx,tx}_offset_eth56g(), commit a1ffafb ("ice: Support configuring the device to Double VLAN Mode") declared ice_pkg_buf_get_free_space(), and commit 8a3a565 ("ice: add admin commands to access cgu configuration") declared ice_is_pca9575_present(), but all these never be implemented. Signed-off-by: Yue Haibing <yuehaibing@huawei.com> Reviewed-by: Maciej Fijalkowski <maciej.fijalkowski@intel.com> Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
1 parent 5f4493f commit ac532f4

File tree

5 files changed

+0
-14
lines changed

5 files changed

+0
-14
lines changed

drivers/net/ethernet/intel/ice/ice_eswitch.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,6 @@ ice_eswitch_set_target_vsi(struct sk_buff *skb,
6060
static inline void
6161
ice_eswitch_update_repr(unsigned long *repr_id, struct ice_vsi *vsi) { }
6262

63-
static inline int ice_eswitch_configure(struct ice_pf *pf)
64-
{
65-
return 0;
66-
}
67-
6863
static inline int ice_eswitch_mode_get(struct devlink *devlink, u16 *mode)
6964
{
7065
return DEVLINK_ESWITCH_MODE_LEGACY;

drivers/net/ethernet/intel/ice/ice_flex_pipe.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@ int
2323
ice_get_sw_fv_list(struct ice_hw *hw, struct ice_prot_lkup_ext *lkups,
2424
unsigned long *bm, struct list_head *fv_list);
2525
int
26-
ice_pkg_buf_unreserve_section(struct ice_buf_build *bld, u16 count);
27-
u16 ice_pkg_buf_get_free_space(struct ice_buf_build *bld);
28-
int
2926
ice_aq_upload_section(struct ice_hw *hw, struct ice_buf_hdr *pkg_buf,
3027
u16 buf_size, struct ice_sq_cd *cd);
3128
bool

drivers/net/ethernet/intel/ice/ice_lib.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ void ice_write_intrl(struct ice_q_vector *q_vector, u8 intrl);
8888
void ice_write_itr(struct ice_ring_container *rc, u16 itr);
8989
void ice_set_q_vector_intrl(struct ice_q_vector *q_vector);
9090

91-
int ice_vsi_cfg_mac_fltr(struct ice_vsi *vsi, const u8 *macaddr, bool set);
92-
9391
bool ice_is_safe_mode(struct ice_pf *pf);
9492
bool ice_is_rdma_ena(struct ice_pf *pf);
9593
bool ice_is_dflt_vsi_in_use(struct ice_port_info *pi);

drivers/net/ethernet/intel/ice/ice_ptp_hw.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ int ice_phy_cfg_intr_e82x(struct ice_hw *hw, u8 quad, bool ena, u8 threshold);
405405
int ice_read_sma_ctrl(struct ice_hw *hw, u8 *data);
406406
int ice_write_sma_ctrl(struct ice_hw *hw, u8 data);
407407
int ice_read_pca9575_reg(struct ice_hw *hw, u8 offset, u8 *data);
408-
bool ice_is_pca9575_present(struct ice_hw *hw);
409408
int ice_ptp_read_sdp_ac(struct ice_hw *hw, __le16 *entries, uint *num_entries);
410409
enum dpll_pin_type ice_cgu_get_pin_type(struct ice_hw *hw, u8 pin, bool input);
411410
struct dpll_pin_frequency *
@@ -423,8 +422,6 @@ int ice_cgu_get_output_pin_state_caps(struct ice_hw *hw, u8 pin_id,
423422
int ice_ptp_read_tx_hwtstamp_status_eth56g(struct ice_hw *hw, u32 *ts_status);
424423
int ice_stop_phy_timer_eth56g(struct ice_hw *hw, u8 port, bool soft_reset);
425424
int ice_start_phy_timer_eth56g(struct ice_hw *hw, u8 port);
426-
int ice_phy_cfg_tx_offset_eth56g(struct ice_hw *hw, u8 port);
427-
int ice_phy_cfg_rx_offset_eth56g(struct ice_hw *hw, u8 port);
428425
int ice_phy_cfg_intr_eth56g(struct ice_hw *hw, u8 port, bool ena, u8 threshold);
429426
int ice_phy_cfg_ptp_1step_eth56g(struct ice_hw *hw, u8 port);
430427

drivers/net/ethernet/intel/ice/ice_txrx_lib.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ static inline u32 ice_set_rs_bit(const struct ice_tx_ring *xdp_ring)
154154
}
155155

156156
void ice_finalize_xdp_rx(struct ice_tx_ring *xdp_ring, unsigned int xdp_res, u32 first_idx);
157-
int ice_xmit_xdp_buff(struct xdp_buff *xdp, struct ice_tx_ring *xdp_ring);
158157
int __ice_xmit_xdp_ring(struct xdp_buff *xdp, struct ice_tx_ring *xdp_ring,
159158
bool frame);
160159
void ice_release_rx_desc(struct ice_rx_ring *rx_ring, u16 val);

0 commit comments

Comments
 (0)