/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | port_buffer.c | 361 u32 xoff, unsigned int max_mtu, u16 port_buff_cell_sz) in update_xoff_threshold() argument 373 (xoff + max_mtu + port_buff_cell_sz)) { in update_xoff_threshold() 381 port_buffer->buffer[i].xoff - max_mtu; in update_xoff_threshold() 409 unsigned int max_mtu, in update_buffer_lossy() argument 446 err = update_xoff_threshold(port_buffer, xoff, max_mtu, port_buff_cell_sz); in update_buffer_lossy() 494 unsigned int max_mtu; in mlx5e_port_manual_buffer_config() local 501 max_mtu = max_t(unsigned int, priv->netdev->max_mtu, MINIMUM_MAX_MTU); in mlx5e_port_manual_buffer_config() 509 err = update_xoff_threshold(&port_buffer, xoff, max_mtu, port_buff_cell_sz); in mlx5e_port_manual_buffer_config() 521 err = update_buffer_lossy(priv->mdev, max_mtu, pfc->pfc_en, buffer, xoff, in mlx5e_port_manual_buffer_config() 538 err = update_buffer_lossy(priv->mdev, max_mtu, curr_pfc_en, prio2buffer, xoff, in mlx5e_port_manual_buffer_config() [all …]
|
D | trap.c | 117 int max_mtu, u16 q_counter, in mlx5e_build_trap_params() argument 124 params->sw_mtu = max_mtu; in mlx5e_build_trap_params() 139 mlx5e_build_trap_params(priv->mdev, netdev->max_mtu, priv->q_counter, t); in mlx5e_open_trap()
|
D | params.c | 744 int max_mtu; in mlx5e_build_rq_frags_info() local 769 max_mtu = mlx5e_max_nonlinear_mtu(first_frag_size_max, frag_size_max, in mlx5e_build_rq_frags_info() 771 if (byte_count > max_mtu || params->xdp_prog) { in mlx5e_build_rq_frags_info() 775 max_mtu = mlx5e_max_nonlinear_mtu(first_frag_size_max, frag_size_max, in mlx5e_build_rq_frags_info() 777 if (byte_count > max_mtu) { in mlx5e_build_rq_frags_info() 779 params->sw_mtu, max_mtu); in mlx5e_build_rq_frags_info()
|
/linux-6.6.21/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_fdma.c | 80 .max_len = rx->max_mtu - in lan966x_fdma_rx_alloc_page_pool() 884 int max_mtu = 0; in lan966x_fdma_get_max_mtu() local 896 if (mtu > max_mtu) in lan966x_fdma_get_max_mtu() 897 max_mtu = mtu; in lan966x_fdma_get_max_mtu() 900 return max_mtu; in lan966x_fdma_get_max_mtu() 928 lan966x->rx.max_mtu = new_mtu; in lan966x_fdma_reload() 962 static int __lan966x_fdma_reload(struct lan966x *lan966x, int max_mtu) in __lan966x_fdma_reload() argument 982 err = lan966x_fdma_reload(lan966x, max_mtu); in __lan966x_fdma_reload() 994 int max_mtu; in lan966x_fdma_change_mtu() local 996 max_mtu = lan966x_fdma_get_max_frame(lan966x); in lan966x_fdma_change_mtu() [all …]
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | psock_snd.sh | 18 readonly max_mtu=65535 19 readonly max_mss="$((${max_mtu} - ${iphlen} - ${udphlen}))"
|
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_vfr.c | 71 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() 469 u16 max_mtu; in bnxt_vf_rep_netdev_init() local 486 if (!bnxt_hwrm_vfr_qcfg(bp, vf_rep, &max_mtu)) in bnxt_vf_rep_netdev_init() 487 dev->max_mtu = max_mtu; in bnxt_vf_rep_netdev_init()
|
/linux-6.6.21/net/8021q/ |
D | vlan_netlink.c | 146 unsigned int max_mtu; in vlan_newlink() local 182 max_mtu = netif_reduces_vlan_mtu(real_dev) ? real_dev->mtu - VLAN_HLEN : in vlan_newlink() 185 dev->mtu = max_mtu; in vlan_newlink() 186 else if (dev->mtu > max_mtu) in vlan_newlink()
|
D | vlan_dev.c | 145 unsigned int max_mtu = real_dev->mtu; in vlan_dev_change_mtu() local 148 max_mtu -= VLAN_HLEN; in vlan_dev_change_mtu() 149 if (max_mtu < new_mtu) in vlan_dev_change_mtu() 1132 dev->max_mtu = ETH_MAX_MTU; in vlan_setup()
|
/linux-6.6.21/drivers/net/dsa/realtek/ |
D | rtl8366rb.c | 359 unsigned int max_mtu[RTL8366RB_NUM_PORTS]; member 945 rb->max_mtu[i] = 1532; in rtl8366rb_setup() 1407 unsigned int max_mtu; in rtl8366rb_change_mtu() local 1413 rb->max_mtu[port] = new_mtu; in rtl8366rb_change_mtu() 1426 max_mtu = 1518; in rtl8366rb_change_mtu() 1428 if (rb->max_mtu[i] > max_mtu) in rtl8366rb_change_mtu() 1429 max_mtu = rb->max_mtu[i]; in rtl8366rb_change_mtu() 1431 if (max_mtu <= 1518) in rtl8366rb_change_mtu() 1433 else if (max_mtu > 1518 && max_mtu <= 1532) in rtl8366rb_change_mtu() 1435 else if (max_mtu > 1532 && max_mtu <= 1548) in rtl8366rb_change_mtu()
|
/linux-6.6.21/drivers/misc/ |
D | ibmvmc.h | 114 __be32 max_mtu; /* Maximum message size supported (bytes) */ member 173 u32 max_mtu; member
|
D | ibmvmc.c | 510 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.6.21/drivers/net/ |
D | net_failover.c | 549 failover_dev->max_mtu = slave_dev->max_mtu; in net_failover_slave_register() 618 failover_dev->max_mtu = standby_dev->max_mtu; in net_failover_slave_unregister() 750 failover_dev->max_mtu = standby_dev->max_mtu; in net_failover_create()
|
D | dummy.c | 128 dev->max_mtu = 0; in dummy_setup()
|
D | veth.c | 1590 unsigned int max_mtu; in veth_xdp_set() local 1604 max_mtu = SKB_WITH_OVERHEAD(PAGE_SIZE - VETH_XDP_HEADROOM) - in veth_xdp_set() 1610 max_mtu += PAGE_SIZE * MAX_SKB_FRAGS; in veth_xdp_set() 1612 if (peer->mtu > max_mtu) { in veth_xdp_set() 1642 peer->max_mtu = max_mtu; in veth_xdp_set() 1666 peer->max_mtu = ETH_MAX_MTU; in veth_xdp_set() 1772 dev->max_mtu = ETH_MAX_MTU; in veth_setup()
|
/linux-6.6.21/drivers/net/ethernet/microsoft/mana/ |
D | mana_bpf.c | 205 ndev->max_mtu = MANA_XDP_MTU_MAX; in mana_xdp_set() 207 ndev->max_mtu = gc->adapter_mtu - ETH_HLEN; in mana_xdp_set()
|
/linux-6.6.21/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_netdev.c | 161 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.6.21/net/l2tp/ |
D | l2tp_eth.c | 236 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.6.21/net/802/ |
D | hippi.c | 162 dev->max_mtu = 65280; in hippi_setup()
|
D | fddi.c | 152 dev->max_mtu = FDDI_K_SNAP_DLEN; in fddi_setup()
|
/linux-6.6.21/drivers/net/ipa/ |
D | ipa_modem.c | 214 netdev->max_mtu = IPA_MTU; in ipa_modem_netdev_setup() 215 netdev->mtu = netdev->max_mtu; in ipa_modem_netdev_setup()
|
/linux-6.6.21/net/ipv4/ |
D | ip_tunnel.c | 350 dev->max_mtu = IP_MAX_MTU - t_hlen; in ip_tunnel_create() 352 dev->max_mtu -= dev->hard_header_len; in ip_tunnel_create() 1015 int max_mtu = IP_MAX_MTU - t_hlen; in __ip_tunnel_change_mtu() local 1018 max_mtu -= dev->hard_header_len; in __ip_tunnel_change_mtu() 1023 if (new_mtu > max_mtu) { in __ip_tunnel_change_mtu() 1027 new_mtu = max_mtu; in __ip_tunnel_change_mtu()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | port.c | 231 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.6.21/drivers/infiniband/sw/rxe/ |
D | rxe_qp.c | 479 enum ib_mtu max_mtu = port->attr.max_mtu; in rxe_qp_chk_attr() local 482 if (mtu > max_mtu) { in rxe_qp_chk_attr() 485 ib_mtu_enum_to_int(max_mtu)); in rxe_qp_chk_attr()
|
/linux-6.6.21/drivers/net/ethernet/qlogic/qed/ |
D | qed_iwarp.h | 73 u16 max_mtu; member
|
/linux-6.6.21/net/bluetooth/bnep/ |
D | netdev.c | 225 dev->max_mtu = ETH_MAX_MTU; in bnep_net_setup()
|