Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c237 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in parse_ip4()
238 struct ethtool_usrip4_spec *l3_val = &fs->h_u.usr_ip4_spec; in parse_ip4()
535 struct ethtool_usrip4_spec *l3_mask = &fs->m_u.usr_ip4_spec; in validate_ip4()
539 fs->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in validate_ip4()
/Linux-v5.4/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3216 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry()
3217 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
3218 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry()
4057 struct ethtool_usrip4_spec *usr_ip4_spec; in i40e_check_fdir_input_set() local
4147 usr_ip4_spec = &fsp->m_u.usr_ip4_spec; in i40e_check_fdir_input_set()
4150 if (usr_ip4_spec->ip4src == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4152 else if (!usr_ip4_spec->ip4src) in i40e_check_fdir_input_set()
4158 if (usr_ip4_spec->ip4dst == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
4160 else if (!usr_ip4_spec->ip4dst) in i40e_check_fdir_input_set()
4166 if (usr_ip4_spec->l4_4_bytes == htonl(0xFFFFFFFF)) in i40e_check_fdir_input_set()
[all …]
/Linux-v5.4/include/uapi/linux/
Dethtool.h858 struct ethtool_usrip4_spec usr_ip4_spec; member
1099 struct ethtool_usrip4_spec usr_ip4_spec; member
/Linux-v5.4/drivers/net/ethernet/freescale/enetc/
Denetc_ethtool.c347 l3ip4_h = &fs->h_u.usr_ip4_spec; in enetc_set_cls_entry()
348 l3ip4_m = &fs->m_u.usr_ip4_spec; in enetc_set_cls_entry()
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/
Dethtool.c790 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in ef4_ethtool_get_class_rule()
791 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_get_class_rule()
1026 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
1027 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
/Linux-v5.4/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5136 struct ethtool_usrip4_spec *usr_ip4_spec; in hclge_fd_check_spec() local
5177 usr_ip4_spec = &fs->h_u.usr_ip4_spec; in hclge_fd_check_spec()
5181 if (!usr_ip4_spec->ip4src) in hclge_fd_check_spec()
5184 if (!usr_ip4_spec->ip4dst) in hclge_fd_check_spec()
5187 if (!usr_ip4_spec->tos) in hclge_fd_check_spec()
5190 if (!usr_ip4_spec->proto) in hclge_fd_check_spec()
5193 if (usr_ip4_spec->l4_4_bytes) in hclge_fd_check_spec()
5196 if (usr_ip4_spec->ip_ver != ETH_RX_NFC_IP4) in hclge_fd_check_spec()
5403 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4src); in hclge_fd_get_tuple()
5405 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_tuple()
[all …]
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1348 l3_mask = &cmd->fs.m_u.usr_ip4_spec; in mlx4_en_validate_flow()
1350 cmd->fs.h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4 || in mlx4_en_validate_flow()
1445 struct ethtool_usrip4_spec *l3_mask = &cmd->fs.m_u.usr_ip4_spec; in add_ip_rule()
1456 usr_ip4_spec.ip4dst); in add_ip_rule()
1460 spec_l3->ipv4.src_ip = cmd->fs.h_u.usr_ip4_spec.ip4src; in add_ip_rule()
1463 spec_l3->ipv4.dst_ip = cmd->fs.h_u.usr_ip4_spec.ip4dst; in add_ip_rule()
/Linux-v5.4/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c455 err = prep_uip_rule(&fs->h_u.usr_ip4_spec, in prep_cls_rule()
456 &fs->m_u.usr_ip4_spec, key, mask, fields); in prep_cls_rule()
/Linux-v5.4/drivers/net/ethernet/sfc/
Dethtool.c813 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
814 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule()
1082 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
1083 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2446 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry()
2447 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2448 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry()
2647 switch (fsp->h_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
2658 if (!fsp->m_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
/Linux-v5.4/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c26 switch (fsp->h_u.usr_ip4_spec.proto) { in aq_rule_is_approve()
/Linux-v5.4/drivers/net/ethernet/sun/
Dniu.c7132 fsp->h_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7136 fsp->m_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key()
7138 fsp->h_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key()
7141 fsp->m_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key()
7145 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in niu_get_ip4fs_from_tcam_key()
7394 spi = be32_to_cpu(fsp->h_u.usr_ip4_spec.l4_4_bytes); in niu_get_tcamkey_from_ip4fs()
7395 spim = be32_to_cpu(fsp->m_u.usr_ip4_spec.l4_4_bytes); in niu_get_tcamkey_from_ip4fs()
7399 pid = fsp->h_u.usr_ip4_spec.proto; in niu_get_tcamkey_from_ip4fs()
7433 struct ethtool_usrip4_spec *uspec = &fsp->h_u.usr_ip4_spec; in niu_add_ethtool_tcam_entry()
7434 struct ethtool_usrip4_spec *umask = &fsp->m_u.usr_ip4_spec; in niu_add_ethtool_tcam_entry()
/Linux-v5.4/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1239 if (flow->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in gfar_check_capability()