Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/intel/ice/
H A Dice_ethtool_fdir.c149 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ice_get_ethtool_fdir_entry()
150 fsp->h_u.usr_ip4_spec.proto = 0; in ice_get_ethtool_fdir_entry()
151 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip.v4.l4_header; in ice_get_ethtool_fdir_entry()
152 fsp->h_u.usr_ip4_spec.tos = rule->ip.v4.tos; in ice_get_ethtool_fdir_entry()
153 fsp->h_u.usr_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry()
154 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip.v4.dst_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()
156 fsp->m_u.usr_ip4_spec.ip4dst = rule->mask.v4.dst_ip; in ice_get_ethtool_fdir_entry()
157 fsp->m_u.usr_ip4_spec.ip_ver = 0xFF; in ice_get_ethtool_fdir_entry()
158 fsp->m_u.usr_ip4_spec in ice_get_ethtool_fdir_entry()
1011 ice_set_fdir_ip4_usr_seg(struct ice_flow_seg_info * seg,struct ethtool_usrip4_spec * usr_ip4_spec,bool * perfect_fltr) ice_set_fdir_ip4_usr_seg() argument
[all...]
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c970 fsp->h_u.usr_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
971 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
972 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip_data.l4_header; in iavf_get_ethtool_fdir_entry()
973 fsp->h_u.usr_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry()
974 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in iavf_get_ethtool_fdir_entry()
975 fsp->h_u.usr_ip4_spec.proto = rule->ip_data.proto; in iavf_get_ethtool_fdir_entry()
976 fsp->m_u.usr_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry()
977 fsp->m_u.usr_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry()
978 fsp->m_u.usr_ip4_spec.l4_4_bytes = rule->ip_mask.l4_header; in iavf_get_ethtool_fdir_entry()
979 fsp->m_u.usr_ip4_spec in iavf_get_ethtool_fdir_entry()
[all...]
/linux/drivers/net/ethernet/wangxun/txgbe/
H A Dtxgbe_ethtool.c142 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in txgbe_get_ethtool_fdir_entry()
143 fsp->h_u.usr_ip4_spec.proto = 0; in txgbe_get_ethtool_fdir_entry()
144 fsp->m_u.usr_ip4_spec.proto = 0; in txgbe_get_ethtool_fdir_entry()
240 switch (fsp->h_u.usr_ip4_spec.proto) { in txgbe_flowspec_to_flow_type()
251 if (!fsp->m_u.usr_ip4_spec.proto) { in txgbe_flowspec_to_flow_type()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_ethtool.c709 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in fbnic_get_cls_rule()
720 fsp->h_u.usr_ip4_spec.ip4src = in fbnic_get_cls_rule()
722 fsp->m_u.usr_ip4_spec.ip4src = in fbnic_get_cls_rule()
734 fsp->h_u.usr_ip4_spec.ip4dst = in fbnic_get_cls_rule()
736 fsp->m_u.usr_ip4_spec.ip4dst = in fbnic_get_cls_rule()
875 if (!fsp->m_u.usr_ip4_spec.proto) in fbnic_set_cls_rule_ins()
877 if (fsp->m_u.usr_ip4_spec.proto != 0xff) in fbnic_set_cls_rule_ins()
879 if (fsp->h_u.usr_ip4_spec.proto == IPPROTO_UDP) in fbnic_set_cls_rule_ins()
881 if (fsp->h_u.usr_ip4_spec.proto == IPPROTO_TCP) in fbnic_set_cls_rule_ins()
885 addr4 = (struct in_addr *)&fsp->h_u.usr_ip4_spec in fbnic_set_cls_rule_ins()
[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()
1547 entry->msk.sip4 = fs->m_u.usr_ip4_spec.ip4src; in nfp_net_fs_from_ethtool()
1548 entry->msk.dip4 = fs->m_u.usr_ip4_spec.ip4dst; in nfp_net_fs_from_ethtool()
1549 entry->msk.l4_proto = fs->m_u.usr_ip4_spec in nfp_net_fs_from_ethtool()
[all...]
/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c655 &fs->h_u.usr_ip4_spec.tos, in bcmgenet_hfb_create_rxnfc_filter()
656 &fs->m_u.usr_ip4_spec.tos, in bcmgenet_hfb_create_rxnfc_filter()
657 sizeof(fs->h_u.usr_ip4_spec.tos)); in bcmgenet_hfb_create_rxnfc_filter()
659 &fs->h_u.usr_ip4_spec.proto, in bcmgenet_hfb_create_rxnfc_filter()
660 &fs->m_u.usr_ip4_spec.proto, in bcmgenet_hfb_create_rxnfc_filter()
661 sizeof(fs->h_u.usr_ip4_spec.proto)); in bcmgenet_hfb_create_rxnfc_filter()
663 &fs->h_u.usr_ip4_spec.ip4src, in bcmgenet_hfb_create_rxnfc_filter()
664 &fs->m_u.usr_ip4_spec.ip4src, in bcmgenet_hfb_create_rxnfc_filter()
665 sizeof(fs->h_u.usr_ip4_spec.ip4src)); in bcmgenet_hfb_create_rxnfc_filter()
667 &fs->h_u.usr_ip4_spec 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.c3390 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry()
3391 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
3392 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
4305 struct ethtool_usrip4_spec *usr_ip4_spec; in i40e_check_fdir_input_set() local
4460 usr_ip4_spec = &fsp->m_u.usr_ip4_spec; in i40e_check_fdir_input_set()
4463 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4465 else if (!usr_ip4_spec->ip4src) in i40e_check_fdir_input_set()
4471 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4473 else if (!usr_ip4_spec in i40e_check_fdir_input_set()
[all...]
/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()
916 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
917 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()
1035 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
1036 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_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/freescale/dpaa2/
H A Ddpaa2-ethtool.c528 err = dpaa2_eth_prep_uip_rule(&fs->h_u.usr_ip4_spec, in dpaa2_eth_prep_cls_rule()
529 &fs->m_u.usr_ip4_spec, key, mask, fields); in dpaa2_eth_prep_cls_rule()
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1151 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in bnxt_grxclsrule()
1152 fs->h_u.usr_ip4_spec.proto = BNXT_IP_PROTO_WILDCARD; in bnxt_grxclsrule()
1153 fs->m_u.usr_ip4_spec.proto = 0; in bnxt_grxclsrule()
1156 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in bnxt_grxclsrule()
1157 fs->h_u.usr_ip4_spec.proto = IPPROTO_ICMP; in bnxt_grxclsrule()
1158 fs->m_u.usr_ip4_spec.proto = BNXT_IP_PROTO_FULL_MASK; in bnxt_grxclsrule()
1356 if (!bnxt_verify_ntuple_ip4_flow(&fs->h_u.usr_ip4_spec, in bnxt_add_ntuple_cls_rule()
1357 &fs->m_u.usr_ip4_spec)) in bnxt_add_ntuple_cls_rule()
1380 struct ethtool_usrip4_spec *ip_spec = &fs->h_u.usr_ip4_spec; in bnxt_add_ntuple_cls_rule()
1381 struct ethtool_usrip4_spec *ip_mask = &fs->m_u.usr_ip4_spec; in bnxt_add_ntuple_cls_rule()
[all...]
/linux/drivers/net/ethernet/freescale/enetc/
H A Denetc_ethtool.c555 l3ip4_h = &fs->h_u.usr_ip4_spec; in enetc_set_cls_entry()
556 l3ip4_m = &fs->m_u.usr_ip4_spec; in enetc_set_cls_entry()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_ethtool.c2699 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry()
2700 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2701 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2908 switch (fsp->h_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
2919 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/aquantia/atlantic/
H A Daq_filters.c26 switch (fsp->h_u.usr_ip4_spec.proto) { in aq_rule_is_approve()
/linux/drivers/net/ethernet/sun/
H A Dniu.c7173 fsp->h_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7177 fsp->m_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7179 fsp->h_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key()
7182 fsp->m_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key()
7186 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in niu_get_ip4fs_from_tcam_key()
7435 spi = be32_to_cpu(fsp->h_u.usr_ip4_spec.l4_4_bytes); in niu_get_tcamkey_from_ip4fs()
7436 spim = be32_to_cpu(fsp->m_u.usr_ip4_spec.l4_4_bytes); in niu_get_tcamkey_from_ip4fs()
7440 pid = fsp->h_u.usr_ip4_spec.proto; in niu_get_tcamkey_from_ip4fs()
7474 struct ethtool_usrip4_spec *uspec = &fsp->h_u.usr_ip4_spec; in niu_add_ethtool_tcam_entry()
7475 struct ethtool_usrip4_spec *umask = &fsp->m_u.usr_ip4_spec; in niu_add_ethtool_tcam_entry()
[all...]
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c6214 ret = hclge_fd_check_ip4_tuple(&fs->h_u.usr_ip4_spec, in hclge_fd_check_spec()
6288 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple()
6290 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple()
6293 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple()
6295 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple()
6297 rule->tuples.ip_tos = fs->h_u.usr_ip4_spec.tos; in hclge_fd_get_ip4_tuple()
6298 rule->tuples_mask.ip_tos = fs->m_u.usr_ip4_spec.tos; in hclge_fd_get_ip4_tuple()
6300 rule->tuples.ip_proto = fs->h_u.usr_ip4_spec.proto; in hclge_fd_get_ip4_tuple()
6301 rule->tuples_mask.ip_proto = fs->m_u.usr_ip4_spec.proto; in hclge_fd_get_ip4_tuple()
6953 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()