/linux/drivers/net/ethernet/intel/ixgbe/ |
A 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()
|
A 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()
|
A D | ixgbe_sriov.c | 470 static int ixgbe_set_vf_lpe(struct ixgbe_adapter *adapter, u32 max_frame, u32 vf) in ixgbe_set_vf_lpe() argument 475 if (max_frame < ETH_MIN_MTU || max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE) { in ixgbe_set_vf_lpe() 476 e_err(drv, "VF max_frame %d out of range\n", max_frame); in ixgbe_set_vf_lpe() 517 (max_frame > (ETH_FRAME_LEN + ETH_FCS_LEN))) in ixgbe_set_vf_lpe() 535 e_err(drv, "VF max_frame %d out of range\n", max_frame); in ixgbe_set_vf_lpe() 545 if (max_frs < max_frame) { in ixgbe_set_vf_lpe() 546 max_frs = max_frame << IXGBE_MHADD_MFS_SHIFT; in ixgbe_set_vf_lpe() 550 e_info(hw, "VF requests change max MTU to %d\n", max_frame); in ixgbe_set_vf_lpe()
|
A D | ixgbe_main.c | 4256 int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_set_rx_buffer_len() local 4264 (max_frame < IXGBE_FCOE_JUMBO_FRAME_SIZE)) in ixgbe_set_rx_buffer_len() 4265 max_frame = IXGBE_FCOE_JUMBO_FRAME_SIZE; in ixgbe_set_rx_buffer_len() 4270 if (max_frame < (ETH_FRAME_LEN + ETH_FCS_LEN)) in ixgbe_set_rx_buffer_len() 4271 max_frame = (ETH_FRAME_LEN + ETH_FCS_LEN); in ixgbe_set_rx_buffer_len() 4274 if (max_frame != (mhadd >> IXGBE_MHADD_MFS_SHIFT)) { in ixgbe_set_rx_buffer_len() 4276 mhadd |= max_frame << IXGBE_MHADD_MFS_SHIFT; in ixgbe_set_rx_buffer_len() 4313 (max_frame > (ETH_FRAME_LEN + ETH_FCS_LEN))) in ixgbe_set_rx_buffer_len() 5050 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_configure_dcb() local 5063 max_frame = max(max_frame, IXGBE_FCOE_JUMBO_FRAME_SIZE); in ixgbe_configure_dcb() [all …]
|
/linux/drivers/target/tcm_fc/ |
A D | tfc_io.c | 111 cmd->sess->max_frame; in ft_queue_data_in() 125 fr_max_payload(fp) = cmd->sess->max_frame; in ft_queue_data_in()
|
A D | tcm_fc.h | 31 u16 max_frame; /* maximum frame size */ member
|
A D | tfc_sess.c | 391 sess->max_frame = rdata->maxframe_size; in ft_prli_locked()
|
/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
A D | pch_gbe_main.c | 2165 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in pch_gbe_change_mtu() local 2169 if (max_frame <= PCH_GBE_FRAME_SIZE_2048) in pch_gbe_change_mtu() 2171 else if (max_frame <= PCH_GBE_FRAME_SIZE_4096) in pch_gbe_change_mtu() 2173 else if (max_frame <= PCH_GBE_FRAME_SIZE_8192) in pch_gbe_change_mtu() 2187 adapter->hw.mac.max_frame_size = max_frame; in pch_gbe_change_mtu() 2192 adapter->hw.mac.max_frame_size = max_frame; in pch_gbe_change_mtu() 2197 max_frame, (u32) adapter->rx_buffer_len, netdev->mtu, in pch_gbe_change_mtu()
|
/linux/drivers/net/ethernet/intel/igbvf/ |
A D | netdev.c | 2398 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_change_mtu() local 2403 adapter->max_frame_size = max_frame; in igbvf_change_mtu() 2415 if (max_frame <= 1024) in igbvf_change_mtu() 2417 else if (max_frame <= 2048) in igbvf_change_mtu() 2427 if ((max_frame == ETH_FRAME_LEN + ETH_FCS_LEN) || in igbvf_change_mtu() 2428 (max_frame == ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)) in igbvf_change_mtu()
|
/linux/drivers/net/ethernet/intel/ixgb/ |
A 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() 1571 int max_frame = new_mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; in ixgb_change_mtu() local 1576 adapter->rx_buffer_len = max_frame + 8; /* + 8 for errata */ in ixgb_change_mtu()
|
/linux/drivers/net/ethernet/huawei/hinic/ |
A 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()
|
/linux/drivers/net/ethernet/qualcomm/emac/ |
A 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()
|
/linux/drivers/net/ethernet/intel/iavf/ |
A D | iavf_virtchnl.c | 249 int i, max_frame = IAVF_MAX_RXBUFFER; in iavf_configure_queues() local 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()
|
/linux/drivers/net/ethernet/intel/e1000/ |
A D | e1000_main.c | 3523 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in e1000_change_mtu() local 3528 if (max_frame > (ETH_FRAME_LEN + ETH_FCS_LEN)) { in e1000_change_mtu() 3541 hw->max_frame_size = max_frame; in e1000_change_mtu() 3556 if (max_frame <= E1000_RXBUFFER_2048) in e1000_change_mtu() 3567 ((max_frame == (ETH_FRAME_LEN + ETH_FCS_LEN)) || in e1000_change_mtu() 3568 (max_frame == MAXIMUM_ETHERNET_VLAN_SIZE))) in e1000_change_mtu()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice.h | 355 u16 max_frame; member
|
A D | ice_base.c | 443 rlan_ctx.rxmax = min_t(u32, vsi->max_frame, in ice_setup_rx_ctx()
|
A D | ice_lib.c | 1780 vsi->max_frame = ICE_AQ_SET_MAC_FRAME_SIZE_MAX; in ice_vsi_cfg_frame_size() 1785 vsi->max_frame = ICE_RXBUF_1536 - NET_IP_ALIGN; in ice_vsi_cfg_frame_size() 1789 vsi->max_frame = ICE_AQ_SET_MAC_FRAME_SIZE_MAX; in ice_vsi_cfg_frame_size()
|
/linux/drivers/net/ethernet/atheros/atlx/ |
A 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()
|
/linux/drivers/net/ethernet/sun/ |
A 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()
|
A D | cassini.c | 3126 int max_frame = (cp->dev->mtu + ETH_HLEN + 4 + 4 + 64) & ~63; in cas_init_pause_thresholds() local 3127 if (max_frame * 3 > cp->rx_fifo_size) { in cas_init_pause_thresholds() 3131 int off = (cp->rx_fifo_size - (max_frame * 2)); in cas_init_pause_thresholds() 3132 int on = off - max_frame; in cas_init_pause_thresholds()
|
/linux/drivers/net/ethernet/intel/ixgbevf/ |
A D | ixgbevf_main.c | 1978 unsigned int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbevf_set_rx_buffer_len() local 1990 if (max_frame <= IXGBEVF_MAX_FRAME_BUILD_SKB) in ixgbevf_set_rx_buffer_len() 4250 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbevf_change_mtu() local 4261 ret = hw->mac.ops.set_rlpml(hw, max_frame); in ixgbevf_change_mtu()
|
/linux/drivers/net/ethernet/atheros/alx/ |
A D | main.c | 1178 int max_frame = ALX_MAX_FRAME_LEN(mtu); in alx_change_mtu() local 1182 alx->rxbuf_size = max(max_frame, ALX_DEF_RXBUF_SIZE); in alx_change_mtu()
|
/linux/drivers/net/ethernet/atheros/atl1e/ |
A 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()
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e.h | 875 u16 max_frame; member
|
/linux/drivers/net/ethernet/intel/igc/ |
A D | igc_main.c | 4865 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in igc_change_mtu() local 4874 if (max_frame < (ETH_FRAME_LEN + ETH_FCS_LEN)) in igc_change_mtu() 4875 max_frame = ETH_FRAME_LEN + ETH_FCS_LEN; in igc_change_mtu() 4881 adapter->max_frame_size = max_frame; in igc_change_mtu()
|