Home
last modified time | relevance | path

Searched refs:max_mtu (Results 1 – 25 of 324) sorted by relevance

12345678910>>...13

/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/en/
Dport_buffer.c149 u32 xoff, unsigned int max_mtu, u16 port_buff_cell_sz) in update_xoff_threshold() argument
161 (xoff + max_mtu + port_buff_cell_sz)) { in update_xoff_threshold()
169 port_buffer->buffer[i].xoff - max_mtu; in update_xoff_threshold()
195 static int update_buffer_lossy(unsigned int max_mtu, in update_buffer_lossy() argument
232 err = update_xoff_threshold(port_buffer, xoff, max_mtu, port_buff_cell_sz); in update_buffer_lossy()
275 unsigned int max_mtu; in mlx5e_port_manual_buffer_config() local
282 max_mtu = max_t(unsigned int, priv->netdev->max_mtu, MINIMUM_MAX_MTU); in mlx5e_port_manual_buffer_config()
290 err = update_xoff_threshold(&port_buffer, xoff, max_mtu, port_buff_cell_sz); in mlx5e_port_manual_buffer_config()
300 err = update_buffer_lossy(max_mtu, pfc->pfc_en, buffer, xoff, port_buff_cell_sz, in mlx5e_port_manual_buffer_config()
312 err = update_buffer_lossy(max_mtu, curr_pfc_en, prio2buffer, xoff, in mlx5e_port_manual_buffer_config()
[all …]
Dtrap.c118 int max_mtu, u16 q_counter, in mlx5e_build_trap_params() argument
125 params->sw_mtu = max_mtu; in mlx5e_build_trap_params()
140 mlx5e_build_trap_params(priv->mdev, netdev->max_mtu, priv->q_counter, t); in mlx5e_open_trap()
Dparams.c681 int max_mtu; in mlx5e_build_rq_frags_info() local
706 max_mtu = mlx5e_max_nonlinear_mtu(first_frag_size_max, frag_size_max, in mlx5e_build_rq_frags_info()
708 if (byte_count > max_mtu || params->xdp_prog) { in mlx5e_build_rq_frags_info()
712 max_mtu = mlx5e_max_nonlinear_mtu(first_frag_size_max, frag_size_max, in mlx5e_build_rq_frags_info()
714 if (byte_count > max_mtu) { in mlx5e_build_rq_frags_info()
716 params->sw_mtu, max_mtu); in mlx5e_build_rq_frags_info()
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/
Dlan966x_fdma.c673 int max_mtu = 0; in lan966x_fdma_get_max_mtu() local
685 if (mtu > max_mtu) in lan966x_fdma_get_max_mtu()
686 max_mtu = mtu; in lan966x_fdma_get_max_mtu()
689 return max_mtu; in lan966x_fdma_get_max_mtu()
738 int max_mtu; in lan966x_fdma_change_mtu() local
742 max_mtu = lan966x_fdma_get_max_mtu(lan966x); in lan966x_fdma_change_mtu()
743 max_mtu += IFH_LEN * sizeof(u32); in lan966x_fdma_change_mtu()
744 max_mtu += SKB_DATA_ALIGN(sizeof(struct skb_shared_info)); in lan966x_fdma_change_mtu()
745 max_mtu += VLAN_HLEN * 2; in lan966x_fdma_change_mtu()
747 if (round_up(max_mtu, PAGE_SIZE) / PAGE_SIZE - 1 == in lan966x_fdma_change_mtu()
[all …]
/linux-6.1.9/tools/testing/selftests/net/
Dpsock_snd.sh18 readonly max_mtu=65535
19 readonly max_mss="$((${max_mtu} - ${iphlen} - ${udphlen}))"
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_vfr.c71 u16 *max_mtu) in bnxt_hwrm_vfr_qcfg() argument
88 *max_mtu = BNXT_MAX_MTU; in bnxt_hwrm_vfr_qcfg()
90 *max_mtu = mtu; in bnxt_hwrm_vfr_qcfg()
464 u16 max_mtu; in bnxt_vf_rep_netdev_init() local
480 if (!bnxt_hwrm_vfr_qcfg(bp, vf_rep, &max_mtu)) in bnxt_vf_rep_netdev_init()
481 dev->max_mtu = max_mtu; in bnxt_vf_rep_netdev_init()
/linux-6.1.9/net/8021q/
Dvlan_netlink.c142 unsigned int max_mtu; in vlan_newlink() local
178 max_mtu = netif_reduces_vlan_mtu(real_dev) ? real_dev->mtu - VLAN_HLEN : in vlan_newlink()
181 dev->mtu = max_mtu; in vlan_newlink()
182 else if (dev->mtu > max_mtu) in vlan_newlink()
Dvlan_dev.c144 unsigned int max_mtu = real_dev->mtu; in vlan_dev_change_mtu() local
147 max_mtu -= VLAN_HLEN; in vlan_dev_change_mtu()
148 if (max_mtu < new_mtu) in vlan_dev_change_mtu()
873 dev->max_mtu = ETH_MAX_MTU; in vlan_setup()
/linux-6.1.9/drivers/net/dsa/realtek/
Drtl8366rb.c359 unsigned int max_mtu[RTL8366RB_NUM_PORTS]; member
945 rb->max_mtu[i] = 1532; in rtl8366rb_setup()
1381 unsigned int max_mtu; in rtl8366rb_change_mtu() local
1387 rb->max_mtu[port] = new_mtu; in rtl8366rb_change_mtu()
1400 max_mtu = 1518; in rtl8366rb_change_mtu()
1402 if (rb->max_mtu[i] > max_mtu) in rtl8366rb_change_mtu()
1403 max_mtu = rb->max_mtu[i]; in rtl8366rb_change_mtu()
1405 if (max_mtu <= 1518) in rtl8366rb_change_mtu()
1407 else if (max_mtu > 1518 && max_mtu <= 1532) in rtl8366rb_change_mtu()
1409 else if (max_mtu > 1532 && max_mtu <= 1548) in rtl8366rb_change_mtu()
/linux-6.1.9/drivers/misc/
Dibmvmc.h114 __be32 max_mtu; /* Maximum message size supported (bytes) */ member
173 u32 max_mtu; member
Dibmvmc.c510 ibmvmc.max_mtu, in ibmvmc_return_hmc()
663 crq_msg.max_mtu = cpu_to_be32(ibmvmc_max_mtu); in ibmvmc_send_capabilities()
922 if (nbytes > ibmvmc.max_mtu) { in ibmvmc_read()
1075 if (count > ibmvmc.max_mtu) { in ibmvmc_write()
1473 ibmvmc.max_mtu, in ibmvmc_add_buffer()
1485 buffer->size = ibmvmc.max_mtu; in ibmvmc_add_buffer()
1583 ibmvmc.max_mtu, in ibmvmc_rem_buffer()
1716 ibmvmc.max_mtu = min_t(u32, ibmvmc_max_mtu, be32_to_cpu(crq->max_mtu)); in ibmvmc_process_capabilities()
1723 ibmvmc.max_mtu, ibmvmc.max_buffer_pool_size, in ibmvmc_process_capabilities()
2022 ibmvmc.state, ibmvmc.max_mtu); in ibmvmc_handle_crq_init()
[all …]
/linux-6.1.9/drivers/net/
Dnet_failover.c553 failover_dev->max_mtu = slave_dev->max_mtu; in net_failover_slave_register()
622 failover_dev->max_mtu = standby_dev->max_mtu; in net_failover_slave_unregister()
754 failover_dev->max_mtu = standby_dev->max_mtu; in net_failover_create()
Dveth.c1518 unsigned int max_mtu; in veth_xdp_set() local
1532 max_mtu = SKB_WITH_OVERHEAD(PAGE_SIZE - VETH_XDP_HEADROOM) - in veth_xdp_set()
1538 max_mtu += PAGE_SIZE * MAX_SKB_FRAGS; in veth_xdp_set()
1540 if (peer->mtu > max_mtu) { in veth_xdp_set()
1562 peer->max_mtu = max_mtu; in veth_xdp_set()
1573 peer->max_mtu = ETH_MAX_MTU; in veth_xdp_set()
1646 dev->max_mtu = ETH_MAX_MTU; in veth_setup()
Ddummy.c135 dev->max_mtu = 0; in dummy_setup()
/linux-6.1.9/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_netdev.c161 netdev->max_mtu = max_t(unsigned int, info->vesw.eth_mtu, in opa_vnic_process_vema_config()
163 if (netdev->mtu > netdev->max_mtu) in opa_vnic_process_vema_config()
164 dev_set_mtu(netdev, netdev->max_mtu); in opa_vnic_process_vema_config()
/linux-6.1.9/net/l2tp/
Dl2tp_eth.c236 if (mtu < dev->min_mtu || mtu > dev->max_mtu) in l2tp_eth_adjust_mtu()
280 dev->max_mtu = ETH_MAX_MTU; in l2tp_eth_create()
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Dport.c231 u16 *max_mtu, u16 *oper_mtu, u8 port) in mlx5_query_port_mtu() argument
240 if (max_mtu) in mlx5_query_port_mtu()
241 *max_mtu = MLX5_GET(pmtu_reg, out, max_mtu); in mlx5_query_port_mtu()
260 void mlx5_query_port_max_mtu(struct mlx5_core_dev *dev, u16 *max_mtu, in mlx5_query_port_max_mtu() argument
263 mlx5_query_port_mtu(dev, NULL, max_mtu, NULL, port); in mlx5_query_port_max_mtu()
/linux-6.1.9/net/802/
Dhippi.c162 dev->max_mtu = 65280; in hippi_setup()
Dfddi.c152 dev->max_mtu = FDDI_K_SNAP_DLEN; in fddi_setup()
/linux-6.1.9/drivers/net/ipa/
Dipa_modem.c214 netdev->max_mtu = IPA_MTU; in ipa_modem_netdev_setup()
215 netdev->mtu = netdev->max_mtu; in ipa_modem_netdev_setup()
/linux-6.1.9/net/ipv4/
Dip_tunnel.c350 dev->max_mtu = IP_MAX_MTU - t_hlen; in ip_tunnel_create()
352 dev->max_mtu -= dev->hard_header_len; in ip_tunnel_create()
983 int max_mtu = IP_MAX_MTU - t_hlen; in __ip_tunnel_change_mtu() local
986 max_mtu -= dev->hard_header_len; in __ip_tunnel_change_mtu()
991 if (new_mtu > max_mtu) { in __ip_tunnel_change_mtu()
995 new_mtu = max_mtu; in __ip_tunnel_change_mtu()
/linux-6.1.9/drivers/infiniband/sw/rxe/
Drxe_qp.c447 enum ib_mtu max_mtu = port->attr.max_mtu; in rxe_qp_chk_attr() local
450 if (mtu > max_mtu) { in rxe_qp_chk_attr()
453 ib_mtu_enum_to_int(max_mtu)); in rxe_qp_chk_attr()
/linux-6.1.9/drivers/net/ethernet/qlogic/qed/
Dqed_iwarp.h73 u16 max_mtu; member
/linux-6.1.9/net/bluetooth/bnep/
Dnetdev.c225 dev->max_mtu = ETH_MAX_MTU; in bnep_net_setup()
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/
Dnfp_net_repr.c337 netdev->max_mtu = pf_netdev->max_mtu; in nfp_repr_init()

12345678910>>...13