/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_dcb.c | 22 __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()
|
D | ixgbe_dcb_nl.c | 319 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()
|
D | ixgbe_sriov.c | 471 static int ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 max_frame, u32 vf) in ixgbe_set_vf_lpe() argument 476 if (max_frame < ETH_MIN_MTU || max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE) { in ixgbe_set_vf_lpe() 477 e_err(drv, "VF max_frame %d out of range\n", max_frame); in ixgbe_set_vf_lpe() 518 (max_frame > (ETH_FRAME_LEN + ETH_FCS_LEN))) in ixgbe_set_vf_lpe() 536 e_err(drv, "VF max_frame %d out of range\n", max_frame); in ixgbe_set_vf_lpe() 546 if (max_frs < max_frame) { in ixgbe_set_vf_lpe() 547 max_frs = max_frame << IXGBE_MHADD_MFS_SHIFT; in ixgbe_set_vf_lpe() 551 e_info(hw, "VF requests change max MTU to %d\n", max_frame); in ixgbe_set_vf_lpe()
|
D | ixgbe_main.c | 4257 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/ |
D | tfc_io.c | 112 cmd->sess->max_frame; in ft_queue_data_in() 126 fr_max_payload(fp) = cmd->sess->max_frame; in ft_queue_data_in()
|
D | tcm_fc.h | 31 u16 max_frame; /* maximum frame size */ member
|
D | tfc_sess.c | 391 sess->max_frame = rdata->maxframe_size; in ft_prli_locked()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 2181 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in pch_gbe_change_mtu() local 2185 if (max_frame <= PCH_GBE_FRAME_SIZE_2048) in pch_gbe_change_mtu() 2187 else if (max_frame <= PCH_GBE_FRAME_SIZE_4096) in pch_gbe_change_mtu() 2189 else if (max_frame <= PCH_GBE_FRAME_SIZE_8192) in pch_gbe_change_mtu() 2203 adapter->hw.mac.max_frame_size = max_frame; in pch_gbe_change_mtu() 2208 adapter->hw.mac.max_frame_size = max_frame; in pch_gbe_change_mtu() 2213 max_frame, (u32) adapter->rx_buffer_len, netdev->mtu, in pch_gbe_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igbvf/ |
D | netdev.c | 2411 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_change_mtu() local 2416 adapter->max_frame_size = max_frame; in igbvf_change_mtu() 2428 if (max_frame <= 1024) in igbvf_change_mtu() 2430 else if (max_frame <= 2048) in igbvf_change_mtu() 2440 if ((max_frame == ETH_FRAME_LEN + ETH_FCS_LEN) || in igbvf_change_mtu() 2441 (max_frame == ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)) in igbvf_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_main.c | 176 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/intel/iavf/ |
D | iavf_virtchnl.c | 246 int i, max_frame = IAVF_MAX_RXBUFFER; in iavf_configure_queues() local 264 max_frame = IAVF_RXBUFFER_1536 - NET_IP_ALIGN; in iavf_configure_queues() 281 vqpi->rxq.max_pkt_size = max_frame; in iavf_configure_queues()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_port.c | 156 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/ |
D | emac-mac.c | 444 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/ |
D | ice.h | 292 u16 max_frame; member
|
D | ice_base.c | 382 rlan_ctx.rxmax = min_t(u32, vsi->max_frame, in ice_setup_rx_ctx()
|
D | ice_lib.c | 1634 vsi->max_frame = ICE_AQ_SET_MAC_FRAME_SIZE_MAX; in ice_vsi_cfg_frame_size() 1639 vsi->max_frame = ICE_RXBUF_1536 - NET_IP_ALIGN; in ice_vsi_cfg_frame_size() 1643 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/ |
D | e1000_main.c | 3524 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/ |
D | atl1.c | 2683 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/ |
D | sungem.c | 1905 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()
|
D | cassini.c | 3125 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/ |
D | ixgbevf_main.c | 1986 unsigned int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbevf_set_rx_buffer_len() local 1998 if (max_frame <= IXGBEVF_MAX_FRAME_BUILD_SKB) in ixgbevf_set_rx_buffer_len() 4278 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbevf_change_mtu() local 4289 ret = hw->mac.ops.set_rlpml(hw, max_frame); in ixgbevf_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/alx/ |
D | main.c | 1173 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/ |
D | i40e.h | 781 u16 max_frame; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/igc/ |
D | igc_main.c | 3881 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in igc_change_mtu() local 3885 if (max_frame < (ETH_FRAME_LEN + ETH_FCS_LEN)) in igc_change_mtu() 3886 max_frame = ETH_FRAME_LEN + ETH_FCS_LEN; in igc_change_mtu() 3892 adapter->max_frame_size = max_frame; in igc_change_mtu()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 425 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()
|