Home
last modified time | relevance | path

Searched refs:is_eth (Results 1 – 6 of 6) sorted by relevance

/linux-4.4.14/drivers/infiniband/hw/mlx4/
Dsysfs.c593 int is_eth = rdma_port_get_link_layer(&p->dev->ib_dev, p->port_num) == in add_vf_smi_entries() local
598 if (is_eth || p->slave == mlx4_master_func_num(p->dev->dev)) in add_vf_smi_entries()
628 int is_eth = rdma_port_get_link_layer(&p->dev->ib_dev, p->port_num) == in remove_vf_smi_entries() local
631 if (is_eth || p->slave == mlx4_master_func_num(p->dev->dev)) in remove_vf_smi_entries()
643 int is_eth = rdma_port_get_link_layer(&dev->ib_dev, port_num) == in add_port() local
663 is_eth ? NULL : store_port_pkey, in add_port()
Dcq.c580 unsigned tail, struct mlx4_cqe *cqe, int is_eth) in use_tunnel_data() argument
594 if (is_eth) { in use_tunnel_data()
667 int is_eth; in mlx4_ib_poll_one() local
852 is_eth = (rdma_port_get_link_layer(wc->qp->device, in mlx4_ib_poll_one()
860 cqe, is_eth); in mlx4_ib_poll_one()
871 if (is_eth) { in mlx4_ib_poll_one()
Dqp.c1302 int is_eth = rdma_port_get_link_layer(&dev->ib_dev, port) == in _mlx4_set_path() local
1339 if (is_eth) { in _mlx4_set_path()
1831 int is_eth = rdma_port_get_link_layer( in __mlx4_ib_modify_qp() local
1834 if (is_eth) { in __mlx4_ib_modify_qp()
2281 bool is_eth; in build_mlx_header() local
2289 is_eth = rdma_port_get_link_layer(sqp->qp.ibqp.device, sqp->qp.port) == IB_LINK_LAYER_ETHERNET; in build_mlx_header()
2291 if (is_eth) { in build_mlx_header()
2317 ib_ud_header_init(send_size, !is_eth, is_eth, is_vlan, is_grh, 0, &sqp->ud_header); in build_mlx_header()
2319 if (!is_eth) { in build_mlx_header()
2332 if (is_eth) in build_mlx_header()
[all …]
Dmad.c473 u8 is_eth = dev->dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH; in mlx4_ib_send_to_slave() local
512 if (is_eth) { in mlx4_ib_send_to_slave()
550 if (is_eth) { in mlx4_ib_send_to_slave()
612 int is_eth = 0; in mlx4_ib_demux_mad() local
615 is_eth = 0; in mlx4_ib_demux_mad()
617 is_eth = 1; in mlx4_ib_demux_mad()
619 if (is_eth) { in mlx4_ib_demux_mad()
Dmain.c872 u8 is_eth = mdev->dev->caps.port_type[port] == MLX4_PORT_TYPE_ETH; in mlx4_ib_modify_port() local
881 if (is_eth) in mlx4_ib_modify_port()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dport.c701 int is_eth; in mlx4_common_set_port() local
716 is_eth = op_mod; in mlx4_common_set_port()
720 if (is_eth) { in mlx4_common_set_port()
897 err = mlx4_cmd(dev, inbox->dma, port, is_eth, MLX4_CMD_SET_PORT, in mlx4_common_set_port()