Searched refs:flow_spec (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| H A D | otx2_tc.c | 554 static int otx2_tc_process_vlan(struct otx2_nic *nic, struct flow_msg *flow_spec, in otx2_tc_process_vlan() argument 597 flow_spec->vlan_itci = htons(vlan_tci); in otx2_tc_process_vlan() 601 flow_spec->vlan_tci = htons(vlan_tci); in otx2_tc_process_vlan() 615 struct flow_msg *flow_spec = &req->packet; in otx2_tc_prepare_flow() local 649 flow_spec->etype = match.key->n_proto; in otx2_tc_prepare_flow() 693 if (ntohs(flow_spec->etype) == ETH_P_IP) { in otx2_tc_prepare_flow() 694 flow_spec->ip_flag = val ? IPV4_FLAG_MORE : 0; in otx2_tc_prepare_flow() 697 } else if (ntohs(flow_spec->etype) == ETH_P_IPV6) { in otx2_tc_prepare_flow() 698 flow_spec->next_header = val ? in otx2_tc_prepare_flow() 723 ether_addr_copy(flow_spec->dmac, (u8 *)&match.key->dst); in otx2_tc_prepare_flow() [all …]
|
| H A D | otx2_flows.c | 16 struct ethtool_rx_flow_spec flow_spec; member 669 nfc->fs = iter->flow_spec; in otx2_get_flow() 1192 u64 ring_cookie = flow->flow_spec.ring_cookie; in otx2_add_flow_msg() 1213 err = otx2_prepare_flow_request(&flow->flow_spec, in otx2_add_flow_msg() 1242 err = otx2_prepare_flow_request(&flow->flow_spec, req); in otx2_add_flow_msg() 1266 if (flow->flow_spec.flow_type & FLOW_RSS) { in otx2_add_flow_msg() 1331 memcpy(&pf_mac->flow_spec, &flow->flow_spec, in otx2_add_flow_with_pfmac() 1333 pf_mac->flow_spec.location = pf_mac->location; in otx2_add_flow_with_pfmac() 1336 eth_hdr = &pf_mac->flow_spec.h_u.ether_spec; in otx2_add_flow_with_pfmac() 1400 flow->flow_spec = *fsp; in otx2_add_flow() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_fs_ethtool.c | 63 struct ethtool_rx_flow_spec flow_spec; member 403 if (iter->flow_spec.location > rule->flow_spec.location) in add_rule_to_list() 529 if (iter->flow_spec.location == location) in find_ethtool_rule() 750 eth_rule->flow_spec = *fs; in mlx5e_ethtool_flow_replace() 802 if (eth_rule->flow_spec.location != location) in mlx5e_ethtool_get_flow() 806 info->fs = eth_rule->flow_spec; in mlx5e_ethtool_get_flow()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_ethtool.c | 1645 memset(&loc_rule->flow_spec, 0, in mlx4_en_flow_replace() 1656 memcpy(&loc_rule->flow_spec, &cmd->fs, in mlx4_en_flow_replace() 1691 memset(&rule->flow_spec, 0, sizeof(struct ethtool_rx_flow_spec)); in mlx4_en_flow_detach() 1710 memcpy(&cmd->fs, &rule->flow_spec, in mlx4_en_get_flow()
|