Home
last modified time | relevance | path

Searched refs:ip4src (Results 1 – 25 of 29) sorted by relevance

12

/linux-5.19.10/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c503 if (ipv4_usr_mask->ip4src) { in otx2_prepare_ipv4_flow()
504 memcpy(&pkt->ip4src, &ipv4_usr_hdr->ip4src, in otx2_prepare_ipv4_flow()
505 sizeof(pkt->ip4src)); in otx2_prepare_ipv4_flow()
506 memcpy(&pmask->ip4src, &ipv4_usr_mask->ip4src, in otx2_prepare_ipv4_flow()
507 sizeof(pmask->ip4src)); in otx2_prepare_ipv4_flow()
556 if (ipv4_l4_mask->ip4src) { in otx2_prepare_ipv4_flow()
557 memcpy(&pkt->ip4src, &ipv4_l4_hdr->ip4src, in otx2_prepare_ipv4_flow()
558 sizeof(pkt->ip4src)); in otx2_prepare_ipv4_flow()
559 memcpy(&pmask->ip4src, &ipv4_l4_mask->ip4src, in otx2_prepare_ipv4_flow()
560 sizeof(pmask->ip4src)); in otx2_prepare_ipv4_flow()
[all …]
Dotx2_tc.c608 flow_spec->ip4src = match.key->src; in otx2_tc_prepare_flow()
609 flow_mask->ip4src = match.mask->src; in otx2_tc_prepare_flow()
/linux-5.19.10/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c145 fsp->h_u.usr_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry()
147 fsp->m_u.usr_ip4_spec.ip4src = rule->mask.v4.src_ip; in ice_get_ethtool_fdir_entry()
159 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry()
163 fsp->m_u.tcp_ip4_spec.ip4src = rule->mask.v4.src_ip; in ice_get_ethtool_fdir_entry()
922 if (!tcp_ip4_spec->psrc && !tcp_ip4_spec->ip4src && in ice_set_fdir_ip4_seg()
947 if (tcp_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_seg()
951 else if (!tcp_ip4_spec->ip4src) in ice_set_fdir_ip4_seg()
1015 if (!usr_ip4_spec->ip4src && !usr_ip4_spec->ip4dst) in ice_set_fdir_ip4_usr_seg()
1022 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_usr_seg()
1026 else if (!usr_ip4_spec->ip4src) in ice_set_fdir_ip4_usr_seg()
[all …]
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c225 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_tcp4()
238 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_udp4()
251 set_ip4(headers_c, headers_v, l3_mask->ip4src, l3_val->ip4src, in parse_ip4()
572 if (l4_mask->ip4src) in validate_tcpudp4()
592 if (l3_mask->ip4src) in validate_ip4()
/linux-5.19.10/drivers/net/ethernet/sfc/
Dethtool_common.c686 ip_entry->ip4src = spec.rem_host[0]; in efx_ethtool_get_class_rule()
687 ip_mask->ip4src = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
765 uip_entry->ip4src = spec.rem_host[0]; in efx_ethtool_get_class_rule()
766 uip_mask->ip4src = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
975 if (ip_mask->ip4src) { in efx_ethtool_set_class_rule()
976 if (ip_mask->ip4src != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
979 spec.rem_host[0] = ip_entry->ip4src; in efx_ethtool_set_class_rule()
1044 if (uip_mask->ip4src) { in efx_ethtool_set_class_rule()
1045 if (uip_mask->ip4src != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1048 spec.rem_host[0] = uip_entry->ip4src; in efx_ethtool_set_class_rule()
/linux-5.19.10/drivers/net/ethernet/sfc/falcon/
Dethtool.c834 ip_entry->ip4src = spec.rem_host[0]; in ef4_ethtool_get_class_rule()
835 ip_mask->ip4src = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule()
913 uip_entry->ip4src = spec.rem_host[0]; in ef4_ethtool_get_class_rule()
914 uip_mask->ip4src = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule()
1078 if (ip_mask->ip4src) { in ef4_ethtool_set_class_rule()
1079 if (ip_mask->ip4src != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule()
1082 spec.rem_host[0] = ip_entry->ip4src; in ef4_ethtool_set_class_rule()
1147 if (uip_mask->ip4src) { in ef4_ethtool_set_class_rule()
1148 if (uip_mask->ip4src != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule()
1151 spec.rem_host[0] = uip_entry->ip4src; in ef4_ethtool_set_class_rule()
/linux-5.19.10/drivers/net/ethernet/sfc/siena/
Dethtool_common.c687 ip_entry->ip4src = spec.rem_host[0]; in efx_ethtool_get_class_rule()
688 ip_mask->ip4src = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
766 uip_entry->ip4src = spec.rem_host[0]; in efx_ethtool_get_class_rule()
767 uip_mask->ip4src = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
977 if (ip_mask->ip4src) { in efx_ethtool_set_class_rule()
978 if (ip_mask->ip4src != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
981 spec.rem_host[0] = ip_entry->ip4src; in efx_ethtool_set_class_rule()
1046 if (uip_mask->ip4src) { in efx_ethtool_set_class_rule()
1047 if (uip_mask->ip4src != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1050 spec.rem_host[0] = uip_entry->ip4src; in efx_ethtool_set_class_rule()
/linux-5.19.10/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c1088 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
1093 fsp->m_u.tcp_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
1101 fsp->h_u.ah_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
1105 fsp->m_u.ah_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
1111 fsp->h_u.usr_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
1117 fsp->m_u.usr_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
1276 fltr->ip_data.v4_addrs.src_ip = fsp->h_u.tcp_ip4_spec.ip4src; in iavf_add_fdir_fltr_info()
1281 fltr->ip_mask.v4_addrs.src_ip = fsp->m_u.tcp_ip4_spec.ip4src; in iavf_add_fdir_fltr_info()
1289 fltr->ip_data.v4_addrs.src_ip = fsp->h_u.ah_ip4_spec.ip4src; in iavf_add_fdir_fltr_info()
1293 fltr->ip_mask.v4_addrs.src_ip = fsp->m_u.ah_ip4_spec.ip4src; in iavf_add_fdir_fltr_info()
[all …]
/linux-5.19.10/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c361 if (uip_mask->ip4src) { in dpaa2_eth_prep_uip_rule()
363 *(__be32 *)(key + off) = uip_value->ip4src; in dpaa2_eth_prep_uip_rule()
364 *(__be32 *)(mask + off) = uip_mask->ip4src; in dpaa2_eth_prep_uip_rule()
415 if (l4_mask->ip4src) { in dpaa2_eth_prep_l4_rule()
417 *(__be32 *)(key + off) = l4_value->ip4src; in dpaa2_eth_prep_l4_rule()
418 *(__be32 *)(mask + off) = l4_mask->ip4src; in dpaa2_eth_prep_l4_rule()
/linux-5.19.10/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c364 rfse.sip_h[0] = l4ip4_h->ip4src; in enetc_set_cls_entry()
365 rfse.sip_m[0] = l4ip4_m->ip4src; in enetc_set_cls_entry()
381 rfse.sip_h[0] = l3ip4_h->ip4src; in enetc_set_cls_entry()
382 rfse.sip_m[0] = l3ip4_m->ip4src; in enetc_set_cls_entry()
/linux-5.19.10/include/uapi/linux/
Dethtool.h891 __be32 ip4src; member
908 __be32 ip4src; member
926 __be32 ip4src; member
/linux-5.19.10/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1369 if (!all_zeros_or_all_ones(l4_mask->ip4src) || in mlx4_en_validate_flow()
1379 (!l3_mask->ip4src && !l3_mask->ip4dst) || in mlx4_en_validate_flow()
1380 !all_zeros_or_all_ones(l3_mask->ip4src) || in mlx4_en_validate_flow()
1487 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule()
1488 if (l3_mask->ip4src) in add_ip_rule()
1531 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule()
1543 spec_l3->ipv4.src_ip = cmd->fs.h_u.udp_ip4_spec.ip4src; in add_tcp_udp_rule()
1549 if (l4_mask->ip4src) in add_tcp_udp_rule()
/linux-5.19.10/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c447 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule()
448 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule()
/linux-5.19.10/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c935 gfar_set_attribute(be32_to_cpu(value->ip4src), in gfar_set_basic_ip()
936 be32_to_cpu(mask->ip4src), in gfar_set_basic_ip()
955 gfar_set_attribute(be32_to_cpu(value->ip4src), in gfar_set_user_ip()
956 be32_to_cpu(mask->ip4src), in gfar_set_user_ip()
/linux-5.19.10/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc_fs.c836 NPC_WRITE_FLOW(NPC_SIP_IPV4, ip4src, ntohl(pkt->ip4src), 0, in npc_update_flow()
837 ntohl(mask->ip4src), 0); in npc_update_flow()
Dmbox.h1357 __be32 ip4src; member
Drvu_debugfs.c2435 seq_printf(s, "%pI4 ", &rule->packet.ip4src); in rvu_dbg_npc_mcam_show_flows()
2436 seq_printf(s, "mask %pI4\n", &rule->mask.ip4src); in rvu_dbg_npc_mcam_show_flows()
/linux-5.19.10/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c1683 memcpy(&fs->h_u.tcp_ip4_spec.ip4src, &dfs->val.fip[0], in cxgb4_fill_filter_rule()
1684 sizeof(fs->h_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule()
1685 memcpy(&fs->m_u.tcp_ip4_spec.ip4src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule()
1686 sizeof(fs->m_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule()
/linux-5.19.10/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3308 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry()
3367 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
4257 if (tcp_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4259 else if (!tcp_ip4_spec->ip4src) in i40e_check_fdir_input_set()
4344 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4346 else if (!usr_ip4_spec->ip4src) in i40e_check_fdir_input_set()
4772 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
4804 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
/linux-5.19.10/net/ethtool/
Dioctl.c3161 if (v4_m_spec->ip4src) { in ethtool_rx_flow_rule_create()
3162 match->key.ipv4.src = v4_spec->ip4src; in ethtool_rx_flow_rule_create()
3163 match->mask.ipv4.src = v4_m_spec->ip4src; in ethtool_rx_flow_rule_create()
3169 if (v4_m_spec->ip4src || in ethtool_rx_flow_rule_create()
/linux-5.19.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2554 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2555 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2837 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2838 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
/linux-5.19.10/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c514 ntohl(fsp->h_u.tcp_ip4_spec.ip4src); in aq_set_data_fl3l4()
/linux-5.19.10/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c661 &fs->h_u.usr_ip4_spec.ip4src, in bcmgenet_hfb_create_rxnfc_filter()
662 &fs->m_u.usr_ip4_spec.ip4src, in bcmgenet_hfb_create_rxnfc_filter()
663 sizeof(fs->h_u.usr_ip4_spec.ip4src)); in bcmgenet_hfb_create_rxnfc_filter()
1400 if (VALIDATE_MASK(l4_mask->ip4src) || in bcmgenet_validate_flow()
/linux-5.19.10/drivers/net/ethernet/cadence/
Dmacb_main.c3363 if (enable && (tp4sp_m->ip4src == 0xFFFFFFFF)) in gem_enable_flow_filters()
3398 if (tp4sp_m->ip4src == 0xFFFFFFFF) { in gem_prog_cmp_regs()
3402 w0 = tp4sp_v->ip4src; in gem_prog_cmp_regs()
3483 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter()
3536 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter()
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5711 if (!spec->ip4src) in hclge_fd_check_tcpip4_tuple()
5738 if (!spec->ip4src) in hclge_fd_check_ip4_tuple()
6039 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple()
6041 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple()
6069 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple()
6071 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple()
6513 spec->ip4src = cpu_to_be32(rule->tuples.src_ip[IPV4_INDEX]); in hclge_fd_get_tcpip4_info()
6514 spec_mask->ip4src = rule->unused_tuple & BIT(INNER_SRC_IP) ? in hclge_fd_get_tcpip4_info()
6538 spec->ip4src = cpu_to_be32(rule->tuples.src_ip[IPV4_INDEX]); in hclge_fd_get_ip4_info()
6539 spec_mask->ip4src = rule->unused_tuple & BIT(INNER_SRC_IP) ? in hclge_fd_get_ip4_info()

12