/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_flows.c | 501 if (ipv4_usr_mask->ip4src) { in otx2_prepare_ipv4_flow() 502 memcpy(&pkt->ip4src, &ipv4_usr_hdr->ip4src, in otx2_prepare_ipv4_flow() 503 sizeof(pkt->ip4src)); in otx2_prepare_ipv4_flow() 504 memcpy(&pmask->ip4src, &ipv4_usr_mask->ip4src, in otx2_prepare_ipv4_flow() 554 if (ipv4_l4_mask->ip4src) { in otx2_prepare_ipv4_flow() 555 memcpy(&pkt->ip4src, &ipv4_l4_hdr->ip4src, in otx2_prepare_ipv4_flow() 556 sizeof(pkt->ip4src)); in otx2_prepare_ipv4_flow() 557 memcpy(&pmask->ip4src, &ipv4_l4_mask->ip4src, in otx2_prepare_ipv4_flow() 609 if (ah_esp_mask->ip4src) { in otx2_prepare_ipv4_flow() 610 memcpy(&pkt->ip4src, &ah_esp_hdr->ip4src, in otx2_prepare_ipv4_flow() [all …]
|
A D | otx2_tc.c | 531 flow_spec->ip4src = match.key->src; in otx2_tc_prepare_flow() 532 flow_mask->ip4src = match.mask->src; in otx2_tc_prepare_flow()
|
/linux/drivers/net/ethernet/intel/ice/ |
A D | ice_ethtool_fdir.c | 144 fsp->h_u.usr_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry() 146 fsp->m_u.usr_ip4_spec.ip4src = rule->mask.v4.src_ip; in ice_get_ethtool_fdir_entry() 158 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry() 162 fsp->m_u.tcp_ip4_spec.ip4src = rule->mask.v4.src_ip; in ice_get_ethtool_fdir_entry() 776 if (!tcp_ip4_spec->psrc && !tcp_ip4_spec->ip4src && in ice_set_fdir_ip4_seg() 801 if (tcp_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_seg() 805 else if (!tcp_ip4_spec->ip4src) in ice_set_fdir_ip4_seg() 869 if (!usr_ip4_spec->ip4src && !usr_ip4_spec->ip4dst) in ice_set_fdir_ip4_usr_seg() 876 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_usr_seg() 880 else if (!usr_ip4_spec->ip4src) in ice_set_fdir_ip4_usr_seg() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
A D | en_fs_ethtool.c | 225 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/drivers/net/ethernet/sfc/falcon/ |
A D | ethtool.c | 828 ip_entry->ip4src = spec.rem_host[0]; in ef4_ethtool_get_class_rule() 829 ip_mask->ip4src = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule() 907 uip_entry->ip4src = spec.rem_host[0]; in ef4_ethtool_get_class_rule() 908 uip_mask->ip4src = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule() 1072 if (ip_mask->ip4src) { in ef4_ethtool_set_class_rule() 1073 if (ip_mask->ip4src != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule() 1076 spec.rem_host[0] = ip_entry->ip4src; in ef4_ethtool_set_class_rule() 1141 if (uip_mask->ip4src) { in ef4_ethtool_set_class_rule() 1142 if (uip_mask->ip4src != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule() 1145 spec.rem_host[0] = uip_entry->ip4src; in ef4_ethtool_set_class_rule()
|
/linux/drivers/net/ethernet/sfc/ |
A D | ethtool_common.c | 686 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/drivers/net/ethernet/intel/iavf/ |
A D | iavf_ethtool.c | 1080 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1085 fsp->m_u.tcp_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1093 fsp->h_u.ah_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1097 fsp->m_u.ah_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1103 fsp->h_u.usr_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1109 fsp->m_u.usr_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1268 fltr->ip_data.v4_addrs.src_ip = fsp->h_u.tcp_ip4_spec.ip4src; in iavf_add_fdir_fltr_info() 1273 fltr->ip_mask.v4_addrs.src_ip = fsp->m_u.tcp_ip4_spec.ip4src; in iavf_add_fdir_fltr_info() 1281 fltr->ip_data.v4_addrs.src_ip = fsp->h_u.ah_ip4_spec.ip4src; in iavf_add_fdir_fltr_info() 1285 fltr->ip_mask.v4_addrs.src_ip = fsp->m_u.ah_ip4_spec.ip4src; in iavf_add_fdir_fltr_info() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
A D | dpaa2-ethtool.c | 359 if (uip_mask->ip4src) { in dpaa2_eth_prep_uip_rule() 361 *(__be32 *)(key + off) = uip_value->ip4src; in dpaa2_eth_prep_uip_rule() 362 *(__be32 *)(mask + off) = uip_mask->ip4src; in dpaa2_eth_prep_uip_rule() 413 if (l4_mask->ip4src) { in dpaa2_eth_prep_l4_rule() 415 *(__be32 *)(key + off) = l4_value->ip4src; in dpaa2_eth_prep_l4_rule() 416 *(__be32 *)(mask + off) = l4_mask->ip4src; in dpaa2_eth_prep_l4_rule()
|
/linux/drivers/net/ethernet/freescale/enetc/ |
A D | enetc_ethtool.c | 362 rfse.sip_h[0] = l4ip4_h->ip4src; in enetc_set_cls_entry() 363 rfse.sip_m[0] = l4ip4_m->ip4src; in enetc_set_cls_entry() 379 rfse.sip_h[0] = l3ip4_h->ip4src; in enetc_set_cls_entry() 380 rfse.sip_m[0] = l3ip4_m->ip4src; in enetc_set_cls_entry()
|
/linux/include/uapi/linux/ |
A D | ethtool.h | 890 __be32 ip4src; member 907 __be32 ip4src; member 925 __be32 ip4src; member
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
A D | en_ethtool.c | 1365 if (!all_zeros_or_all_ones(l4_mask->ip4src) || in mlx4_en_validate_flow() 1375 (!l3_mask->ip4src && !l3_mask->ip4dst) || in mlx4_en_validate_flow() 1376 !all_zeros_or_all_ones(l3_mask->ip4src) || in mlx4_en_validate_flow() 1483 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule() 1484 if (l3_mask->ip4src) in add_ip_rule() 1527 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule() 1539 spec_l3->ipv4.src_ip = cmd->fs.h_u.udp_ip4_spec.ip4src; in add_tcp_udp_rule() 1545 if (l4_mask->ip4src) in add_tcp_udp_rule()
|
/linux/drivers/net/ethernet/freescale/ |
A D | gianfar_ethtool.c | 931 gfar_set_attribute(be32_to_cpu(value->ip4src), in gfar_set_basic_ip() 932 be32_to_cpu(mask->ip4src), in gfar_set_basic_ip() 951 gfar_set_attribute(be32_to_cpu(value->ip4src), in gfar_set_user_ip() 952 be32_to_cpu(mask->ip4src), in gfar_set_user_ip()
|
/linux/drivers/net/ethernet/cisco/enic/ |
A D | enic_ethtool.c | 443 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule() 444 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule()
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
A D | cxgb4_ethtool.c | 1679 memcpy(&fs->h_u.tcp_ip4_spec.ip4src, &dfs->val.fip[0], in cxgb4_fill_filter_rule() 1680 sizeof(fs->h_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule() 1681 memcpy(&fs->m_u.tcp_ip4_spec.ip4src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule() 1682 sizeof(fs->m_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | rvu_npc_fs.c | 835 NPC_WRITE_FLOW(NPC_SIP_IPV4, ip4src, ntohl(pkt->ip4src), 0, in npc_update_flow() 836 ntohl(mask->ip4src), 0); in npc_update_flow()
|
A D | mbox.h | 1339 __be32 ip4src; member
|
A D | rvu_debugfs.c | 2433 seq_printf(s, "%pI4 ", &rule->packet.ip4src); in rvu_dbg_npc_mcam_show_flows() 2434 seq_printf(s, "mask %pI4\n", &rule->mask.ip4src); in rvu_dbg_npc_mcam_show_flows()
|
/linux/drivers/net/ethernet/intel/i40e/ |
A D | i40e_ethtool.c | 3289 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry() 3348 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 4238 if (tcp_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set() 4240 else if (!tcp_ip4_spec->ip4src) in i40e_check_fdir_input_set() 4325 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set() 4327 else if (!usr_ip4_spec->ip4src) in i40e_check_fdir_input_set() 4753 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool() 4785 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
|
/linux/net/ethtool/ |
A D | ioctl.c | 3151 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/drivers/net/ethernet/intel/ixgbe/ |
A D | ixgbe_ethtool.c | 2548 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2549 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2831 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry() 2832 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
|
/linux/drivers/net/ethernet/cadence/ |
A D | macb_main.c | 3255 if (enable && (tp4sp_m->ip4src == 0xFFFFFFFF)) in gem_enable_flow_filters() 3290 if (tp4sp_m->ip4src == 0xFFFFFFFF) { in gem_prog_cmp_regs() 3294 w0 = tp4sp_v->ip4src; in gem_prog_cmp_regs() 3375 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter() 3428 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter()
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
A D | aq_filters.c | 514 ntohl(fsp->h_u.tcp_ip4_spec.ip4src); in aq_set_data_fl3l4()
|
/linux/drivers/net/ethernet/broadcom/genet/ |
A D | bcmgenet.c | 661 &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/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
A D | hclge_main.c | 6196 if (!spec->ip4src) in hclge_fd_check_tcpip4_tuple() 6223 if (!spec->ip4src) in hclge_fd_check_ip4_tuple() 6524 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple() 6526 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple() 6554 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple() 6556 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple() 6998 spec->ip4src = cpu_to_be32(rule->tuples.src_ip[IPV4_INDEX]); in hclge_fd_get_tcpip4_info() 6999 spec_mask->ip4src = rule->unused_tuple & BIT(INNER_SRC_IP) ? in hclge_fd_get_tcpip4_info() 7023 spec->ip4src = cpu_to_be32(rule->tuples.src_ip[IPV4_INDEX]); in hclge_fd_get_ip4_info() 7024 spec_mask->ip4src = rule->unused_tuple & BIT(INNER_SRC_IP) ? in hclge_fd_get_ip4_info()
|
/linux/drivers/net/ethernet/mediatek/ |
A D | mtk_eth_soc.c | 1992 fsp->h_u.tcp_ip4_spec.ip4src = 0; in mtk_hwlro_get_fdir_entry() 1993 fsp->m_u.tcp_ip4_spec.ip4src = 0xffffffff; in mtk_hwlro_get_fdir_entry()
|