Lines Matching defs:mtu
421 static int mlxsw_sp_port_mtu_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mtu)
426 mtu += MLXSW_TXHDR_LEN + ETH_HLEN;
427 if (mtu > mlxsw_sp_port->max_mtu)
430 mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sp_port->local_port, mtu);
804 static int mlxsw_sp_port_change_mtu(struct net_device *dev, int mtu)
814 hdroom.mtu = mtu;
823 err = mlxsw_sp_port_mtu_set(mlxsw_sp_port, mtu);
826 dev->mtu = mtu;