| /linux/drivers/net/ethernet/intel/ice/ |
| A D | ice_ethtool_fdir.c | 150 fsp->h_u.usr_ip4_spec.proto = 0; in ice_get_ethtool_fdir_entry() 152 fsp->h_u.usr_ip4_spec.tos = rule->ip.v4.tos; 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.proto = 0; in ice_get_ethtool_fdir_entry() 1015 if (usr_ip4_spec->l4_4_bytes) in ice_set_fdir_ip4_usr_seg() 1017 if (usr_ip4_spec->tos) in ice_set_fdir_ip4_usr_seg() 1019 if (usr_ip4_spec->ip_ver) in ice_set_fdir_ip4_usr_seg() 1022 if (usr_ip4_spec->proto) in ice_set_fdir_ip4_usr_seg() 1025 if (!usr_ip4_spec->ip4src && !usr_ip4_spec->ip4dst) 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/intel/iavf/ |
| A D | iavf_ethtool.c | 970 fsp->h_u.usr_ip4_spec.l4_4_bytes = rule->ip_data.l4_header; in iavf_get_ethtool_fdir_entry() 971 fsp->h_u.usr_ip4_spec.tos = rule->ip_data.tos; in iavf_get_ethtool_fdir_entry() 972 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in iavf_get_ethtool_fdir_entry() 973 fsp->h_u.usr_ip4_spec.proto = rule->ip_data.proto; in iavf_get_ethtool_fdir_entry() 977 fsp->m_u.usr_ip4_spec.tos = rule->ip_mask.tos; in iavf_get_ethtool_fdir_entry() 978 fsp->m_u.usr_ip4_spec.ip_ver = 0xFF; in iavf_get_ethtool_fdir_entry() 979 fsp->m_u.usr_ip4_spec.proto = rule->ip_mask.proto; in iavf_get_ethtool_fdir_entry() 1164 fltr->ip_data.tos = fsp->h_u.usr_ip4_spec.tos; in iavf_add_fdir_fltr_info() 1165 fltr->ip_data.proto = fsp->h_u.usr_ip4_spec.proto; in iavf_add_fdir_fltr_info() 1169 fltr->ip_mask.tos = fsp->m_u.usr_ip4_spec.tos; in iavf_add_fdir_fltr_info() [all …]
|
| /linux/drivers/net/ethernet/broadcom/asp2/ |
| A D | bcmasp.c | 444 &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() 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() 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() 456 &fs->h_u.usr_ip4_spec.ip4dst, in bcmasp_netfilt_wr_to_hw() 457 &fs->m_u.usr_ip4_spec.ip4dst, in bcmasp_netfilt_wr_to_hw() 459 if (!fs->m_u.usr_ip4_spec.l4_4_bytes) in bcmasp_netfilt_wr_to_hw() 469 &fs->h_u.usr_ip4_spec.l4_4_bytes, in bcmasp_netfilt_wr_to_hw() [all …]
|
| /linux/drivers/net/ethernet/wangxun/txgbe/ |
| A D | txgbe_ethtool.c | 117 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in txgbe_get_ethtool_fdir_entry() 118 fsp->h_u.usr_ip4_spec.proto = 0; in txgbe_get_ethtool_fdir_entry() 119 fsp->m_u.usr_ip4_spec.proto = 0; in txgbe_get_ethtool_fdir_entry() 215 switch (fsp->h_u.usr_ip4_spec.proto) { in txgbe_flowspec_to_flow_type() 226 if (!fsp->m_u.usr_ip4_spec.proto) { in txgbe_flowspec_to_flow_type()
|
| /linux/drivers/net/ethernet/netronome/nfp/ |
| A D | nfp_net_ethtool.c | 1362 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in nfp_net_fs_to_ethtool() 1363 fs->h_u.usr_ip4_spec.ip4src = entry->key.sip4; in nfp_net_fs_to_ethtool() 1364 fs->h_u.usr_ip4_spec.ip4dst = entry->key.dip4; in nfp_net_fs_to_ethtool() 1365 fs->h_u.usr_ip4_spec.proto = entry->key.l4_proto; in nfp_net_fs_to_ethtool() 1366 fs->m_u.usr_ip4_spec.ip4src = entry->msk.sip4; in nfp_net_fs_to_ethtool() 1367 fs->m_u.usr_ip4_spec.ip4dst = entry->msk.dip4; in nfp_net_fs_to_ethtool() 1368 fs->m_u.usr_ip4_spec.proto = entry->msk.l4_proto; in nfp_net_fs_to_ethtool() 1546 entry->msk.sip4 = fs->m_u.usr_ip4_spec.ip4src; in nfp_net_fs_from_ethtool() 1548 entry->msk.l4_proto = fs->m_u.usr_ip4_spec.proto; in nfp_net_fs_from_ethtool() 1647 !!fs->m_u.usr_ip4_spec.tos || in nfp_net_fs_add() [all …]
|
| /linux/drivers/net/ethernet/broadcom/genet/ |
| A D | bcmgenet.c | 635 &fs->h_u.usr_ip4_spec.tos, in bcmgenet_hfb_create_rxnfc_filter() 636 &fs->m_u.usr_ip4_spec.tos, in bcmgenet_hfb_create_rxnfc_filter() 639 &fs->h_u.usr_ip4_spec.proto, in bcmgenet_hfb_create_rxnfc_filter() 640 &fs->m_u.usr_ip4_spec.proto, in bcmgenet_hfb_create_rxnfc_filter() 643 &fs->h_u.usr_ip4_spec.ip4src, in bcmgenet_hfb_create_rxnfc_filter() 644 &fs->m_u.usr_ip4_spec.ip4src, in bcmgenet_hfb_create_rxnfc_filter() 647 &fs->h_u.usr_ip4_spec.ip4dst, in bcmgenet_hfb_create_rxnfc_filter() 648 &fs->m_u.usr_ip4_spec.ip4dst, in bcmgenet_hfb_create_rxnfc_filter() 650 if (!fs->m_u.usr_ip4_spec.l4_4_bytes) in bcmgenet_hfb_create_rxnfc_filter() 662 &fs->h_u.usr_ip4_spec.l4_4_bytes, in bcmgenet_hfb_create_rxnfc_filter() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| A D | en_fs_ethtool.c | 261 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/ |
| A D | i40e_ethtool.c | 3381 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in i40e_get_ethtool_fdir_entry() 3382 fsp->h_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry() 3383 fsp->m_u.usr_ip4_spec.proto = 0; in i40e_get_ethtool_fdir_entry() 4301 struct ethtool_usrip4_spec *usr_ip4_spec; in i40e_check_fdir_input_set() local 4456 usr_ip4_spec = &fsp->m_u.usr_ip4_spec; in i40e_check_fdir_input_set() 4461 else if (!usr_ip4_spec->ip4src) in i40e_check_fdir_input_set() 4469 else if (!usr_ip4_spec->ip4dst) in i40e_check_fdir_input_set() 4475 if (usr_ip4_spec->l4_4_bytes) in i40e_check_fdir_input_set() 4479 if (usr_ip4_spec->tos) in i40e_check_fdir_input_set() 4483 if (usr_ip4_spec->ip_ver) in i40e_check_fdir_input_set() [all …]
|
| /linux/drivers/net/ethernet/sfc/siena/ |
| A D | ethtool_common.c | 650 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_get_class_rule() 651 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/ |
| A D | ethtool_common.c | 650 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_get_class_rule() 651 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_get_class_rule() 922 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in efx_ethtool_set_class_rule() 923 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in efx_ethtool_set_class_rule()
|
| /linux/drivers/net/ethernet/sfc/falcon/ |
| A D | ethtool.c | 797 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in ef4_ethtool_get_class_rule() 798 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_get_class_rule() 1033 struct ethtool_usrip4_spec *uip_entry = &rule->h_u.usr_ip4_spec; in ef4_ethtool_set_class_rule() 1034 struct ethtool_usrip4_spec *uip_mask = &rule->m_u.usr_ip4_spec; in ef4_ethtool_set_class_rule()
|
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| A D | en_ethtool.c | 1357 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/include/uapi/linux/ |
| A D | ethtool.h | 1340 struct ethtool_usrip4_spec usr_ip4_spec; member 1586 struct ethtool_usrip4_spec usr_ip4_spec; member
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| A D | dpaa2-ethtool.c | 533 err = dpaa2_eth_prep_uip_rule(&fs->h_u.usr_ip4_spec, in dpaa2_eth_prep_cls_rule() 534 &fs->m_u.usr_ip4_spec, key, mask, fields); in dpaa2_eth_prep_cls_rule()
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| A D | bnxt_ethtool.c | 1137 fs->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in bnxt_grxclsrule() 1139 fs->h_u.usr_ip4_spec.proto = IPPROTO_ICMP; in bnxt_grxclsrule() 1141 fs->h_u.usr_ip4_spec.proto = IPPROTO_RAW; in bnxt_grxclsrule() 1142 fs->m_u.usr_ip4_spec.proto = BNXT_IP_PROTO_FULL_MASK; in bnxt_grxclsrule() 1333 if (!bnxt_verify_ntuple_ip4_flow(&fs->h_u.usr_ip4_spec, in bnxt_add_ntuple_cls_rule() 1334 &fs->m_u.usr_ip4_spec)) in bnxt_add_ntuple_cls_rule() 1357 struct ethtool_usrip4_spec *ip_spec = &fs->h_u.usr_ip4_spec; in bnxt_add_ntuple_cls_rule() 1358 struct ethtool_usrip4_spec *ip_mask = &fs->m_u.usr_ip4_spec; in bnxt_add_ntuple_cls_rule()
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| A D | enetc_ethtool.c | 554 l3ip4_h = &fs->h_u.usr_ip4_spec; in enetc_set_cls_entry() 555 l3ip4_m = &fs->m_u.usr_ip4_spec; in enetc_set_cls_entry()
|
| /linux/drivers/net/ethernet/intel/ixgbe/ |
| A D | ixgbe_ethtool.c | 2570 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in ixgbe_get_ethtool_fdir_entry() 2571 fsp->h_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() 2572 fsp->m_u.usr_ip4_spec.proto = 0; in ixgbe_get_ethtool_fdir_entry() 2780 switch (fsp->h_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type() 2791 if (!fsp->m_u.usr_ip4_spec.proto) { in ixgbe_flowspec_to_flow_type()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
| A D | otx2_flows.c | 534 struct ethtool_usrip4_spec *ipv4_usr_mask = &fsp->m_u.usr_ip4_spec; in otx2_prepare_ipv4_flow() 535 struct ethtool_usrip4_spec *ipv4_usr_hdr = &fsp->h_u.usr_ip4_spec; in otx2_prepare_ipv4_flow()
|
| /linux/drivers/net/ethernet/aquantia/atlantic/ |
| A D | aq_filters.c | 26 switch (fsp->h_u.usr_ip4_spec.proto) { in aq_rule_is_approve()
|
| /linux/drivers/net/ethernet/sun/ |
| A D | niu.c | 7148 fsp->h_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7152 fsp->m_u.usr_ip4_spec.l4_4_bytes = cpu_to_be32(tmp); in niu_get_ip4fs_from_tcam_key() 7154 fsp->h_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key() 7157 fsp->m_u.usr_ip4_spec.proto = in niu_get_ip4fs_from_tcam_key() 7161 fsp->h_u.usr_ip4_spec.ip_ver = ETH_RX_NFC_IP4; in niu_get_ip4fs_from_tcam_key() 7410 spi = be32_to_cpu(fsp->h_u.usr_ip4_spec.l4_4_bytes); in niu_get_tcamkey_from_ip4fs() 7411 spim = be32_to_cpu(fsp->m_u.usr_ip4_spec.l4_4_bytes); in niu_get_tcamkey_from_ip4fs() 7415 pid = fsp->h_u.usr_ip4_spec.proto; in niu_get_tcamkey_from_ip4fs() 7449 struct ethtool_usrip4_spec *uspec = &fsp->h_u.usr_ip4_spec; in niu_add_ethtool_tcam_entry() 7450 struct ethtool_usrip4_spec *umask = &fsp->m_u.usr_ip4_spec; in niu_add_ethtool_tcam_entry()
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
| A D | hclge_main.c | 6198 ret = hclge_fd_check_ip4_tuple(&fs->h_u.usr_ip4_spec, in hclge_fd_check_spec() 6272 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple() 6274 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4src); in hclge_fd_get_ip4_tuple() 6277 be32_to_cpu(fs->h_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple() 6279 be32_to_cpu(fs->m_u.usr_ip4_spec.ip4dst); in hclge_fd_get_ip4_tuple() 6281 rule->tuples.ip_tos = fs->h_u.usr_ip4_spec.tos; in hclge_fd_get_ip4_tuple() 6282 rule->tuples_mask.ip_tos = fs->m_u.usr_ip4_spec.tos; in hclge_fd_get_ip4_tuple() 6284 rule->tuples.ip_proto = fs->h_u.usr_ip4_spec.proto; in hclge_fd_get_ip4_tuple() 6285 rule->tuples_mask.ip_proto = fs->m_u.usr_ip4_spec.proto; in hclge_fd_get_ip4_tuple() 6937 hclge_fd_get_ip4_info(rule, &fs->h_u.usr_ip4_spec, in hclge_get_fd_rule_info() [all …]
|
| /linux/drivers/net/ethernet/freescale/ |
| A D | gianfar_ethtool.c | 1216 if (flow->h_u.usr_ip4_spec.ip_ver != ETH_RX_NFC_IP4) in gfar_check_capability()
|