/Linux-v5.15/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool_fdir.c | 140 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ice_get_ethtool_fdir_entry() 141 fsp->h_u.usr_ip4_spec.proto = 0; in ice_get_ethtool_fdir_entry() 142 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip.v4.l4_header; in ice_get_ethtool_fdir_entry() 143 fsp->h_u.usr_ip4_spec.tos = rule->ip.v4.tos; in ice_get_ethtool_fdir_entry() 144 fsp->h_u.usr_ip4_spec.ip4src = rule->ip.v4.src_ip; in ice_get_ethtool_fdir_entry() 145 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip.v4.dst_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() 147 fsp->m_u.usr_ip4_spec.ip4dst = rule->mask.v4.dst_ip; in ice_get_ethtool_fdir_entry() 148 fsp->m_u.usr_ip4_spec.ip_ver = 0xFF; in ice_get_ethtool_fdir_entry() 149 fsp->m_u.usr_ip4_spec.proto = 0; in ice_get_ethtool_fdir_entry() [all …]
|
/Linux-v5.15/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 1057 fsp->h_u.usr_ip4_spec.ip4src = rule->ip_data.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1058 fsp->h_u.usr_ip4_spec.ip4dst = rule->ip_data.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1059 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip_data.l4_header; in iavf_get_ethtool_fdir_entry() 1060 fsp->h_u.usr_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry() 1061 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in iavf_get_ethtool_fdir_entry() 1062 fsp->h_u.usr_ip4_spec.proto = rule->ip_data.proto; in iavf_get_ethtool_fdir_entry() 1063 fsp->m_u.usr_ip4_spec.ip4src = rule->ip_mask.v4_addrs.src_ip; in iavf_get_ethtool_fdir_entry() 1064 fsp->m_u.usr_ip4_spec.ip4dst = rule->ip_mask.v4_addrs.dst_ip; in iavf_get_ethtool_fdir_entry() 1065 fsp->m_u.usr_ip4_spec.l4_4_bytes = rule->ip_mask.l4_header; in iavf_get_ethtool_fdir_entry() 1066 fsp->m_u.usr_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry() [all …]
|
/Linux-v5.15/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet.c | 653 &fs->h_u.usr_ip4_spec.tos, in bcmgenet_hfb_create_rxnfc_filter() 654 &fs->m_u.usr_ip4_spec.tos, in bcmgenet_hfb_create_rxnfc_filter() 655 sizeof(fs->h_u.usr_ip4_spec.tos)); in bcmgenet_hfb_create_rxnfc_filter() 657 &fs->h_u.usr_ip4_spec.proto, in bcmgenet_hfb_create_rxnfc_filter() 658 &fs->m_u.usr_ip4_spec.proto, in bcmgenet_hfb_create_rxnfc_filter() 659 sizeof(fs->h_u.usr_ip4_spec.proto)); in bcmgenet_hfb_create_rxnfc_filter() 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() 665 &fs->h_u.usr_ip4_spec.ip4dst, in bcmgenet_hfb_create_rxnfc_filter() [all …]
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 248 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in parse_ip4() 249 struct ethtool_usrip4_spec *l3_val = &fs->h_u.usr_ip4_spec; in parse_ip4() 586 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in validate_ip4() 590 fs->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in validate_ip4()
|
/Linux-v5.15/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 3263 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry() 3264 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry() 3265 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry() 4167 struct ethtool_usrip4_spec *usr_ip4_spec; in i40e_check_fdir_input_set() local 4322 usr_ip4_spec = &fsp->m_u.usr_ip4_spec; 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() 4333 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set() 4335 else if (!usr_ip4_spec->ip4dst) in i40e_check_fdir_input_set() 4341 if (usr_ip4_spec->l4_4_bytes == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set() [all …]
|
/Linux-v5.15/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 655 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_get_class_rule() 656 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule() 927 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_set_class_rule() 928 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
|
/Linux-v5.15/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 791 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() 1027 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in ef4_ethtool_set_class_rule() 1028 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1369 l3_mask = &cmd->fs.m_u.usr_ip4_spec; in mlx4_en_validate_flow() 1371 cmd->fs.h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4 || in mlx4_en_validate_flow() 1465 struct ethtool_usrip4_spec *l3_mask = &cmd->fs.m_u.usr_ip4_spec; in add_ip_rule() 1476 usr_ip4_spec.ip4dst); in add_ip_rule() 1480 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule() 1483 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
|
/Linux-v5.15/include/uapi/linux/ |
D | ethtool.h | 960 struct ethtool_usrip4_spec usr_ip4_spec; member 1203 struct ethtool_usrip4_spec usr_ip4_spec; member
|
/Linux-v5.15/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 501 err = dpaa2_eth_prep_uip_rule(&fs->h_u.usr_ip4_spec, in dpaa2_eth_prep_cls_rule() 502 &fs->m_u.usr_ip4_spec, key, mask, fields); in dpaa2_eth_prep_cls_rule()
|
/Linux-v5.15/drivers/net/ethernet/freescale/enetc/ |
D | enetc_ethtool.c | 376 l3ip4_h = &fs->h_u.usr_ip4_spec; in enetc_set_cls_entry() 377 l3ip4_m = &fs->m_u.usr_ip4_spec; in enetc_set_cls_entry()
|
/Linux-v5.15/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2537 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry() 2538 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() 2539 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() 2738 switch (fsp->h_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type() 2749 if (!fsp->m_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
|
/Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 490 struct ethtool_usrip4_spec *ipv4_usr_mask = &fsp->m_u.usr_ip4_spec; in otx2_prepare_ipv4_flow() 491 struct ethtool_usrip4_spec *ipv4_usr_hdr = &fsp->h_u.usr_ip4_spec; in otx2_prepare_ipv4_flow()
|
/Linux-v5.15/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 26 switch (fsp->h_u.usr_ip4_spec.proto) { in aq_rule_is_approve()
|
/Linux-v5.15/drivers/net/ethernet/sun/ |
D | niu.c | 7130 fsp->h_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7134 fsp->m_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7136 fsp->h_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key() 7139 fsp->m_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key() 7143 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in niu_get_ip4fs_from_tcam_key() 7392 spi = be32_to_cpu(fsp->h_u.usr_ip4_spec.l4_4_bytes); in niu_get_tcamkey_from_ip4fs() 7393 spim = be32_to_cpu(fsp->m_u.usr_ip4_spec.l4_4_bytes); in niu_get_tcamkey_from_ip4fs() 7397 pid = fsp->h_u.usr_ip4_spec.proto; in niu_get_tcamkey_from_ip4fs() 7431 struct ethtool_usrip4_spec *uspec = &fsp->h_u.usr_ip4_spec; in niu_add_ethtool_tcam_entry() 7432 struct ethtool_usrip4_spec *umask = &fsp->m_u.usr_ip4_spec; in niu_add_ethtool_tcam_entry()
|
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 6315 ret = hclge_fd_check_ip4_tuple(&fs->h_u.usr_ip4_spec, in hclge_fd_check_spec() 6391 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple() 6393 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple() 6396 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple() 6398 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple() 6400 rule->tuples.ip_tos = fs->h_u.usr_ip4_spec.tos; in hclge_fd_get_ip4_tuple() 6401 rule->tuples_mask.ip_tos = fs->m_u.usr_ip4_spec.tos; in hclge_fd_get_ip4_tuple() 6403 rule->tuples.ip_proto = fs->h_u.usr_ip4_spec.proto; in hclge_fd_get_ip4_tuple() 6404 rule->tuples_mask.ip_proto = fs->m_u.usr_ip4_spec.proto; in hclge_fd_get_ip4_tuple() 7037 hclge_fd_get_ip4_info(rule, &fs->h_u.usr_ip4_spec, in hclge_get_fd_rule_info() [all …]
|
/Linux-v5.15/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 1210 if (flow->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in gfar_check_capability()
|