Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c518 if (ipv4_usr_mask->ip4src) { in otx2_prepare_ipv4_flow()
519 memcpy(&pkt->ip4src, &ipv4_usr_hdr->ip4src, in otx2_prepare_ipv4_flow()
520 sizeof(pkt->ip4src)); in otx2_prepare_ipv4_flow()
521 memcpy(&pmask->ip4src, &ipv4_usr_mask->ip4src, in otx2_prepare_ipv4_flow()
522 sizeof(pmask->ip4src)); in otx2_prepare_ipv4_flow()
571 if (ipv4_l4_mask->ip4src) { in otx2_prepare_ipv4_flow()
572 memcpy(&pkt->ip4src, &ipv4_l4_hdr->ip4src, in otx2_prepare_ipv4_flow()
573 sizeof(pkt->ip4src)); in otx2_prepare_ipv4_flow()
574 memcpy(&pmask->ip4src, &ipv4_l4_mask->ip4src, in otx2_prepare_ipv4_flow()
575 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-6.1.9/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-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c242 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_tcp4()
255 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_udp4()
268 set_ip4(headers_c, headers_v, l3_mask->ip4src, l3_val->ip4src, in parse_ip4()
584 if (l4_mask->ip4src) in validate_tcpudp4()
604 if (l3_mask->ip4src) in validate_ip4()
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/sfc/
Dethtool_common.c724 ip_entry->ip4src = spec.rem_host[0]; in efx_ethtool_get_class_rule()
725 ip_mask->ip4src = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
803 uip_entry->ip4src = spec.rem_host[0]; in efx_ethtool_get_class_rule()
804 uip_mask->ip4src = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
1013 if (ip_mask->ip4src) { in efx_ethtool_set_class_rule()
1014 if (ip_mask->ip4src != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1017 spec.rem_host[0] = ip_entry->ip4src; in efx_ethtool_set_class_rule()
1082 if (uip_mask->ip4src) { in efx_ethtool_set_class_rule()
1083 if (uip_mask->ip4src != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1086 spec.rem_host[0] = uip_entry->ip4src; in efx_ethtool_set_class_rule()
/linux-6.1.9/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-6.1.9/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-6.1.9/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-6.1.9/include/uapi/linux/
Dethtool.h936 __be32 ip4src; member
953 __be32 ip4src; member
971 __be32 ip4src; member
/linux-6.1.9/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c471 rfse.sip_h[0] = l4ip4_h->ip4src; in enetc_set_cls_entry()
472 rfse.sip_m[0] = l4ip4_m->ip4src; in enetc_set_cls_entry()
488 rfse.sip_h[0] = l3ip4_h->ip4src; in enetc_set_cls_entry()
489 rfse.sip_m[0] = l3ip4_m->ip4src; in enetc_set_cls_entry()
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c432 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule()
433 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule()
/linux-6.1.9/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-6.1.9/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-6.1.9/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3402 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry()
3461 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
4364 if (tcp_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4366 else if (!tcp_ip4_spec->ip4src) in i40e_check_fdir_input_set()
4451 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4453 else if (!usr_ip4_spec->ip4src) in i40e_check_fdir_input_set()
4871 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
4903 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/
Drvu_npc_fs.c870 NPC_WRITE_FLOW(NPC_SIP_IPV4, ip4src, ntohl(pkt->ip4src), 0, in npc_update_flow()
871 ntohl(mask->ip4src), 0); in npc_update_flow()
Dmbox.h1427 __be32 ip4src; member
Drvu_debugfs.c2784 seq_printf(s, "%pI4 ", &rule->packet.ip4src); in rvu_dbg_npc_mcam_show_flows()
2785 seq_printf(s, "mask %pI4\n", &rule->mask.ip4src); in rvu_dbg_npc_mcam_show_flows()
/linux-6.1.9/net/ethtool/
Dioctl.c3151 if (v4_m_spec->ip4src) { in ethtool_rx_flow_rule_create()
3152 match->key.ipv4.src = v4_spec->ip4src; in ethtool_rx_flow_rule_create()
3153 match->mask.ipv4.src = v4_m_spec->ip4src; in ethtool_rx_flow_rule_create()
3159 if (v4_m_spec->ip4src || in ethtool_rx_flow_rule_create()
/linux-6.1.9/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2550 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2551 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2833 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2834 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
/linux-6.1.9/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c514 ntohl(fsp->h_u.tcp_ip4_spec.ip4src); in aq_set_data_fl3l4()
/linux-6.1.9/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-6.1.9/drivers/net/ethernet/cadence/
Dmacb_main.c3358 if (enable && (tp4sp_m->ip4src == 0xFFFFFFFF)) in gem_enable_flow_filters()
3393 if (tp4sp_m->ip4src == 0xFFFFFFFF) { in gem_prog_cmp_regs()
3397 w0 = tp4sp_v->ip4src; in gem_prog_cmp_regs()
3478 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter()
3532 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter()
/linux-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5923 if (!spec->ip4src) in hclge_fd_check_tcpip4_tuple()
5950 if (!spec->ip4src) in hclge_fd_check_ip4_tuple()
6251 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple()
6253 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple()
6281 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple()
6283 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple()
6725 spec->ip4src = cpu_to_be32(rule->tuples.src_ip[IPV4_INDEX]); in hclge_fd_get_tcpip4_info()
6726 spec_mask->ip4src = rule->unused_tuple & BIT(INNER_SRC_IP) ? in hclge_fd_get_tcpip4_info()
6750 spec->ip4src = cpu_to_be32(rule->tuples.src_ip[IPV4_INDEX]); in hclge_fd_get_ip4_info()
6751 spec_mask->ip4src = rule->unused_tuple & BIT(INNER_SRC_IP) ? in hclge_fd_get_ip4_info()

12