Lines Matching refs:mtu
706 u16 mtu, prev_mtu; in mlx4_common_set_port() local
749 mtu = be16_to_cpu(gen_context->mtu); in mlx4_common_set_port()
750 mtu = min_t(int, mtu, dev->caps.eth_mtu_cap[port] + in mlx4_common_set_port()
752 prev_mtu = slave_st->mtu[port]; in mlx4_common_set_port()
753 slave_st->mtu[port] = mtu; in mlx4_common_set_port()
754 if (mtu > master->max_mtu[port]) in mlx4_common_set_port()
755 master->max_mtu[port] = mtu; in mlx4_common_set_port()
756 if (mtu < prev_mtu && prev_mtu == in mlx4_common_set_port()
758 slave_st->mtu[port] = mtu; in mlx4_common_set_port()
759 master->max_mtu[port] = mtu; in mlx4_common_set_port()
763 master->slave_state[i].mtu[port]); in mlx4_common_set_port()
767 gen_context->mtu = cpu_to_be16(master->max_mtu[port]); in mlx4_common_set_port()
971 int mlx4_SET_PORT_general(struct mlx4_dev *dev, u8 port, int mtu, in mlx4_SET_PORT_general() argument
984 context->mtu = cpu_to_be16(mtu); in mlx4_SET_PORT_general()