net: hns: remove unused set_rx_ignore_pause_frames()
Since set_rx_ignore_pause_frames() in struct mac_driver is unused, so remove it. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
72b06363f1
commit
5bc7284924
@ -130,14 +130,6 @@ static void hns_gmac_get_tx_auto_pause_frames(void *mac_drv, u16 *newval)
|
||||
GMAC_FC_TX_TIMER_M, GMAC_FC_TX_TIMER_S);
|
||||
}
|
||||
|
||||
static void hns_gmac_set_rx_auto_pause_frames(void *mac_drv, u32 newval)
|
||||
{
|
||||
struct mac_driver *drv = (struct mac_driver *)mac_drv;
|
||||
|
||||
dsaf_set_dev_bit(drv, GMAC_PAUSE_EN_REG,
|
||||
GMAC_PAUSE_EN_RX_FDFC_B, !!newval);
|
||||
}
|
||||
|
||||
static void hns_gmac_config_max_frame_length(void *mac_drv, u16 newval)
|
||||
{
|
||||
struct mac_driver *drv = (struct mac_driver *)mac_drv;
|
||||
@ -739,7 +731,6 @@ void *hns_gmac_config(struct hns_mac_cb *mac_cb, struct mac_params *mac_param)
|
||||
mac_drv->config_loopback = hns_gmac_config_loopback;
|
||||
mac_drv->config_pad_and_crc = hns_gmac_config_pad_and_crc;
|
||||
mac_drv->config_half_duplex = hns_gmac_set_duplex_type;
|
||||
mac_drv->set_rx_ignore_pause_frames = hns_gmac_set_rx_auto_pause_frames;
|
||||
mac_drv->get_info = hns_gmac_get_info;
|
||||
mac_drv->autoneg_stat = hns_gmac_autoneg_stat;
|
||||
mac_drv->get_pause_enable = hns_gmac_get_pausefrm_cfg;
|
||||
|
@ -368,8 +368,6 @@ struct mac_driver {
|
||||
void (*config_half_duplex)(void *mac_drv, u8 newval);
|
||||
/*config tx pause time,if pause_time is zero,disable tx pause enable*/
|
||||
void (*set_tx_auto_pause_frames)(void *mac_drv, u16 pause_time);
|
||||
/*config rx pause enable*/
|
||||
void (*set_rx_ignore_pause_frames)(void *mac_drv, u32 enable);
|
||||
/* config rx mode for promiscuous*/
|
||||
void (*set_promiscuous)(void *mac_drv, u8 enable);
|
||||
void (*mac_pausefrm_cfg)(void *mac_drv, u32 rx_en, u32 tx_en);
|
||||
|
@ -266,19 +266,6 @@ static void hns_xgmac_set_pausefrm_mac_addr(void *mac_drv, char *mac_addr)
|
||||
dsaf_write_dev(drv, XGMAC_MAC_PAUSE_LOCAL_MAC_H_REG, high_val);
|
||||
}
|
||||
|
||||
/**
|
||||
*hns_xgmac_set_rx_ignore_pause_frames - set rx pause param about xgmac
|
||||
*@mac_drv: mac driver
|
||||
*@enable:enable rx pause param
|
||||
*/
|
||||
static void hns_xgmac_set_rx_ignore_pause_frames(void *mac_drv, u32 enable)
|
||||
{
|
||||
struct mac_driver *drv = (struct mac_driver *)mac_drv;
|
||||
|
||||
dsaf_set_dev_bit(drv, XGMAC_MAC_PAUSE_CTRL_REG,
|
||||
XGMAC_PAUSE_CTL_RX_B, !!enable);
|
||||
}
|
||||
|
||||
/**
|
||||
*hns_xgmac_set_tx_auto_pause_frames - set tx pause param about xgmac
|
||||
*@mac_drv: mac driver
|
||||
@ -813,8 +800,6 @@ void *hns_xgmac_config(struct hns_mac_cb *mac_cb, struct mac_params *mac_param)
|
||||
mac_drv->config_loopback = NULL;
|
||||
mac_drv->config_pad_and_crc = hns_xgmac_config_pad_and_crc;
|
||||
mac_drv->config_half_duplex = NULL;
|
||||
mac_drv->set_rx_ignore_pause_frames =
|
||||
hns_xgmac_set_rx_ignore_pause_frames;
|
||||
mac_drv->mac_free = hns_xgmac_free;
|
||||
mac_drv->adjust_link = NULL;
|
||||
mac_drv->set_tx_auto_pause_frames = hns_xgmac_set_tx_auto_pause_frames;
|
||||
|
Loading…
x
Reference in New Issue
Block a user