Lines Matching refs:ib_spec

1299 			   union ib_flow_spec *ib_spec,  in parse_flow_attr()  argument
1304 switch (ib_spec->type) { in parse_flow_attr()
1307 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac, in parse_flow_attr()
1309 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac, in parse_flow_attr()
1311 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag; in parse_flow_attr()
1312 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag; in parse_flow_attr()
1325 mlx4_spec->ipv4.src_ip = ib_spec->ipv4.val.src_ip; in parse_flow_attr()
1326 mlx4_spec->ipv4.src_ip_msk = ib_spec->ipv4.mask.src_ip; in parse_flow_attr()
1327 mlx4_spec->ipv4.dst_ip = ib_spec->ipv4.val.dst_ip; in parse_flow_attr()
1328 mlx4_spec->ipv4.dst_ip_msk = ib_spec->ipv4.mask.dst_ip; in parse_flow_attr()
1333 type = ib_spec->type == IB_FLOW_SPEC_TCP ? in parse_flow_attr()
1336 mlx4_spec->tcp_udp.dst_port = ib_spec->tcp_udp.val.dst_port; in parse_flow_attr()
1337 mlx4_spec->tcp_udp.dst_port_msk = ib_spec->tcp_udp.mask.dst_port; in parse_flow_attr()
1338 mlx4_spec->tcp_udp.src_port = ib_spec->tcp_udp.val.src_port; in parse_flow_attr()
1339 mlx4_spec->tcp_udp.src_port_msk = ib_spec->tcp_udp.mask.src_port; in parse_flow_attr()
1432 union ib_flow_spec ib_spec; in __mlx4_ib_create_default_rules() local
1438 ib_spec.type = IB_FLOW_SPEC_IB; in __mlx4_ib_create_default_rules()
1439 ib_spec.size = sizeof(struct ib_flow_spec_ib); in __mlx4_ib_create_default_rules()
1447 ret = parse_flow_attr(mdev->dev, 0, &ib_spec, in __mlx4_ib_create_default_rules()
1559 union ib_flow_spec *ib_spec; in mlx4_ib_tunnel_steer_add() local
1568 ib_spec = (union ib_flow_spec *)ib_flow; in mlx4_ib_tunnel_steer_add()
1570 if (ib_spec->type != IB_FLOW_SPEC_ETH || flow_attr->num_of_specs != 1) in mlx4_ib_tunnel_steer_add()
1573 err = mlx4_tunnel_steer_add(to_mdev(qp->device)->dev, ib_spec->eth.val.dst_mac, in mlx4_ib_tunnel_steer_add()
2536 struct ib_flow_spec_ib *ib_spec; in mlx4_ib_steer_qp_reg() local
2547 ib_spec = (struct ib_flow_spec_ib *)(flow + 1); in mlx4_ib_steer_qp_reg()
2548 ib_spec->type = IB_FLOW_SPEC_IB; in mlx4_ib_steer_qp_reg()
2549 ib_spec->size = sizeof(struct ib_flow_spec_ib); in mlx4_ib_steer_qp_reg()
2551 memset(&ib_spec->mask, 0, sizeof(ib_spec->mask)); in mlx4_ib_steer_qp_reg()