Home
last modified time | relevance | path

Searched refs:ib_spec (Results 1 – 4 of 4) sorted by relevance

/Linux-v5.4/drivers/infiniband/hw/mlx5/
Dmain.c2682 const union ib_flow_spec *ib_spec, in parse_flow_attr() argument
2702 if (ib_spec->type & IB_FLOW_SPEC_INNER) { in parse_flow_attr()
2718 switch (ib_spec->type & ~IB_FLOW_SPEC_INNER) { in parse_flow_attr()
2720 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) in parse_flow_attr()
2725 ib_spec->eth.mask.dst_mac); in parse_flow_attr()
2728 ib_spec->eth.val.dst_mac); in parse_flow_attr()
2732 ib_spec->eth.mask.src_mac); in parse_flow_attr()
2735 ib_spec->eth.val.src_mac); in parse_flow_attr()
2737 if (ib_spec->eth.mask.vlan_tag) { in parse_flow_attr()
2744 first_vid, ntohs(ib_spec->eth.mask.vlan_tag)); in parse_flow_attr()
[all …]
/Linux-v5.4/drivers/infiniband/core/
Duverbs_cmd.c2660 union ib_flow_spec *ib_spec, in kern_spec_to_ib_spec_action() argument
2663 ib_spec->type = kern_spec->type; in kern_spec_to_ib_spec_action()
2664 switch (ib_spec->type) { in kern_spec_to_ib_spec_action()
2670 ib_spec->flow_tag.size = sizeof(struct ib_flow_spec_action_tag); in kern_spec_to_ib_spec_action()
2671 ib_spec->flow_tag.tag_id = kern_spec->flow_tag.tag_id; in kern_spec_to_ib_spec_action()
2678 ib_spec->drop.size = sizeof(struct ib_flow_spec_action_drop); in kern_spec_to_ib_spec_action()
2684 ib_spec->action.act = uobj_get_obj_read(flow_action, in kern_spec_to_ib_spec_action()
2688 if (!ib_spec->action.act) in kern_spec_to_ib_spec_action()
2690 ib_spec->action.size = in kern_spec_to_ib_spec_action()
2694 ib_spec->action.act); in kern_spec_to_ib_spec_action()
[all …]
Duverbs.h277 union ib_flow_spec *ib_spec);
/Linux-v5.4/drivers/infiniband/hw/mlx4/
Dmain.c1339 union ib_flow_spec *ib_spec, in parse_flow_attr() argument
1344 switch (ib_spec->type) { in parse_flow_attr()
1346 if (FIELDS_NOT_SUPPORTED(ib_spec->eth.mask, LAST_ETH_FIELD)) in parse_flow_attr()
1350 memcpy(mlx4_spec->eth.dst_mac, ib_spec->eth.val.dst_mac, in parse_flow_attr()
1352 memcpy(mlx4_spec->eth.dst_mac_msk, ib_spec->eth.mask.dst_mac, in parse_flow_attr()
1354 mlx4_spec->eth.vlan_tag = ib_spec->eth.val.vlan_tag; in parse_flow_attr()
1355 mlx4_spec->eth.vlan_tag_msk = ib_spec->eth.mask.vlan_tag; in parse_flow_attr()
1358 if (FIELDS_NOT_SUPPORTED(ib_spec->ib.mask, LAST_IB_FIELD)) in parse_flow_attr()
1370 if (FIELDS_NOT_SUPPORTED(ib_spec->ipv4.mask, LAST_IPV4_FIELD)) in parse_flow_attr()
1374 mlx4_spec->ipv4.src_ip = ib_spec->ipv4.val.src_ip; in parse_flow_attr()
[all …]