Home
last modified time | relevance | path

Searched refs:new_frm (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c486 u32 new_frm = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in hns_mac_set_mtu() local
488 if (new_frm > HNS_RCB_RING_MAX_BD_PER_PKT * buf_size) in hns_mac_set_mtu()
495 if (new_frm < (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)) in hns_mac_set_mtu()
496 new_frm = (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN); in hns_mac_set_mtu()
498 drv->config_max_frame_length(drv, new_frm); in hns_mac_set_mtu()
500 mac_cb->max_frm = new_frm; in hns_mac_set_mtu()