Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c212 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_tcp4()
225 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_udp4()
238 set_ip4(headers_c, headers_v, l3_mask->ip4src, l3_val->ip4src, in parse_ip4()
511 if (l4_mask->ip4src) { in validate_tcpudp4()
512 if (!all_ones(l4_mask->ip4src)) in validate_tcpudp4()
543 if (l3_mask->ip4src) { in validate_ip4()
544 if (!all_ones(l3_mask->ip4src)) in validate_ip4()
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/
Dethtool.c830 ip_entry->ip4src = spec.rem_host[0]; in ef4_ethtool_get_class_rule()
831 ip_mask->ip4src = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule()
909 uip_entry->ip4src = spec.rem_host[0]; in ef4_ethtool_get_class_rule()
910 uip_mask->ip4src = IP4_ADDR_FULL_MASK; in ef4_ethtool_get_class_rule()
1074 if (ip_mask->ip4src) { in ef4_ethtool_set_class_rule()
1075 if (ip_mask->ip4src != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule()
1078 spec.rem_host[0] = ip_entry->ip4src; in ef4_ethtool_set_class_rule()
1143 if (uip_mask->ip4src) { in ef4_ethtool_set_class_rule()
1144 if (uip_mask->ip4src != IP4_ADDR_FULL_MASK) in ef4_ethtool_set_class_rule()
1147 spec.rem_host[0] = uip_entry->ip4src; in ef4_ethtool_set_class_rule()
/Linux-v4.19/drivers/net/ethernet/sfc/
Dethtool.c853 ip_entry->ip4src = spec.rem_host[0]; in efx_ethtool_get_class_rule()
854 ip_mask->ip4src = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
932 uip_entry->ip4src = spec.rem_host[0]; in efx_ethtool_get_class_rule()
933 uip_mask->ip4src = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule()
1139 if (ip_mask->ip4src) { in efx_ethtool_set_class_rule()
1140 if (ip_mask->ip4src != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1143 spec.rem_host[0] = ip_entry->ip4src; in efx_ethtool_set_class_rule()
1208 if (uip_mask->ip4src) { in efx_ethtool_set_class_rule()
1209 if (uip_mask->ip4src != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule()
1212 spec.rem_host[0] = uip_entry->ip4src; in efx_ethtool_set_class_rule()
/Linux-v4.19/include/uapi/linux/
Dethtool.h733 __be32 ip4src; member
750 __be32 ip4src; member
768 __be32 ip4src; member
/Linux-v4.19/drivers/net/dsa/
Dbcm_sf2_cfp.c301 (be32_to_cpu(v4_spec->ip4src) & 0x0000ff00) >> 8; in bcm_sf2_cfp_slice_ipv4()
314 reg = (u32)(be32_to_cpu(v4_spec->ip4src) & 0xff) << 24 | in bcm_sf2_cfp_slice_ipv4()
315 (u32)(be32_to_cpu(v4_spec->ip4src) >> 16) << 8 | in bcm_sf2_cfp_slice_ipv4()
933 v4_spec->ip4src = cpu_to_be32(ipv4); in bcm_sf2_cfp_unslice_ipv4()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1341 if (!all_zeros_or_all_ones(l4_mask->ip4src) || in mlx4_en_validate_flow()
1351 (!l3_mask->ip4src && !l3_mask->ip4dst) || in mlx4_en_validate_flow()
1352 !all_zeros_or_all_ones(l3_mask->ip4src) || in mlx4_en_validate_flow()
1460 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule()
1461 if (l3_mask->ip4src) in add_ip_rule()
1504 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule()
1516 spec_l3->ipv4.src_ip = cmd->fs.h_u.udp_ip4_spec.ip4src; in add_tcp_udp_rule()
1522 if (l4_mask->ip4src) in add_tcp_udp_rule()
/Linux-v4.19/drivers/net/ethernet/cisco/enic/
Denic_ethtool.c460 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule()
461 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule()
/Linux-v4.19/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c997 gfar_set_attribute(be32_to_cpu(value->ip4src), in gfar_set_basic_ip()
998 be32_to_cpu(mask->ip4src), in gfar_set_basic_ip()
1017 gfar_set_attribute(be32_to_cpu(value->ip4src), in gfar_set_user_ip()
1018 be32_to_cpu(mask->ip4src), in gfar_set_user_ip()
/Linux-v4.19/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1432 fsp->h_u.tcp_ip4_spec.ip4src = fltr->tuple.src_ipv4; in qede_get_cls_rule_entry()
1672 if ((fs->h_u.tcp_ip4_spec.ip4src & in qede_flow_spec_to_tuple_ipv4_common()
1673 fs->m_u.tcp_ip4_spec.ip4src) != fs->h_u.tcp_ip4_spec.ip4src) { in qede_flow_spec_to_tuple_ipv4_common()
1702 t->src_ipv4 = fs->h_u.tcp_ip4_spec.ip4src; in qede_flow_spec_to_tuple_ipv4_common()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c2884 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry()
2916 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry()
3768 if (tcp_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
3770 else if (!tcp_ip4_spec->ip4src) in i40e_check_fdir_input_set()
3808 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
3810 else if (!usr_ip4_spec->ip4src) in i40e_check_fdir_input_set()
4182 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
4192 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
/Linux-v4.19/drivers/net/ethernet/cadence/
Dmacb_main.c2822 if (enable && (tp4sp_m->ip4src == 0xFFFFFFFF)) in gem_enable_flow_filters()
2854 if (tp4sp_m->ip4src == 0xFFFFFFFF) { in gem_prog_cmp_regs()
2858 w0 = tp4sp_v->ip4src; in gem_prog_cmp_regs()
2939 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter()
2993 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter()
/Linux-v4.19/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2455 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2456 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry()
2738 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
2739 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
/Linux-v4.19/drivers/net/ethernet/mediatek/
Dmtk_eth_soc.c1583 fsp->h_u.tcp_ip4_spec.ip4src = 0; in mtk_hwlro_get_fdir_entry()
1584 fsp->m_u.tcp_ip4_spec.ip4src = 0xffffffff; in mtk_hwlro_get_fdir_entry()
/Linux-v4.19/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c662 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule()
663 fs->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(~0); in bnxt_grxclsrule()
/Linux-v4.19/drivers/net/ethernet/sun/
Dniu.c7085 fsp->h_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7091 fsp->m_u.tcp_ip4_spec.ip4src = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7353 sip = be32_to_cpu(fsp->h_u.tcp_ip4_spec.ip4src); in niu_get_tcamkey_from_ip4fs()
7354 sipm = be32_to_cpu(fsp->m_u.tcp_ip4_spec.ip4src); in niu_get_tcamkey_from_ip4fs()