Home
last modified time | relevance | path

Searched refs:flow_spec (Results 1 – 6 of 6) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_tc.c476 struct flow_msg *flow_spec = &req->packet; in otx2_tc_prepare_flow() local
505 flow_spec->etype = match.key->n_proto; in otx2_tc_prepare_flow()
545 ether_addr_copy(flow_spec->dmac, (u8 *)&match.key->dst); in otx2_tc_prepare_flow()
556 if ((ntohs(flow_spec->etype) != ETH_P_IP) && in otx2_tc_prepare_flow()
565 flow_spec->tos = match.key->tos; in otx2_tc_prepare_flow()
593 flow_spec->vlan_tci = htons(vlan_tci); in otx2_tc_prepare_flow()
604 flow_spec->ip4dst = match.key->dst; in otx2_tc_prepare_flow()
608 flow_spec->ip4src = match.key->src; in otx2_tc_prepare_flow()
624 memcpy(&flow_spec->ip6dst, in otx2_tc_prepare_flow()
626 sizeof(flow_spec->ip6dst)); in otx2_tc_prepare_flow()
[all …]
Dotx2_flows.c18 struct ethtool_rx_flow_spec flow_spec; member
474 nfc->fs = iter->flow_spec; in otx2_get_flow()
918 u64 ring_cookie = flow->flow_spec.ring_cookie; in otx2_add_flow_msg()
932 err = otx2_prepare_flow_request(&flow->flow_spec, req); in otx2_add_flow_msg()
950 if (flow->flow_spec.flow_type & FLOW_RSS) { in otx2_add_flow_msg()
1015 memcpy(&pf_mac->flow_spec, &flow->flow_spec, in otx2_add_flow_with_pfmac()
1017 pf_mac->flow_spec.location = pf_mac->location; in otx2_add_flow_with_pfmac()
1020 eth_hdr = &pf_mac->flow_spec.h_u.ether_spec; in otx2_add_flow_with_pfmac()
1069 flow->flow_spec = *fsp; in otx2_add_flow()
1074 if (otx2_is_flow_rule_dmacfilter(pfvf, &flow->flow_spec)) { in otx2_add_flow()
[all …]
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c63 struct ethtool_rx_flow_spec flow_spec; member
407 if (iter->flow_spec.location > rule->flow_spec.location) in add_rule_to_list()
533 if (iter->flow_spec.location == location) in find_ethtool_rule()
754 eth_rule->flow_spec = *fs; in mlx5e_ethtool_flow_replace()
806 if (eth_rule->flow_spec.location != location) in mlx5e_ethtool_get_flow()
810 info->fs = eth_rule->flow_spec; in mlx5e_ethtool_get_flow()
/Linux-v6.1/drivers/infiniband/hw/mlx5/
Dfs.c544 union ib_flow_spec *flow_spec; in flow_is_multicast_only() local
550 flow_spec = (union ib_flow_spec *)(ib_attr + 1); in flow_is_multicast_only()
551 if (flow_spec->type == IB_FLOW_SPEC_IPV4) { in flow_is_multicast_only()
554 ipv4_spec = (struct ib_flow_spec_ipv4 *)flow_spec; in flow_is_multicast_only()
561 if (flow_spec->type == IB_FLOW_SPEC_ETH) { in flow_is_multicast_only()
564 eth_spec = (struct ib_flow_spec_eth *)flow_spec; in flow_is_multicast_only()
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1664 memset(&loc_rule->flow_spec, 0, in mlx4_en_flow_replace()
1675 memcpy(&loc_rule->flow_spec, &cmd->fs, in mlx4_en_flow_replace()
1710 memset(&rule->flow_spec, 0, sizeof(struct ethtool_rx_flow_spec)); in mlx4_en_flow_detach()
1729 memcpy(&cmd->fs, &rule->flow_spec, in mlx4_en_get_flow()
Dmlx4_en.h493 struct ethtool_rx_flow_spec flow_spec; member