Lines Matching refs:mtu
607 u16 mtu, prev_mtu; in mlx4_common_set_port() local
648 mtu = be16_to_cpu(gen_context->mtu); in mlx4_common_set_port()
649 mtu = min_t(int, mtu, dev->caps.eth_mtu_cap[port]); in mlx4_common_set_port()
650 prev_mtu = slave_st->mtu[port]; in mlx4_common_set_port()
651 slave_st->mtu[port] = mtu; in mlx4_common_set_port()
652 if (mtu > master->max_mtu[port]) in mlx4_common_set_port()
653 master->max_mtu[port] = mtu; in mlx4_common_set_port()
654 if (mtu < prev_mtu && prev_mtu == in mlx4_common_set_port()
656 slave_st->mtu[port] = mtu; in mlx4_common_set_port()
657 master->max_mtu[port] = mtu; in mlx4_common_set_port()
661 master->slave_state[i].mtu[port]); in mlx4_common_set_port()
665 gen_context->mtu = cpu_to_be16(master->max_mtu[port]); in mlx4_common_set_port()
767 int mlx4_SET_PORT_general(struct mlx4_dev *dev, u8 port, int mtu, in mlx4_SET_PORT_general() argument
782 context->mtu = cpu_to_be16(mtu); in mlx4_SET_PORT_general()