Home
last modified time | relevance | path

Searched refs:max_frame (Results 1 – 25 of 30) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_dcb.c22 __u16 *max, int max_frame) in ixgbe_ieee_credits() argument
28 min_credit = ((max_frame / 2) + DCB_CREDIT_QUANTUM - 1) / in ixgbe_ieee_credits()
64 int max_frame, u8 direction) in ixgbe_dcb_calculate_tc_credits() argument
80 min_credit = ((max_frame / 2) + DCB_CREDIT_QUANTUM - 1) / in ixgbe_dcb_calculate_tc_credits()
303 s32 ixgbe_dcb_hw_ets(struct ixgbe_hw *hw, struct ieee_ets *ets, int max_frame) in ixgbe_dcb_hw_ets() argument
331 ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame); in ixgbe_dcb_hw_ets()
Dixgbe_dcb_nl.c319 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_dcbnl_set_all() local
323 max_frame = max(max_frame, IXGBE_FCOE_JUMBO_FRAME_SIZE); in ixgbe_dcbnl_set_all()
326 ixgbe_dcb_calculate_tc_credits(hw, dcb_cfg, max_frame, in ixgbe_dcbnl_set_all()
328 ixgbe_dcb_calculate_tc_credits(hw, dcb_cfg, max_frame, in ixgbe_dcbnl_set_all()
511 int max_frame = dev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_dcbnl_ieee_setets() local
557 return ixgbe_dcb_hw_ets(&adapter->hw, ets, max_frame); in ixgbe_dcbnl_ieee_setets()
Dixgbe_sriov.c474 static int ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 max_frame, u32 vf) in ixgbe_set_vf_lpe() argument
479 if (max_frame < ETH_MIN_MTU || max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE) { in ixgbe_set_vf_lpe()
480 e_err(drv, "VF max_frame %d out of range\n", max_frame); in ixgbe_set_vf_lpe()
521 (max_frame > (ETH_FRAME_LEN + ETH_FCS_LEN))) in ixgbe_set_vf_lpe()
539 e_err(drv, "VF max_frame %d out of range\n", max_frame); in ixgbe_set_vf_lpe()
549 if (max_frs < max_frame) { in ixgbe_set_vf_lpe()
550 max_frs = max_frame << IXGBE_MHADD_MFS_SHIFT; in ixgbe_set_vf_lpe()
554 e_info(hw, "VF requests change max MTU to %d\n", max_frame); in ixgbe_set_vf_lpe()
Dixgbe_main.c4257 int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_set_rx_buffer_len() local
4265 (max_frame < IXGBE_FCOE_JUMBO_FRAME_SIZE)) in ixgbe_set_rx_buffer_len()
4266 max_frame = IXGBE_FCOE_JUMBO_FRAME_SIZE; in ixgbe_set_rx_buffer_len()
4271 if (max_frame < (ETH_FRAME_LEN + ETH_FCS_LEN)) in ixgbe_set_rx_buffer_len()
4272 max_frame = (ETH_FRAME_LEN + ETH_FCS_LEN); in ixgbe_set_rx_buffer_len()
4275 if (max_frame != (mhadd >> IXGBE_MHADD_MFS_SHIFT)) { in ixgbe_set_rx_buffer_len()
4277 mhadd |= max_frame << IXGBE_MHADD_MFS_SHIFT; in ixgbe_set_rx_buffer_len()
4314 (max_frame > (ETH_FRAME_LEN + ETH_FCS_LEN))) in ixgbe_set_rx_buffer_len()
5051 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_configure_dcb() local
5064 max_frame = max(max_frame, IXGBE_FCOE_JUMBO_FRAME_SIZE); in ixgbe_configure_dcb()
[all …]
/kernel/linux/linux-5.10/drivers/target/tcm_fc/
Dtfc_io.c112 cmd->sess->max_frame; in ft_queue_data_in()
126 fr_max_payload(fp) = cmd->sess->max_frame; in ft_queue_data_in()
Dtcm_fc.h31 u16 max_frame; /* maximum frame size */ member
Dtfc_sess.c391 sess->max_frame = rdata->maxframe_size; in ft_prli_locked()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/iavf/
Diavf_virtchnl.c244 int i, max_frame = adapter->vf_res->max_mtu; in iavf_configure_queues() local
249 if (max_frame > IAVF_MAX_RXBUFFER || !max_frame) in iavf_configure_queues()
250 max_frame = IAVF_MAX_RXBUFFER; in iavf_configure_queues()
267 max_frame = IAVF_RXBUFFER_1536 - NET_IP_ALIGN; in iavf_configure_queues()
284 vqpi->rxq.max_pkt_size = max_frame; in iavf_configure_queues()
/kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_main.c2182 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in pch_gbe_change_mtu() local
2186 if (max_frame <= PCH_GBE_FRAME_SIZE_2048) in pch_gbe_change_mtu()
2188 else if (max_frame <= PCH_GBE_FRAME_SIZE_4096) in pch_gbe_change_mtu()
2190 else if (max_frame <= PCH_GBE_FRAME_SIZE_8192) in pch_gbe_change_mtu()
2204 adapter->hw.mac.max_frame_size = max_frame; in pch_gbe_change_mtu()
2209 adapter->hw.mac.max_frame_size = max_frame; in pch_gbe_change_mtu()
2214 max_frame, (u32) adapter->rx_buffer_len, netdev->mtu, in pch_gbe_change_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igbvf/
Dnetdev.c2415 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_change_mtu() local
2420 adapter->max_frame_size = max_frame; in igbvf_change_mtu()
2432 if (max_frame <= 1024) in igbvf_change_mtu()
2434 else if (max_frame <= 2048) in igbvf_change_mtu()
2444 if ((max_frame == ETH_FRAME_LEN + ETH_FCS_LEN) || in igbvf_change_mtu()
2445 (max_frame == ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)) in igbvf_change_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgb/
Dixgb_main.c176 int max_frame = netdev->mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; in ixgb_up() local
214 if ((hw->max_frame_size != max_frame) || in ixgb_up()
218 hw->max_frame_size = max_frame; in ixgb_up()
1569 int max_frame = new_mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; in ixgb_change_mtu() local
1574 adapter->rx_buffer_len = max_frame + 8; /* + 8 for errata */ in ixgb_change_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_port.c156 int err, max_frame; in hinic_port_set_mtu() local
163 max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in hinic_port_set_mtu()
164 if (max_frame > HINIC_MAX_JUMBO_FRAME_SIZE) { in hinic_port_set_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/emac/
Demac-mac.c444 unsigned int max_frame; in emac_mac_config() local
449 max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in emac_mac_config()
451 ALIGN(max_frame, 8) : EMAC_DEF_RX_BUF_SIZE; in emac_mac_config()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice.h292 u16 max_frame; member
Dice_base.c382 rlan_ctx.rxmax = min_t(u32, vsi->max_frame, in ice_setup_rx_ctx()
Dice_lib.c1635 vsi->max_frame = ICE_AQ_SET_MAC_FRAME_SIZE_MAX; in ice_vsi_cfg_frame_size()
1640 vsi->max_frame = ICE_RXBUF_1536 - NET_IP_ALIGN; in ice_vsi_cfg_frame_size()
1644 vsi->max_frame = ICE_AQ_SET_MAC_FRAME_SIZE_MAX; in ice_vsi_cfg_frame_size()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/e1000/
De1000_main.c3524 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in e1000_change_mtu() local
3529 if (max_frame > (ETH_FRAME_LEN + ETH_FCS_LEN)) { in e1000_change_mtu()
3542 hw->max_frame_size = max_frame; in e1000_change_mtu()
3557 if (max_frame <= E1000_RXBUFFER_2048) in e1000_change_mtu()
3568 ((max_frame == (ETH_FRAME_LEN + ETH_FCS_LEN)) || in e1000_change_mtu()
3569 (max_frame == MAXIMUM_ETHERNET_VLAN_SIZE))) in e1000_change_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atlx/
Datl1.c2683 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1_change_mtu() local
2685 adapter->hw.max_frame_size = max_frame; in atl1_change_mtu()
2686 adapter->hw.tx_jumbo_task_th = (max_frame + 7) >> 3; in atl1_change_mtu()
2687 adapter->rx_buffer_len = (max_frame + 7) & ~7; in atl1_change_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dsungem.c1905 int max_frame = (gp->rx_buf_sz + 4 + 64) & ~63; in gem_init_pause_thresholds() local
1906 int off = (gp->rx_fifo_sz - (max_frame * 2)); in gem_init_pause_thresholds()
1907 int on = off - max_frame; in gem_init_pause_thresholds()
Dcassini.c3125 int max_frame = (cp->dev->mtu + ETH_HLEN + 4 + 4 + 64) & ~63; in cas_init_pause_thresholds() local
3126 if (max_frame * 3 > cp->rx_fifo_size) { in cas_init_pause_thresholds()
3130 int off = (cp->rx_fifo_size - (max_frame * 2)); in cas_init_pause_thresholds()
3131 int on = off - max_frame; in cas_init_pause_thresholds()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbevf/
Dixgbevf_main.c1986 unsigned int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbevf_set_rx_buffer_len() local
1996 if (max_frame > IXGBEVF_MAX_FRAME_BUILD_SKB) in ixgbevf_set_rx_buffer_len()
4279 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbevf_change_mtu() local
4290 ret = hw->mac.ops.set_rlpml(hw, max_frame); in ixgbevf_change_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/alx/
Dmain.c1173 int max_frame = ALX_MAX_FRAME_LEN(mtu); in alx_change_mtu() local
1177 alx->rxbuf_size = max(max_frame, ALX_DEF_RXBUF_SIZE); in alx_change_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/
Di40e.h782 u16 max_frame; member
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1e/
Datl1e_main.c425 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1e_change_mtu() local
433 adapter->hw.rx_jumbo_th = (max_frame + 7) >> 3; in atl1e_change_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/
Digc_main.c3988 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in igc_change_mtu() local
3992 if (max_frame < (ETH_FRAME_LEN + ETH_FCS_LEN)) in igc_change_mtu()
3993 max_frame = ETH_FRAME_LEN + ETH_FCS_LEN; in igc_change_mtu()
3999 adapter->max_frame_size = max_frame; in igc_change_mtu()

12