Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c516 u32 new_frm = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in hns_mac_set_mtu() local
518 if (new_frm > HNS_RCB_RING_MAX_BD_PER_PKT * buf_size) in hns_mac_set_mtu()
525 if (new_frm < (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN)) in hns_mac_set_mtu()
526 new_frm = (ETH_FRAME_LEN + ETH_FCS_LEN + VLAN_HLEN); in hns_mac_set_mtu()
528 drv->config_max_frame_length(drv, new_frm); in hns_mac_set_mtu()
530 mac_cb->max_frm = new_frm; in hns_mac_set_mtu()