Searched refs:ib_spec (Results 1 – 4 of 4) sorted by relevance
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | fs.c | 195 const union ib_flow_spec *ib_spec, in parse_flow_attr() argument 215 if (ib_spec->type & IB_FLOW_SPEC_INNER) { in parse_flow_attr() 231 switch (ib_spec->type & ~IB_FLOW_SPEC_INNER) { in parse_flow_attr() 233 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) in parse_flow_attr() 238 ib_spec->eth.mask.dst_mac); in parse_flow_attr() 241 ib_spec->eth.val.dst_mac); in parse_flow_attr() 245 ib_spec->eth.mask.src_mac); in parse_flow_attr() 248 ib_spec->eth.val.src_mac); in parse_flow_attr() 250 if (ib_spec->eth.mask.vlan_tag) { in parse_flow_attr() 257 first_vid, ntohs(ib_spec->eth.mask.vlan_tag)); in parse_flow_attr() [all …]
|
/kernel/linux/linux-5.10/drivers/infiniband/core/ |
D | uverbs_cmd.c | 2627 union ib_flow_spec *ib_spec, in kern_spec_to_ib_spec_action() argument 2630 ib_spec->type = kern_spec->type; in kern_spec_to_ib_spec_action() 2631 switch (ib_spec->type) { in kern_spec_to_ib_spec_action() 2637 ib_spec->flow_tag.size = sizeof(struct ib_flow_spec_action_tag); in kern_spec_to_ib_spec_action() 2638 ib_spec->flow_tag.tag_id = kern_spec->flow_tag.tag_id; in kern_spec_to_ib_spec_action() 2645 ib_spec->drop.size = sizeof(struct ib_flow_spec_action_drop); in kern_spec_to_ib_spec_action() 2651 ib_spec->action.act = uobj_get_obj_read(flow_action, in kern_spec_to_ib_spec_action() 2655 if (!ib_spec->action.act) in kern_spec_to_ib_spec_action() 2657 ib_spec->action.size = in kern_spec_to_ib_spec_action() 2661 ib_spec->action.act); in kern_spec_to_ib_spec_action() [all …]
|
D | uverbs.h | 277 union ib_flow_spec *ib_spec);
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx4/ |
D | main.c | 1348 union ib_flow_spec *ib_spec, in parse_flow_attr() argument 1353 switch (ib_spec->type) { in parse_flow_attr() 1355 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) in parse_flow_attr() 1359 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac, in parse_flow_attr() 1361 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac, in parse_flow_attr() 1363 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag; in parse_flow_attr() 1364 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag; in parse_flow_attr() 1367 if (FIELDS_NOT_SUPPORTED(ib_spec->ib.mask, LAST_IB_FIELD)) in parse_flow_attr() 1379 if (FIELDS_NOT_SUPPORTED(ib_spec->ipv4.mask, LAST_IPV4_FIELD)) in parse_flow_attr() 1383 mlx4_spec->ipv4.src_ip = ib_spec->ipv4.val.src_ip; in parse_flow_attr() [all …]
|