/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_dcb.c | 44 __u16 *max, int max_frame) in ixgbe_ieee_credits() argument 50 min_credit = ((max_frame / 2) + DCB_CREDIT_QUANTUM - 1) / in ixgbe_ieee_credits() 84 int max_frame, u8 direction) in ixgbe_dcb_calculate_tc_credits() argument 103 min_credit = ((max_frame / 2) + DCB_CREDIT_QUANTUM - 1) / in ixgbe_dcb_calculate_tc_credits() 323 s32 ixgbe_dcb_hw_ets(struct ixgbe_hw *hw, struct ieee_ets *ets, int max_frame) in ixgbe_dcb_hw_ets() argument 351 ixgbe_ieee_credits(ets->tc_tx_bw, refill, max, max_frame); in ixgbe_dcb_hw_ets()
|
D | ixgbe_dcb_nl.c | 346 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_dcbnl_set_all() local 350 max_frame = max(max_frame, IXGBE_FCOE_JUMBO_FRAME_SIZE); in ixgbe_dcbnl_set_all() 353 ixgbe_dcb_calculate_tc_credits(hw, dcb_cfg, max_frame, in ixgbe_dcbnl_set_all() 355 ixgbe_dcb_calculate_tc_credits(hw, dcb_cfg, max_frame, in ixgbe_dcbnl_set_all() 539 int max_frame = dev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_dcbnl_ieee_setets() local 582 err = ixgbe_dcb_hw_ets(&adapter->hw, ets, max_frame); in ixgbe_dcbnl_ieee_setets()
|
D | ixgbe_sriov.c | 448 int max_frame = msgbuf[1]; in ixgbe_set_vf_lpe() local 486 (max_frame > (ETH_FRAME_LEN + ETH_FCS_LEN))) in ixgbe_set_vf_lpe() 504 e_err(drv, "VF max_frame %d out of range\n", max_frame); in ixgbe_set_vf_lpe() 510 if (max_frame > IXGBE_MAX_JUMBO_FRAME_SIZE) { in ixgbe_set_vf_lpe() 511 e_err(drv, "VF max_frame %d out of range\n", max_frame); in ixgbe_set_vf_lpe() 520 if (max_frs < max_frame) { in ixgbe_set_vf_lpe() 521 max_frs = max_frame << IXGBE_MHADD_MFS_SHIFT; in ixgbe_set_vf_lpe() 525 e_info(hw, "VF requests change max MTU to %d\n", max_frame); in ixgbe_set_vf_lpe()
|
D | ixgbe_main.c | 3362 int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_set_rx_buffer_len() local 3370 (max_frame < IXGBE_FCOE_JUMBO_FRAME_SIZE)) in ixgbe_set_rx_buffer_len() 3371 max_frame = IXGBE_FCOE_JUMBO_FRAME_SIZE; in ixgbe_set_rx_buffer_len() 3376 if (max_frame < (ETH_FRAME_LEN + ETH_FCS_LEN)) in ixgbe_set_rx_buffer_len() 3377 max_frame = (ETH_FRAME_LEN + ETH_FCS_LEN); in ixgbe_set_rx_buffer_len() 3380 if (max_frame != (mhadd >> IXGBE_MHADD_MFS_SHIFT)) { in ixgbe_set_rx_buffer_len() 3382 mhadd |= max_frame << IXGBE_MHADD_MFS_SHIFT; in ixgbe_set_rx_buffer_len() 3774 int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbe_configure_dcb() local 3787 max_frame = max(max_frame, IXGBE_FCOE_JUMBO_FRAME_SIZE); in ixgbe_configure_dcb() 3792 ixgbe_dcb_calculate_tc_credits(hw, &adapter->dcb_cfg, max_frame, in ixgbe_configure_dcb() [all …]
|
/drivers/target/tcm_fc/ |
D | tfc_io.c | 126 cmd->sess->max_frame; in ft_queue_data_in() 140 fr_max_payload(fp) = cmd->sess->max_frame; in ft_queue_data_in()
|
D | tcm_fc.h | 39 u16 max_frame; /* maximum frame size */ member
|
D | tfc_sess.c | 388 sess->max_frame = rdata->maxframe_size; in ft_prli_locked()
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
D | pch_gbe_main.c | 2241 int max_frame; in pch_gbe_change_mtu() local 2245 max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in pch_gbe_change_mtu() 2246 if ((max_frame < ETH_ZLEN + ETH_FCS_LEN) || in pch_gbe_change_mtu() 2247 (max_frame > PCH_GBE_MAX_JUMBO_FRAME_SIZE)) { in pch_gbe_change_mtu() 2251 if (max_frame <= PCH_GBE_FRAME_SIZE_2048) in pch_gbe_change_mtu() 2253 else if (max_frame <= PCH_GBE_FRAME_SIZE_4096) in pch_gbe_change_mtu() 2255 else if (max_frame <= PCH_GBE_FRAME_SIZE_8192) in pch_gbe_change_mtu() 2269 adapter->hw.mac.max_frame_size = max_frame; in pch_gbe_change_mtu() 2274 adapter->hw.mac.max_frame_size = max_frame; in pch_gbe_change_mtu() 2278 max_frame, (u32) adapter->rx_buffer_len, netdev->mtu, in pch_gbe_change_mtu()
|
/drivers/net/ethernet/intel/igbvf/ |
D | netdev.c | 2344 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in igbvf_change_mtu() local 2346 if ((new_mtu < 68) || (max_frame > MAX_JUMBO_FRAME_SIZE)) { in igbvf_change_mtu() 2352 if (max_frame > MAX_STD_JUMBO_FRAME_SIZE) { in igbvf_change_mtu() 2360 adapter->max_frame_size = max_frame; in igbvf_change_mtu() 2373 if (max_frame <= 1024) in igbvf_change_mtu() 2375 else if (max_frame <= 2048) in igbvf_change_mtu() 2386 if ((max_frame == ETH_FRAME_LEN + ETH_FCS_LEN) || in igbvf_change_mtu() 2387 (max_frame == ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)) in igbvf_change_mtu()
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_main.c | 211 int max_frame = netdev->mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; in ixgb_up() local 249 if ((hw->max_frame_size != max_frame) || in ixgb_up() 253 hw->max_frame_size = max_frame; in ixgb_up() 1628 int max_frame = new_mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; in ixgb_change_mtu() local 1633 (max_frame > IXGB_MAX_JUMBO_FRAME_SIZE + ENET_FCS_LENGTH)) { in ixgb_change_mtu() 1639 if (old_max_frame == max_frame) in ixgb_change_mtu() 1645 adapter->rx_buffer_len = max_frame + 8; /* + 8 for errata */ in ixgb_change_mtu()
|
/drivers/net/ethernet/intel/ixgbevf/ |
D | ixgbevf_main.c | 1114 int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbevf_set_rx_buffer_len() local 1119 ixgbevf_rlpml_set_vf(hw, max_frame); in ixgbevf_set_rx_buffer_len() 1122 max_frame += VLAN_HLEN; in ixgbevf_set_rx_buffer_len() 1129 (max_frame <= MAXIMUM_ETHERNET_VLAN_SIZE)) in ixgbevf_set_rx_buffer_len() 1131 else if (max_frame <= IXGBEVF_RXBUFFER_2K) in ixgbevf_set_rx_buffer_len() 1133 else if (max_frame <= IXGBEVF_RXBUFFER_4K) in ixgbevf_set_rx_buffer_len() 1135 else if (max_frame <= IXGBEVF_RXBUFFER_8K) in ixgbevf_set_rx_buffer_len() 3137 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in ixgbevf_change_mtu() local 3151 if ((new_mtu < 68) || (max_frame > max_possible_frame)) in ixgbevf_change_mtu()
|
/drivers/net/ethernet/atheros/alx/ |
D | main.c | 806 int max_frame = mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in alx_change_mtu() local 808 if ((max_frame < ALX_MIN_FRAME_SIZE) || in alx_change_mtu() 809 (max_frame > ALX_MAX_FRAME_SIZE)) in alx_change_mtu() 818 ALIGN(max_frame, 8) : ALX_DEF_RXBUF_SIZE; in alx_change_mtu()
|
/drivers/net/ethernet/atheros/atlx/ |
D | atl1.c | 2700 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1_change_mtu() local 2702 if ((max_frame < ETH_ZLEN + ETH_FCS_LEN) || in atl1_change_mtu() 2703 (max_frame > MAX_JUMBO_FRAME_SIZE)) { in atl1_change_mtu() 2709 adapter->hw.max_frame_size = max_frame; in atl1_change_mtu() 2710 adapter->hw.tx_jumbo_task_th = (max_frame + 7) >> 3; in atl1_change_mtu() 2711 adapter->rx_buffer_len = (max_frame + 7) & ~7; in atl1_change_mtu()
|
/drivers/net/ethernet/intel/e1000/ |
D | e1000_main.c | 3533 int max_frame = new_mtu + ENET_HEADER_SIZE + ETHERNET_FCS_SIZE; in e1000_change_mtu() local 3535 if ((max_frame < MINIMUM_ETHERNET_FRAME_SIZE) || in e1000_change_mtu() 3536 (max_frame > MAX_JUMBO_FRAME_SIZE)) { in e1000_change_mtu() 3544 if (max_frame > (ETH_FRAME_LEN + ETH_FCS_LEN)) { in e1000_change_mtu() 3557 hw->max_frame_size = max_frame; in e1000_change_mtu() 3569 if (max_frame <= E1000_RXBUFFER_2048) in e1000_change_mtu() 3580 ((max_frame == (ETH_FRAME_LEN + ETH_FCS_LEN)) || in e1000_change_mtu() 3581 (max_frame == MAXIMUM_ETHERNET_VLAN_SIZE))) in e1000_change_mtu()
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_main.c | 411 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1e_change_mtu() local 413 if ((max_frame < ETH_ZLEN + ETH_FCS_LEN) || in atl1e_change_mtu() 414 (max_frame > MAX_JUMBO_FRAME_SIZE)) { in atl1e_change_mtu() 424 adapter->hw.rx_jumbo_th = (max_frame + 7) >> 3; in atl1e_change_mtu()
|
/drivers/net/ethernet/intel/e1000e/ |
D | netdev.c | 5657 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN; in e1000_change_mtu() local 5660 if ((max_frame > ETH_FRAME_LEN + ETH_FCS_LEN) && in e1000_change_mtu() 5668 (max_frame > adapter->max_hw_frame_size)) { in e1000_change_mtu() 5684 adapter->max_frame_size = max_frame; in e1000_change_mtu() 5698 if (max_frame <= 2048) in e1000_change_mtu() 5704 if ((max_frame == ETH_FRAME_LEN + ETH_FCS_LEN) || in e1000_change_mtu() 5705 (max_frame == ETH_FRAME_LEN + VLAN_HLEN + ETH_FCS_LEN)) in e1000_change_mtu()
|
/drivers/net/ethernet/sun/ |
D | sungem.c | 1907 int max_frame = (gp->rx_buf_sz + 4 + 64) & ~63; in gem_init_pause_thresholds() local 1908 int off = (gp->rx_fifo_sz - (max_frame * 2)); in gem_init_pause_thresholds() 1909 int on = off - max_frame; in gem_init_pause_thresholds()
|
D | cassini.c | 3154 int max_frame = (cp->dev->mtu + ETH_HLEN + 4 + 4 + 64) & ~63; in cas_init_pause_thresholds() local 3155 if (max_frame * 3 > cp->rx_fifo_size) { in cas_init_pause_thresholds() 3159 int off = (cp->rx_fifo_size - (max_frame * 2)); in cas_init_pause_thresholds() 3160 int on = off - max_frame; in cas_init_pause_thresholds()
|
/drivers/net/ethernet/atheros/atl1c/ |
D | atl1c_main.c | 531 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in atl1c_change_mtu() local 537 max_frame < ETH_ZLEN + ETH_FCS_LEN || in atl1c_change_mtu() 538 max_frame > MAX_JUMBO_FRAME_SIZE) { in atl1c_change_mtu()
|
/drivers/net/ethernet/intel/igb/ |
D | igb_main.c | 4802 int max_frame = new_mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; in igb_change_mtu() local 4804 if ((new_mtu < 68) || (max_frame > MAX_JUMBO_FRAME_SIZE)) { in igb_change_mtu() 4810 if (max_frame > MAX_STD_JUMBO_FRAME_SIZE) { in igb_change_mtu() 4819 adapter->max_frame_size = max_frame; in igb_change_mtu()
|