Home
last modified time | relevance | path

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

12345678910>>...14

/linux-6.12.1/tools/testing/selftests/net/forwarding/
Dmin_max_mtu.sh187 local max_mtu=$(min_max_mtu_get_if $dev "max_mtu")
191 mtu_set_if $dev $max_mtu $should_fail
195 mtu_set_if $dev $((max_mtu + 1)) $should_fail
205 local max_mtu
214 max_mtu=$(min_max_mtu_get_if ${NETIFS[p1]} "max_mtu")
217 mtu_set_all_if $max_mtu
218 mtu_test_ping4 $max_mtu $should_fail
219 mtu_test_ping6 $max_mtu $should_fail
223 mtu_set_all_if $((max_mtu - 1))
224 mtu_test_ping4 $max_mtu $should_fail
[all …]
/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en/
Dport_buffer.c361 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 …]
Dtrap.c121 int max_mtu, struct mlx5e_trap *t) in mlx5e_build_trap_params() argument
127 params->sw_mtu = max_mtu; in mlx5e_build_trap_params()
142 mlx5e_build_trap_params(priv->mdev, netdev->max_mtu, t); in mlx5e_open_trap()
Dparams.c690 int max_mtu; in mlx5e_build_rq_frags_info() local
715 max_mtu = mlx5e_max_nonlinear_mtu(first_frag_size_max, frag_size_max, in mlx5e_build_rq_frags_info()
717 if (byte_count > max_mtu || params->xdp_prog) { in mlx5e_build_rq_frags_info()
721 max_mtu = mlx5e_max_nonlinear_mtu(first_frag_size_max, frag_size_max, in mlx5e_build_rq_frags_info()
723 if (byte_count > max_mtu) { in mlx5e_build_rq_frags_info()
725 params->sw_mtu, max_mtu); in mlx5e_build_rq_frags_info()
/linux-6.12.1/drivers/net/ethernet/microchip/lan966x/
Dlan966x_fdma.c86 .max_len = rx->max_mtu - in lan966x_fdma_rx_alloc_page_pool()
786 int max_mtu = 0; in lan966x_fdma_get_max_mtu() local
798 if (mtu > max_mtu) in lan966x_fdma_get_max_mtu()
799 max_mtu = mtu; in lan966x_fdma_get_max_mtu()
802 return max_mtu; in lan966x_fdma_get_max_mtu()
827 lan966x->rx.max_mtu = new_mtu; in lan966x_fdma_reload()
858 static int __lan966x_fdma_reload(struct lan966x *lan966x, int max_mtu) in __lan966x_fdma_reload() argument
878 err = lan966x_fdma_reload(lan966x, max_mtu); in __lan966x_fdma_reload()
890 int max_mtu; in lan966x_fdma_change_mtu() local
892 max_mtu = lan966x_fdma_get_max_frame(lan966x); in lan966x_fdma_change_mtu()
[all …]
/linux-6.12.1/tools/testing/selftests/net/
Dpsock_snd.sh18 readonly max_mtu=65535
19 readonly max_mss="$((${max_mtu} - ${iphlen} - ${udphlen}))"
/linux-6.12.1/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()
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.12.1/drivers/net/dsa/realtek/
Drtl8366rb.c388 unsigned int max_mtu[RTL8366RB_NUM_PORTS]; member
1184 rb->max_mtu[i] = ETH_DATA_LEN + RTL8366RB_CPU_TAG_SIZE; in rtl8366rb_setup()
1186 rb->max_mtu[i] = ETH_DATA_LEN; in rtl8366rb_setup()
1627 unsigned int max_mtu; in rtl8366rb_change_mtu() local
1633 rb->max_mtu[port] = new_mtu; in rtl8366rb_change_mtu()
1639 max_mtu = ETH_DATA_LEN; in rtl8366rb_change_mtu()
1641 if (rb->max_mtu[i] > max_mtu) in rtl8366rb_change_mtu()
1642 max_mtu = rb->max_mtu[i]; in rtl8366rb_change_mtu()
1649 max_mtu += VLAN_ETH_HLEN; in rtl8366rb_change_mtu()
1650 max_mtu += ETH_FCS_LEN; in rtl8366rb_change_mtu()
[all …]
/linux-6.12.1/net/8021q/
Dvlan_netlink.c144 unsigned int max_mtu; in vlan_newlink() local
180 max_mtu = netif_reduces_vlan_mtu(real_dev) ? real_dev->mtu - VLAN_HLEN : in vlan_newlink()
183 dev->mtu = max_mtu; in vlan_newlink()
184 else if (dev->mtu > max_mtu) in vlan_newlink()
/linux-6.12.1/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()
1471 ibmvmc.max_mtu, in ibmvmc_add_buffer()
1483 buffer->size = ibmvmc.max_mtu; in ibmvmc_add_buffer()
1581 ibmvmc.max_mtu, in ibmvmc_rem_buffer()
1714 ibmvmc.max_mtu = min_t(u32, ibmvmc_max_mtu, be32_to_cpu(crq->max_mtu)); in ibmvmc_process_capabilities()
1721 ibmvmc.max_mtu, ibmvmc.max_buffer_pool_size, in ibmvmc_process_capabilities()
2020 ibmvmc.state, ibmvmc.max_mtu); in ibmvmc_handle_crq_init()
[all …]
/linux-6.12.1/drivers/net/
Dnet_failover.c549 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()
Dveth.c1528 unsigned int max_mtu; in veth_xdp_set() local
1542 max_mtu = SKB_WITH_OVERHEAD(PAGE_SIZE - VETH_XDP_HEADROOM) - in veth_xdp_set()
1548 max_mtu += PAGE_SIZE * MAX_SKB_FRAGS; in veth_xdp_set()
1550 if (peer->mtu > max_mtu) { in veth_xdp_set()
1572 peer->max_mtu = max_mtu; in veth_xdp_set()
1588 peer->max_mtu = ETH_MAX_MTU; in veth_xdp_set()
1714 dev->max_mtu = ETH_MAX_MTU; in veth_setup()
Ddummy.c122 dev->max_mtu = 0; in dummy_setup()
/linux-6.12.1/drivers/net/ethernet/amazon/ena/
Dena_xdp.c326 prev_mtu = netdev->max_mtu; in ena_xdp_set()
327 netdev->max_mtu = prog ? ENA_XDP_MAX_MTU : adapter->max_mtu; in ena_xdp_set()
332 prev_mtu, netdev->max_mtu); in ena_xdp_set()
/linux-6.12.1/drivers/net/ethernet/microsoft/mana/
Dmana_bpf.c205 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.12.1/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.12.1/net/l2tp/
Dl2tp_eth.c217 if (mtu < dev->min_mtu || mtu > dev->max_mtu) in l2tp_eth_adjust_mtu()
261 dev->max_mtu = ETH_MAX_MTU; in l2tp_eth_create()
/linux-6.12.1/drivers/net/ipa/
Dipa_modem.c231 netdev->max_mtu = IPA_MTU; in ipa_modem_netdev_setup()
232 netdev->mtu = netdev->max_mtu; in ipa_modem_netdev_setup()
/linux-6.12.1/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.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Dport.c233 u16 *max_mtu, u16 *oper_mtu, u8 port) in mlx5_query_port_mtu() argument
242 if (max_mtu) in mlx5_query_port_mtu()
243 *max_mtu = MLX5_GET(pmtu_reg, out, max_mtu); in mlx5_query_port_mtu()
262 void mlx5_query_port_max_mtu(struct mlx5_core_dev *dev, u16 *max_mtu, in mlx5_query_port_max_mtu() argument
265 mlx5_query_port_mtu(dev, NULL, max_mtu, NULL, port); in mlx5_query_port_max_mtu()
/linux-6.12.1/drivers/infiniband/sw/rxe/
Drxe_qp.c478 enum ib_mtu max_mtu = port->attr.max_mtu; in rxe_qp_chk_attr() local
481 if (mtu > max_mtu) { in rxe_qp_chk_attr()
484 ib_mtu_enum_to_int(max_mtu)); in rxe_qp_chk_attr()
/linux-6.12.1/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()
1071 int max_mtu = IP_MAX_MTU - t_hlen; in __ip_tunnel_change_mtu() local
1074 max_mtu -= dev->hard_header_len; in __ip_tunnel_change_mtu()
1079 if (new_mtu > max_mtu) { in __ip_tunnel_change_mtu()
1083 new_mtu = max_mtu; in __ip_tunnel_change_mtu()
/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_iwarp.h73 u16 max_mtu; member

12345678910>>...14