/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en/ |
D | port_buffer.c | 149 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 …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_vfr.c | 68 u16 *max_mtu) in bnxt_hwrm_vfr_qcfg() argument 84 *max_mtu = BNXT_MAX_MTU; in bnxt_hwrm_vfr_qcfg() 86 *max_mtu = mtu; in bnxt_hwrm_vfr_qcfg() 372 u16 max_mtu; in bnxt_vf_rep_netdev_init() local 388 if (!bnxt_hwrm_vfr_qcfg(bp, vf_rep, &max_mtu)) in bnxt_vf_rep_netdev_init() 389 dev->max_mtu = max_mtu; in bnxt_vf_rep_netdev_init()
|
/kernel/linux/linux-5.10/drivers/net/dsa/ |
D | rtl8366rb.c | 319 unsigned int max_mtu[RTL8366RB_NUM_PORTS]; member 884 rb->max_mtu[i] = 1532; in rtl8366rb_setup() 1127 unsigned int max_mtu; in rtl8366rb_change_mtu() local 1133 rb->max_mtu[port] = new_mtu; in rtl8366rb_change_mtu() 1146 max_mtu = 1518; in rtl8366rb_change_mtu() 1148 if (rb->max_mtu[i] > max_mtu) in rtl8366rb_change_mtu() 1149 max_mtu = rb->max_mtu[i]; in rtl8366rb_change_mtu() 1151 if (max_mtu <= 1518) in rtl8366rb_change_mtu() 1153 else if (max_mtu > 1518 && max_mtu <= 1532) in rtl8366rb_change_mtu() 1155 else if (max_mtu > 1532 && max_mtu <= 1548) in rtl8366rb_change_mtu()
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | psock_snd.sh | 18 readonly max_mtu=65535 19 readonly max_mss="$((${max_mtu} - ${iphlen} - ${udphlen}))"
|
/kernel/linux/linux-5.10/net/8021q/ |
D | vlan_netlink.c | 142 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()
|
D | vlan_dev.c | 144 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() 839 dev->max_mtu = ETH_MAX_MTU; in vlan_setup()
|
/kernel/linux/linux-5.10/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() 1074 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 …]
|
/kernel/linux/linux-5.10/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() 751 failover_dev->max_mtu = standby_dev->max_mtu; in net_failover_create()
|
D | veth.c | 1141 unsigned int max_mtu; in veth_xdp_set() local 1155 max_mtu = PAGE_SIZE - VETH_XDP_HEADROOM - in veth_xdp_set() 1158 if (peer->mtu > max_mtu) { in veth_xdp_set() 1180 peer->max_mtu = max_mtu; in veth_xdp_set() 1191 peer->max_mtu = ETH_MAX_MTU; in veth_xdp_set() 1263 dev->max_mtu = ETH_MAX_MTU; in veth_setup()
|
D | dummy.c | 135 dev->max_mtu = 0; in dummy_setup()
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_netdev.c | 162 netdev->max_mtu = max_t(unsigned int, info->vesw.eth_mtu, in opa_vnic_process_vema_config() 164 if (netdev->mtu > netdev->max_mtu) in opa_vnic_process_vema_config() 165 dev_set_mtu(netdev, netdev->max_mtu); in opa_vnic_process_vema_config()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | switchib.c | 136 int max_mtu; in mlxsw_sib_port_mtu_set() local 143 max_mtu = mlxsw_reg_pmtu_max_mtu_get(pmtu_pl); in mlxsw_sib_port_mtu_set() 145 if (mtu > max_mtu) in mlxsw_sib_port_mtu_set()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/drivers/net/ipa/ |
D | ipa_modem.c | 151 netdev->max_mtu = IPA_MTU; in ipa_modem_netdev_setup() 152 netdev->mtu = netdev->max_mtu; in ipa_modem_netdev_setup()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | port.c | 219 u16 *max_mtu, u16 *oper_mtu, u8 port) in mlx5_query_port_mtu() argument 228 if (max_mtu) in mlx5_query_port_mtu() 229 *max_mtu = MLX5_GET(pmtu_reg, out, max_mtu); in mlx5_query_port_mtu() 248 void mlx5_query_port_max_mtu(struct mlx5_core_dev *dev, u16 *max_mtu, in mlx5_query_port_max_mtu() argument 251 mlx5_query_port_mtu(dev, NULL, max_mtu, NULL, port); in mlx5_query_port_max_mtu()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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() 979 int max_mtu = IP_MAX_MTU - t_hlen; in __ip_tunnel_change_mtu() local 982 max_mtu -= dev->hard_header_len; in __ip_tunnel_change_mtu() 987 if (new_mtu > max_mtu) { in __ip_tunnel_change_mtu() 991 new_mtu = max_mtu; in __ip_tunnel_change_mtu()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hns/ |
D | hns_roce_main.c | 170 hr_dev->caps.max_mtu); in hns_roce_setup_mtu_mac() 240 props->max_mtu = hr_dev->caps.max_mtu; in hns_roce_query_port() 260 props->active_mtu = mtu ? min(props->max_mtu, mtu) : IB_MTU_256; in hns_roce_query_port()
|
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/ |
D | rxe_qp.c | 442 enum ib_mtu max_mtu = port->attr.max_mtu; in rxe_qp_chk_attr() local 445 if (mtu > max_mtu) { in rxe_qp_chk_attr() 448 ib_mtu_enum_to_int(max_mtu)); in rxe_qp_chk_attr()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/qlogic/qed/ |
D | qed_iwarp.h | 73 u16 max_mtu; member
|
/kernel/linux/linux-5.10/net/bluetooth/bnep/ |
D | netdev.c | 225 dev->max_mtu = ETH_MAX_MTU; in bnep_net_setup()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/ |
D | ocelot.c | 1387 int max_mtu = 65535 - ETH_HLEN - ETH_FCS_LEN; in ocelot_get_max_mtu() local 1390 max_mtu -= OCELOT_TAG_LEN; in ocelot_get_max_mtu() 1393 max_mtu -= OCELOT_SHORT_PREFIX_LEN; in ocelot_get_max_mtu() 1395 max_mtu -= OCELOT_LONG_PREFIX_LEN; in ocelot_get_max_mtu() 1398 return max_mtu; in ocelot_get_max_mtu()
|
/kernel/linux/linux-5.10/include/linux/mlx5/ |
D | port.h | 155 void mlx5_query_port_max_mtu(struct mlx5_core_dev *dev, u16 *max_mtu, u8 port);
|