/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_flow_rule.c | 42 fsp->h_u.tcp_ip4_spec.ip4src = flow_rule->key.src_ip[0]; in gve_fill_ethtool_flow_spec() 47 fsp->m_u.tcp_ip4_spec.ip4src = flow_rule->mask.src_ip[0]; in gve_fill_ethtool_flow_spec() 55 fsp->h_u.ah_ip4_spec.ip4src = flow_rule->key.src_ip[0]; in gve_fill_ethtool_flow_spec() 59 fsp->m_u.ah_ip4_spec.ip4src = flow_rule->mask.src_ip[0]; in gve_fill_ethtool_flow_spec() 141 rule->key.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in gve_generate_flow_rule() 145 rule->mask.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in gve_generate_flow_rule() 152 rule->key.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in gve_generate_flow_rule() 155 rule->mask.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in gve_generate_flow_rule()
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | ethtool_common.c | 681 ip_entry->ip4src = spec.rem_host[0]; in efx_ethtool_get_class_rule() 682 ip_mask->ip4src = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule() 760 uip_entry->ip4src = spec.rem_host[0]; in efx_ethtool_get_class_rule() 761 uip_mask->ip4src = IP4_ADDR_FULL_MASK; in efx_ethtool_get_class_rule() 958 if (ip_mask->ip4src) { in efx_ethtool_set_class_rule() 959 if (ip_mask->ip4src != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule() 962 spec.rem_host[0] = ip_entry->ip4src; in efx_ethtool_set_class_rule() 1027 if (uip_mask->ip4src) { in efx_ethtool_set_class_rule() 1028 if (uip_mask->ip4src != IP4_ADDR_FULL_MASK) in efx_ethtool_set_class_rule() 1031 spec.rem_host[0] = uip_entry->ip4src; in efx_ethtool_set_class_rule()
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool_fdir.c | 153 fsp->h_u.usr_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry() 155 fsp->m_u.usr_ip4_spec.ip4src = rule->mask.v4.src_ip; in ice_get_ethtool_fdir_entry() 167 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry() 171 fsp->m_u.tcp_ip4_spec.ip4src = rule->mask.v4.src_ip; in ice_get_ethtool_fdir_entry() 932 if (!tcp_ip4_spec->psrc && !tcp_ip4_spec->ip4src && in ice_set_fdir_ip4_seg() 957 if (tcp_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_seg() 961 else if (!tcp_ip4_spec->ip4src) in ice_set_fdir_ip4_seg() 1025 if (!usr_ip4_spec->ip4src && !usr_ip4_spec->ip4dst) in ice_set_fdir_ip4_usr_seg() 1032 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in ice_set_fdir_ip4_usr_seg() 1036 else if (!usr_ip4_spec->ip4src) in ice_set_fdir_ip4_usr_seg() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs_ethtool.c | 238 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_tcp4() 251 set_ip4(headers_c, headers_v, l4_mask->ip4src, l4_val->ip4src, in parse_udp4() 264 set_ip4(headers_c, headers_v, l3_mask->ip4src, l3_val->ip4src, in parse_ip4() 580 if (l4_mask->ip4src) in validate_tcpudp4() 600 if (l3_mask->ip4src) in validate_ip4()
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_ethtool.c | 945 fsp->h_u.tcp_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 950 fsp->m_u.tcp_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 958 fsp->h_u.ah_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 962 fsp->m_u.ah_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 968 fsp->h_u.usr_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 974 fsp->m_u.usr_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1136 fltr->ip_data.v4_addrs.src_ip = fsp->h_u.tcp_ip4_spec.ip4src; in iavf_add_fdir_fltr_info() 1141 fltr->ip_mask.v4_addrs.src_ip = fsp->m_u.tcp_ip4_spec.ip4src; in iavf_add_fdir_fltr_info() 1150 fltr->ip_data.v4_addrs.src_ip = fsp->h_u.ah_ip4_spec.ip4src; in iavf_add_fdir_fltr_info() 1154 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/wangxun/txgbe/ |
H A D | txgbe_ethtool.c | 129 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in txgbe_get_ethtool_fdir_entry() 130 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in txgbe_get_ethtool_fdir_entry() 382 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in txgbe_add_ethtool_fdir_entry() 383 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in txgbe_add_ethtool_fdir_entry()
|
/linux/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp.c | 346 &match->ip4src, &mask->ip4src, in bcmasp_netfilt_tcpip4_wr() 347 sizeof(match->ip4src)); in bcmasp_netfilt_tcpip4_wr() 452 &fs->h_u.usr_ip4_spec.ip4src, in bcmasp_netfilt_wr_to_hw() 453 &fs->m_u.usr_ip4_spec.ip4src, in bcmasp_netfilt_wr_to_hw() 454 sizeof(fs->h_u.usr_ip4_spec.ip4src)); in bcmasp_netfilt_wr_to_hw()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_ethtool.c | 1350 if (!all_zeros_or_all_ones(l4_mask->ip4src) || in mlx4_en_validate_flow() 1360 (!l3_mask->ip4src && !l3_mask->ip4dst) || in mlx4_en_validate_flow() 1361 !all_zeros_or_all_ones(l3_mask->ip4src) || in mlx4_en_validate_flow() 1468 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule() 1469 if (l3_mask->ip4src) in add_ip_rule() 1512 spec_l3->ipv4.src_ip = cmd->fs.h_u.tcp_ip4_spec.ip4src; in add_tcp_udp_rule() 1524 spec_l3->ipv4.src_ip = cmd->fs.h_u.udp_ip4_spec.ip4src; in add_tcp_udp_rule() 1530 if (l4_mask->ip4src) in add_tcp_udp_rule()
|
/linux/include/uapi/linux/ |
H A D | ethtool.h | 1241 __be32 ip4src; member 1258 __be32 ip4src; member 1276 __be32 ip4src; member
|
/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_ethtool.c | 1338 fs->h_u.tcp_ip4_spec.ip4src = entry->key.sip4; in nfp_net_fs_to_ethtool() 1342 fs->m_u.tcp_ip4_spec.ip4src = entry->msk.sip4; in nfp_net_fs_to_ethtool() 1363 fs->h_u.usr_ip4_spec.ip4src = entry->key.sip4; in nfp_net_fs_to_ethtool() 1366 fs->m_u.usr_ip4_spec.ip4src = entry->msk.sip4; in nfp_net_fs_to_ethtool() 1522 entry->msk.sip4 = fs->m_u.tcp_ip4_spec.ip4src; in nfp_net_fs_from_ethtool() 1526 entry->key.sip4 = fs->h_u.tcp_ip4_spec.ip4src & entry->msk.sip4; in nfp_net_fs_from_ethtool() 1546 entry->msk.sip4 = fs->m_u.usr_ip4_spec.ip4src; in nfp_net_fs_from_ethtool() 1549 entry->key.sip4 = fs->h_u.usr_ip4_spec.ip4src & entry->msk.sip4; in nfp_net_fs_from_ethtool()
|
/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ethtool.c | 527 rfse.sip_h[0] = l4ip4_h->ip4src; in enetc_set_cls_entry() 528 rfse.sip_m[0] = l4ip4_m->ip4src; in enetc_set_cls_entry() 544 rfse.sip_h[0] = l3ip4_h->ip4src; in enetc_set_cls_entry() 545 rfse.sip_m[0] = l3ip4_m->ip4src; in enetc_set_cls_entry()
|
/linux/drivers/net/ethernet/freescale/ |
H A D | gianfar_ethtool.c | 939 gfar_set_attribute(be32_to_cpu(value->ip4src), in gfar_set_basic_ip() 940 be32_to_cpu(mask->ip4src), in gfar_set_basic_ip() 959 gfar_set_attribute(be32_to_cpu(value->ip4src), in gfar_set_user_ip() 960 be32_to_cpu(mask->ip4src), in gfar_set_user_ip()
|
/linux/drivers/net/ethernet/cisco/enic/ |
H A D | enic_ethtool.c | 514 fsp->h_u.tcp_ip4_spec.ip4src = flow_get_u32_src(&n->keys); in enic_grxclsrule() 515 fsp->m_u.tcp_ip4_spec.ip4src = (__u32)~0; in enic_grxclsrule()
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ethtool.c | 1680 memcpy(&fs->h_u.tcp_ip4_spec.ip4src, &dfs->val.fip[0], in cxgb4_fill_filter_rule() 1681 sizeof(fs->h_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule() 1682 memcpy(&fs->m_u.tcp_ip4_spec.ip4src, &dfs->mask.fip[0], in cxgb4_fill_filter_rule() 1683 sizeof(fs->m_u.tcp_ip4_spec.ip4src)); in cxgb4_fill_filter_rule()
|
/linux/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ethtool.c | 3407 fsp->h_u.tcp_ip4_spec.ip4src = rule->dst_ip; in i40e_get_ethtool_fdir_entry() 3466 fsp->m_u.tcp_ip4_spec.ip4src = htonl(0xFFFFFFFF); in i40e_get_ethtool_fdir_entry() 4372 if (tcp_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set() 4374 else if (!tcp_ip4_spec->ip4src) in i40e_check_fdir_input_set() 4459 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set() 4461 else if (!usr_ip4_spec->ip4src) in i40e_check_fdir_input_set() 4879 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool() 4911 input->dst_ip = fsp->h_u.tcp_ip4_spec.ip4src; in i40e_add_fdir_ethtool()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rvu_npc_fs.c | 968 NPC_WRITE_FLOW(NPC_SIP_IPV4, ip4src, ntohl(pkt->ip4src), 0, in npc_update_flow() 969 ntohl(mask->ip4src), 0); in npc_update_flow()
|
H A D | mbox.h | 1609 __be32 ip4src; member
|
H A D | rvu_debugfs.c | 3177 seq_printf(s, "%pI4 ", &rule->packet.ip4src); in rvu_dbg_npc_mcam_show_flows() 3178 seq_printf(s, "mask %pI4\n", &rule->mask.ip4src); in rvu_dbg_npc_mcam_show_flows()
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ethtool.c | 1145 fs->h_u.tcp_ip4_spec.ip4src = fkeys->addrs.v4addrs.src; in bnxt_grxclsrule() 1146 fs->m_u.tcp_ip4_spec.ip4src = fmasks->addrs.v4addrs.src; in bnxt_grxclsrule() 1364 fkeys->addrs.v4addrs.src = ip_spec->ip4src; in bnxt_add_ntuple_cls_rule() 1365 fmasks->addrs.v4addrs.src = ip_mask->ip4src; in bnxt_add_ntuple_cls_rule() 1379 fkeys->addrs.v4addrs.src = ip_spec->ip4src; in bnxt_add_ntuple_cls_rule() 1380 fmasks->addrs.v4addrs.src = ip_mask->ip4src; in bnxt_add_ntuple_cls_rule()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ethtool.c | 2582 fsp->h_u.tcp_ip4_spec.ip4src = rule->filter.formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2583 fsp->m_u.tcp_ip4_spec.ip4src = mask->formatted.src_ip[0]; in ixgbe_get_ethtool_fdir_entry() 2874 input->filter.formatted.src_ip[0] = fsp->h_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry() 2875 mask.formatted.src_ip[0] = fsp->m_u.tcp_ip4_spec.ip4src; in ixgbe_add_ethtool_fdir_entry()
|
/linux/net/ethtool/ |
H A D | ioctl.c | 3507 if (v4_m_spec->ip4src) { in ethtool_rx_flow_rule_create() 3508 match->key.ipv4.src = v4_spec->ip4src; in ethtool_rx_flow_rule_create() 3509 match->mask.ipv4.src = v4_m_spec->ip4src; in ethtool_rx_flow_rule_create() 3515 if (v4_m_spec->ip4src || in ethtool_rx_flow_rule_create()
|
/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_filters.c | 514 ntohl(fsp->h_u.tcp_ip4_spec.ip4src); in aq_set_data_fl3l4()
|
/linux/drivers/net/ethernet/cadence/ |
H A D | macb_main.c | 3482 if (enable && (tp4sp_m->ip4src == 0xFFFFFFFF)) in gem_enable_flow_filters() 3517 if (tp4sp_m->ip4src == 0xFFFFFFFF) { in gem_prog_cmp_regs() 3521 w0 = tp4sp_v->ip4src; in gem_prog_cmp_regs() 3602 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_add_flow_filter() 3656 htonl(fs->h_u.tcp_ip4_spec.ip4src), in gem_del_flow_filter()
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 5906 if (!spec->ip4src) in hclge_fd_check_tcpip4_tuple() 5933 if (!spec->ip4src) in hclge_fd_check_ip4_tuple() 6233 be32_to_cpu(fs->h_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple() 6235 be32_to_cpu(fs->m_u.tcp_ip4_spec.ip4src); in hclge_fd_get_tcpip4_tuple() 6262 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple() 6264 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple() 6702 spec->ip4src = cpu_to_be32(rule->tuples.src_ip[IPV4_INDEX]); in hclge_fd_get_tcpip4_info() 6703 spec_mask->ip4src = rule->unused_tuple & BIT(INNER_SRC_IP) ? in hclge_fd_get_tcpip4_info() 6727 spec->ip4src = cpu_to_be32(rule->tuples.src_ip[IPV4_INDEX]); in hclge_fd_get_ip4_info() 6728 spec_mask->ip4src = rule->unused_tuple & BIT(INNER_SRC_IP) ? in hclge_fd_get_ip4_info()
|
/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_filter.c | 1350 fsp->h_u.tcp_ip4_spec.ip4src = fltr->tuple.src_ipv4; in qede_get_cls_rule_entry()
|