Lines Matching refs:ib_spec

861 			   union ib_flow_spec *ib_spec,  in parse_flow_attr()  argument
866 switch (ib_spec->type) { in parse_flow_attr()
869 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac, in parse_flow_attr()
871 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac, in parse_flow_attr()
873 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag; in parse_flow_attr()
874 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag; in parse_flow_attr()
887 mlx4_spec->ipv4.src_ip = ib_spec->ipv4.val.src_ip; in parse_flow_attr()
888 mlx4_spec->ipv4.src_ip_msk = ib_spec->ipv4.mask.src_ip; in parse_flow_attr()
889 mlx4_spec->ipv4.dst_ip = ib_spec->ipv4.val.dst_ip; in parse_flow_attr()
890 mlx4_spec->ipv4.dst_ip_msk = ib_spec->ipv4.mask.dst_ip; in parse_flow_attr()
895 type = ib_spec->type == IB_FLOW_SPEC_TCP ? in parse_flow_attr()
898 mlx4_spec->tcp_udp.dst_port = ib_spec->tcp_udp.val.dst_port; in parse_flow_attr()
899 mlx4_spec->tcp_udp.dst_port_msk = ib_spec->tcp_udp.mask.dst_port; in parse_flow_attr()
900 mlx4_spec->tcp_udp.src_port = ib_spec->tcp_udp.val.src_port; in parse_flow_attr()
901 mlx4_spec->tcp_udp.src_port_msk = ib_spec->tcp_udp.mask.src_port; in parse_flow_attr()
994 union ib_flow_spec ib_spec; in __mlx4_ib_create_default_rules() local
1000 ib_spec.type = IB_FLOW_SPEC_IB; in __mlx4_ib_create_default_rules()
1001 ib_spec.size = sizeof(struct ib_flow_spec_ib); in __mlx4_ib_create_default_rules()
1009 ret = parse_flow_attr(mdev->dev, 0, &ib_spec, in __mlx4_ib_create_default_rules()
1121 union ib_flow_spec *ib_spec; in mlx4_ib_tunnel_steer_add() local
1130 ib_spec = (union ib_flow_spec *)ib_flow; in mlx4_ib_tunnel_steer_add()
1132 if (ib_spec->type != IB_FLOW_SPEC_ETH || flow_attr->num_of_specs != 1) in mlx4_ib_tunnel_steer_add()
1135 err = mlx4_tunnel_steer_add(to_mdev(qp->device)->dev, ib_spec->eth.val.dst_mac, in mlx4_ib_tunnel_steer_add()
2497 struct ib_flow_spec_ib *ib_spec; in mlx4_ib_steer_qp_reg() local
2508 ib_spec = (struct ib_flow_spec_ib *)(flow + 1); in mlx4_ib_steer_qp_reg()
2509 ib_spec->type = IB_FLOW_SPEC_IB; in mlx4_ib_steer_qp_reg()
2510 ib_spec->size = sizeof(struct ib_flow_spec_ib); in mlx4_ib_steer_qp_reg()
2512 memset(&ib_spec->mask, 0, sizeof(ib_spec->mask)); in mlx4_ib_steer_qp_reg()