Home
last modified time | relevance | path

Searched refs:usr_ip4_spec (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c967 fsp->h_u.usr_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
968 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
969 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip_data.l4_header; in iavf_get_ethtool_fdir_entry()
970 fsp->h_u.usr_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry()
971 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in iavf_get_ethtool_fdir_entry()
972 fsp->h_u.usr_ip4_spec.proto = rule->ip_data.proto; in iavf_get_ethtool_fdir_entry()
973 fsp->m_u.usr_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
974 fsp->m_u.usr_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
975 fsp->m_u.usr_ip4_spec.l4_4_bytes = rule->ip_mask.l4_header; in iavf_get_ethtool_fdir_entry()
976 fsp->m_u.usr_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry()
[all …]
/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c444 &fs->h_u.usr_ip4_spec.tos, in bcmasp_netfilt_wr_to_hw()
445 &fs->m_u.usr_ip4_spec.tos, in bcmasp_netfilt_wr_to_hw()
446 sizeof(fs->h_u.usr_ip4_spec.tos)); in bcmasp_netfilt_wr_to_hw()
448 &fs->h_u.usr_ip4_spec.proto, in bcmasp_netfilt_wr_to_hw()
449 &fs->m_u.usr_ip4_spec.proto, in bcmasp_netfilt_wr_to_hw()
450 sizeof(fs->h_u.usr_ip4_spec.proto)); in bcmasp_netfilt_wr_to_hw()
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()
456 &fs->h_u.usr_ip4_spec.ip4dst, in bcmasp_netfilt_wr_to_hw()
[all …]
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1363 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in nfp_net_fs_to_ethtool()
1364 fs->h_u.usr_ip4_spec.ip4src = entry->key.sip4; in nfp_net_fs_to_ethtool()
1365 fs->h_u.usr_ip4_spec.ip4dst = entry->key.dip4; in nfp_net_fs_to_ethtool()
1366 fs->h_u.usr_ip4_spec.proto = entry->key.l4_proto; in nfp_net_fs_to_ethtool()
1367 fs->m_u.usr_ip4_spec.ip4src = entry->msk.sip4; in nfp_net_fs_to_ethtool()
1368 fs->m_u.usr_ip4_spec.ip4dst = entry->msk.dip4; in nfp_net_fs_to_ethtool()
1369 fs->m_u.usr_ip4_spec.proto = entry->msk.l4_proto; in nfp_net_fs_to_ethtool()
1551 entry->msk.sip4 = fs->m_u.usr_ip4_spec.ip4src; in nfp_net_fs_from_ethtool()
1552 entry->msk.dip4 = fs->m_u.usr_ip4_spec.ip4dst; in nfp_net_fs_from_ethtool()
1553 entry->msk.l4_proto = fs->m_u.usr_ip4_spec.proto; in nfp_net_fs_from_ethtool()
[all …]
/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_ethtool.c141 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in txgbe_get_ethtool_fdir_entry()
142 fsp->h_u.usr_ip4_spec.proto = 0; in txgbe_get_ethtool_fdir_entry()
143 fsp->m_u.usr_ip4_spec.proto = 0; in txgbe_get_ethtool_fdir_entry()
242 switch (fsp->h_u.usr_ip4_spec.proto) { in txgbe_flowspec_to_flow_type()
253 if (!fsp->m_u.usr_ip4_spec.proto) { in txgbe_flowspec_to_flow_type()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_ethtool.c781 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in fbnic_get_cls_rule()
792 fsp->h_u.usr_ip4_spec.ip4src = in fbnic_get_cls_rule()
794 fsp->m_u.usr_ip4_spec.ip4src = in fbnic_get_cls_rule()
806 fsp->h_u.usr_ip4_spec.ip4dst = in fbnic_get_cls_rule()
808 fsp->m_u.usr_ip4_spec.ip4dst = in fbnic_get_cls_rule()
950 if (!fsp->m_u.usr_ip4_spec.proto) in fbnic_set_cls_rule_ins()
952 if (fsp->m_u.usr_ip4_spec.proto != 0xff) in fbnic_set_cls_rule_ins()
954 if (fsp->h_u.usr_ip4_spec.proto == IPPROTO_UDP) in fbnic_set_cls_rule_ins()
956 if (fsp->h_u.usr_ip4_spec.proto == IPPROTO_TCP) in fbnic_set_cls_rule_ins()
960 addr4 = (struct in_addr *)&fsp->h_u.usr_ip4_spec.ip4src; in fbnic_set_cls_rule_ins()
[all …]
/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c654 &fs->h_u.usr_ip4_spec.tos, in bcmgenet_hfb_create_rxnfc_filter()
655 &fs->m_u.usr_ip4_spec.tos, in bcmgenet_hfb_create_rxnfc_filter()
656 sizeof(fs->h_u.usr_ip4_spec.tos)); in bcmgenet_hfb_create_rxnfc_filter()
658 &fs->h_u.usr_ip4_spec.proto, in bcmgenet_hfb_create_rxnfc_filter()
659 &fs->m_u.usr_ip4_spec.proto, in bcmgenet_hfb_create_rxnfc_filter()
660 sizeof(fs->h_u.usr_ip4_spec.proto)); in bcmgenet_hfb_create_rxnfc_filter()
662 &fs->h_u.usr_ip4_spec.ip4src, in bcmgenet_hfb_create_rxnfc_filter()
663 &fs->m_u.usr_ip4_spec.ip4src, in bcmgenet_hfb_create_rxnfc_filter()
664 sizeof(fs->h_u.usr_ip4_spec.ip4src)); in bcmgenet_hfb_create_rxnfc_filter()
666 &fs->h_u.usr_ip4_spec.ip4dst, in bcmgenet_hfb_create_rxnfc_filter()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c261 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in parse_ip4()
262 struct ethtool_usrip4_spec *l3_val = &fs->h_u.usr_ip4_spec; in parse_ip4()
594 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in validate_ip4()
598 fs->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in validate_ip4()
/linux/drivers/net/ethernet/intel/i40e/
H A Di40e_ethtool.c3377 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry()
3378 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
3379 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
4302 struct ethtool_usrip4_spec *usr_ip4_spec; in i40e_check_fdir_input_set() local
4457 usr_ip4_spec = &fsp->m_u.usr_ip4_spec; in i40e_check_fdir_input_set()
4460 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4462 else if (!usr_ip4_spec->ip4src) in i40e_check_fdir_input_set()
4468 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4470 else if (!usr_ip4_spec->ip4dst) in i40e_check_fdir_input_set()
4476 if (usr_ip4_spec->l4_4_bytes) in i40e_check_fdir_input_set()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c644 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
645 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
910 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
911 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c791 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in ef4_ethtool_get_class_rule()
792 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_get_class_rule()
1038 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
1039 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
/linux/drivers/net/ethernet/sfc/
H A Dethtool_common.c643 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
644 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
919 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
920 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1357 l3_mask = &cmd->fs.m_u.usr_ip4_spec; in mlx4_en_validate_flow()
1359 cmd->fs.h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4 || in mlx4_en_validate_flow()
1453 struct ethtool_usrip4_spec *l3_mask = &cmd->fs.m_u.usr_ip4_spec; in add_ip_rule()
1464 usr_ip4_spec.ip4dst); in add_ip_rule()
1468 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule()
1471 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1157 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in bnxt_grxclsrule()
1158 fs->h_u.usr_ip4_spec.proto = BNXT_IP_PROTO_WILDCARD; in bnxt_grxclsrule()
1159 fs->m_u.usr_ip4_spec.proto = 0; in bnxt_grxclsrule()
1162 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in bnxt_grxclsrule()
1163 fs->h_u.usr_ip4_spec.proto = IPPROTO_ICMP; in bnxt_grxclsrule()
1164 fs->m_u.usr_ip4_spec.proto = BNXT_IP_PROTO_FULL_MASK; in bnxt_grxclsrule()
1363 if (!bnxt_verify_ntuple_ip4_flow(&fs->h_u.usr_ip4_spec, in bnxt_add_ntuple_cls_rule()
1364 &fs->m_u.usr_ip4_spec)) in bnxt_add_ntuple_cls_rule()
1387 struct ethtool_usrip4_spec *ip_spec = &fs->h_u.usr_ip4_spec; in bnxt_add_ntuple_cls_rule()
1388 struct ethtool_usrip4_spec *ip_mask = &fs->m_u.usr_ip4_spec; in bnxt_add_ntuple_cls_rule()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2701 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry()
2702 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2703 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2913 switch (fsp->h_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
2924 if (!fsp->m_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c540 struct ethtool_usrip4_spec *ipv4_usr_mask = &fsp->m_u.usr_ip4_spec; in otx2_prepare_ipv4_flow()
541 struct ethtool_usrip4_spec *ipv4_usr_hdr = &fsp->h_u.usr_ip4_spec; in otx2_prepare_ipv4_flow()
/linux/drivers/net/ethernet/sun/
H A Dniu.c7170 fsp->h_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7174 fsp->m_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7176 fsp->h_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key()
7179 fsp->m_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key()
7183 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in niu_get_ip4fs_from_tcam_key()
7436 spi = be32_to_cpu(fsp->h_u.usr_ip4_spec.l4_4_bytes); in niu_get_tcamkey_from_ip4fs()
7437 spim = be32_to_cpu(fsp->m_u.usr_ip4_spec.l4_4_bytes); in niu_get_tcamkey_from_ip4fs()
7441 pid = fsp->h_u.usr_ip4_spec.proto; in niu_get_tcamkey_from_ip4fs()
7475 struct ethtool_usrip4_spec *uspec = &fsp->h_u.usr_ip4_spec; in niu_add_ethtool_tcam_entry()
7476 struct ethtool_usrip4_spec *umask = &fsp->m_u.usr_ip4_spec; in niu_add_ethtool_tcam_entry()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c26 switch (fsp->h_u.usr_ip4_spec.proto) { in aq_rule_is_approve()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c6219 ret = hclge_fd_check_ip4_tuple(&fs->h_u.usr_ip4_spec, in hclge_fd_check_spec()
6293 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple()
6295 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple()
6298 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple()
6300 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple()
6302 rule->tuples.ip_tos = fs->h_u.usr_ip4_spec.tos; in hclge_fd_get_ip4_tuple()
6303 rule->tuples_mask.ip_tos = fs->m_u.usr_ip4_spec.tos; in hclge_fd_get_ip4_tuple()
6305 rule->tuples.ip_proto = fs->h_u.usr_ip4_spec.proto; in hclge_fd_get_ip4_tuple()
6306 rule->tuples_mask.ip_proto = fs->m_u.usr_ip4_spec.proto; in hclge_fd_get_ip4_tuple()
6958 hclge_fd_get_ip4_info(rule, &fs->h_u.usr_ip4_spec, in hclge_get_fd_rule_info()
[all …]
/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c1230 if (flow->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in gfar_check_capability()