Searched refs:ib_spec (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/infiniband/hw/mlx5/ |
H A D | fs.c | 185 const union ib_flow_spec *ib_spec, in parse_flow_attr() argument 205 if (ib_spec->type & IB_FLOW_SPEC_INNER) { in parse_flow_attr() 221 switch (ib_spec->type & ~IB_FLOW_SPEC_INNER) { in parse_flow_attr() 223 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) in parse_flow_attr() 228 ib_spec->eth.mask.dst_mac); in parse_flow_attr() 231 ib_spec->eth.val.dst_mac); in parse_flow_attr() 235 ib_spec->eth.mask.src_mac); in parse_flow_attr() 238 ib_spec->eth.val.src_mac); in parse_flow_attr() 240 if (ib_spec->eth.mask.vlan_tag) { in parse_flow_attr() 247 first_vid, ntohs(ib_spec->eth.mask.vlan_tag)); in parse_flow_attr() [all …]
|
/linux/drivers/infiniband/core/ |
H A D | uverbs_cmd.c | 2639 union ib_flow_spec *ib_spec, in kern_spec_to_ib_spec_action() argument 2642 ib_spec->type = kern_spec->type; in kern_spec_to_ib_spec_action() 2643 switch (ib_spec->type) { in kern_spec_to_ib_spec_action() 2649 ib_spec->flow_tag.size = sizeof(struct ib_flow_spec_action_tag); in kern_spec_to_ib_spec_action() 2650 ib_spec->flow_tag.tag_id = kern_spec->flow_tag.tag_id; in kern_spec_to_ib_spec_action() 2657 ib_spec->drop.size = sizeof(struct ib_flow_spec_action_drop); in kern_spec_to_ib_spec_action() 2663 ib_spec->action.act = uobj_get_obj_read(flow_action, in kern_spec_to_ib_spec_action() 2667 if (!ib_spec->action.act) in kern_spec_to_ib_spec_action() 2669 ib_spec->action.size = in kern_spec_to_ib_spec_action() 2673 ib_spec->action.act); in kern_spec_to_ib_spec_action() [all …]
|
/linux/drivers/infiniband/hw/mlx4/ |
H A D | main.c | 1347 union ib_flow_spec *ib_spec, in parse_flow_attr() argument 1352 switch (ib_spec->type) { in parse_flow_attr() 1354 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) in parse_flow_attr() 1358 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac, in parse_flow_attr() 1360 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac, in parse_flow_attr() 1362 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag; in parse_flow_attr() 1363 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag; in parse_flow_attr() 1366 if (FIELDS_NOT_SUPPORTED(ib_spec->ib.mask, LAST_IB_FIELD)) in parse_flow_attr() 1378 if (FIELDS_NOT_SUPPORTED(ib_spec->ipv4.mask, LAST_IPV4_FIELD)) in parse_flow_attr() 1382 mlx4_spec->ipv4.src_ip = ib_spec->ipv4.val.src_ip; in parse_flow_attr() [all …]
|