/Linux-v6.1/drivers/net/ethernet/aquantia/atlantic/ |
D | aq_filters.c | 60 memcmp(&fsp1->m_ext, &fsp2->m_ext, sizeof(fsp2->m_ext))) in aq_match_filter() 141 if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_PRIO_MASK && in aq_check_approve_fl2() 192 if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_VID_MASK) { in aq_check_filter() 194 } else if (be16_to_cpu(fsp->m_ext.vlan_tci) == VLAN_PRIO_MASK) { in aq_check_filter() 199 be16_to_cpu(fsp->m_ext.vlan_tci)); in aq_check_filter() 324 data->user_priority_en = be16_to_cpu(fsp->m_ext.vlan_tci) in aq_set_data_fl2() 594 if (be16_to_cpu(aq_rx_fltr->aq_fsp.m_ext.vlan_tci) in aq_add_del_rule() 598 } else if (be16_to_cpu(aq_rx_fltr->aq_fsp.m_ext.vlan_tci) in aq_add_del_rule()
|
/Linux-v6.1/drivers/net/ethernet/freescale/ |
D | gianfar_ethtool.c | 1044 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vidm() 1054 return be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfim() 1065 return (be16_to_cpu(rule->m_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_priom() 1081 (rule->m_ext.vlan_tci != cpu_to_be16(0xFFFF))) { in gfar_convert_to_filer() 1082 if (!rule->m_ext.vlan_tci) in gfar_convert_to_filer() 1083 rule->m_ext.vlan_tci = cpu_to_be16(0xFFFF); in gfar_convert_to_filer() 1206 if (~flow->m_ext.data[0] || ~flow->m_ext.data[1]) in gfar_check_capability() 1209 if (~flow->m_ext.vlan_etype) in gfar_check_capability() 1268 flow->m_ext.vlan_etype ^= cpu_to_be16(0xFFFF); in gfar_invert_masks() 1269 flow->m_ext.vlan_tci ^= cpu_to_be16(0xFFFF); in gfar_invert_masks() [all …]
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx5/core/ |
D | en_fs_ethtool.c | 386 (fs->m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) in set_flow_attrs() 390 !is_zero_ether_addr(fs->m_ext.h_dest)) { in set_flow_attrs() 391 mask_spec(fs->m_ext.h_dest, fs->h_ext.h_dest, ETH_ALEN); in set_flow_attrs() 392 set_dmac(outer_headers_c, outer_headers_v, fs->m_ext.h_dest, in set_flow_attrs() 656 if (fs->m_ext.vlan_etype || in validate_vlan() 657 fs->m_ext.vlan_tci != cpu_to_be16(VLAN_VID_MASK)) in validate_vlan() 660 if (fs->m_ext.vlan_tci && in validate_vlan() 721 !is_zero_ether_addr(fs->m_ext.h_dest)) in validate_flow()
|
/Linux-v6.1/drivers/net/dsa/ |
D | bcm_sf2_cfp.c | 380 vlan_m_tci = fs->m_ext.vlan_tci; in bcm_sf2_cfp_ipv4_rule_set() 618 ret |= rule->fs.m_ext.vlan_tci != fs->m_ext.vlan_tci; in bcm_sf2_cfp_rule_cmp() 660 vlan_m_tci = fs->m_ext.vlan_tci; in bcm_sf2_cfp_ipv6_rule_set() 883 if ((be16_to_cpu(fs->m_ext.vlan_tci) & VLAN_VID_MASK) != in bcm_sf2_cfp_rule_insert() 1058 flow->m_ext.vlan_etype ^= cpu_to_be16(~0); in bcm_sf2_invert_masks() 1059 flow->m_ext.vlan_tci ^= cpu_to_be16(~0); in bcm_sf2_invert_masks() 1060 flow->m_ext.data[0] ^= cpu_to_be32(~0); in bcm_sf2_invert_masks() 1061 flow->m_ext.data[1] ^= cpu_to_be32(~0); in bcm_sf2_invert_masks()
|
/Linux-v6.1/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_flows.c | 841 if (fsp->m_ext.vlan_etype) { in otx2_prepare_flow_request() 843 if (be16_to_cpu(fsp->m_ext.vlan_etype) != 0xFFFF) in otx2_prepare_flow_request() 854 memcpy(&pmask->vlan_etype, &fsp->m_ext.vlan_etype, in otx2_prepare_flow_request() 863 if (fsp->m_ext.vlan_tci) { in otx2_prepare_flow_request() 866 memcpy(&pmask->vlan_tci, &fsp->m_ext.vlan_tci, in otx2_prepare_flow_request() 872 if (fsp->m_ext.data[1] && in otx2_prepare_flow_request() 878 !is_zero_ether_addr(fsp->m_ext.h_dest)) { in otx2_prepare_flow_request() 880 ether_addr_copy(pmask->dmac, fsp->m_ext.h_dest); in otx2_prepare_flow_request()
|
/Linux-v6.1/drivers/net/ethernet/sfc/ |
D | ethtool_common.c | 836 rule->m_ext.vlan_tci = htons(0xfff); in efx_ethtool_get_class_rule() 983 (rule->m_ext.vlan_etype || rule->m_ext.data[0] || in efx_ethtool_set_class_rule() 984 rule->m_ext.data[1])) in efx_ethtool_set_class_rule() 1150 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) { in efx_ethtool_set_class_rule() 1151 if (rule->m_ext.vlan_tci != htons(0xfff)) in efx_ethtool_set_class_rule()
|
/Linux-v6.1/drivers/net/ethernet/sfc/falcon/ |
D | ethtool.c | 946 rule->m_ext.vlan_tci = htons(0xfff); in ef4_ethtool_get_class_rule() 1055 (rule->m_ext.vlan_etype || rule->m_ext.data[0] || in ef4_ethtool_set_class_rule() 1056 rule->m_ext.data[1])) in ef4_ethtool_set_class_rule() 1215 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) { in ef4_ethtool_set_class_rule() 1216 if (rule->m_ext.vlan_tci != htons(0xfff)) in ef4_ethtool_set_class_rule()
|
/Linux-v6.1/drivers/net/ethernet/sfc/siena/ |
D | ethtool_common.c | 799 rule->m_ext.vlan_tci = htons(0xfff); in efx_ethtool_get_class_rule() 947 (rule->m_ext.vlan_etype || rule->m_ext.data[0] || in efx_ethtool_set_class_rule() 948 rule->m_ext.data[1])) in efx_ethtool_set_class_rule() 1114 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) { in efx_ethtool_set_class_rule() 1115 if (rule->m_ext.vlan_tci != htons(0xfff)) in efx_ethtool_set_class_rule()
|
/Linux-v6.1/drivers/net/ethernet/intel/iavf/ |
D | iavf_ethtool.c | 1010 u32 mask = be32_to_cpu(fsp->m_ext.data[i]); in iavf_parse_rx_flow_user_data() 1050 memcpy(fsp->m_ext.data, fltr->ext_mask.usr_def, sizeof(fsp->m_ext.data)); in iavf_fill_rx_flow_ext_data() 1082 memset(&fsp->m_ext, 0, sizeof(fsp->m_ext)); in iavf_get_ethtool_fdir_entry() 1265 memcpy(fltr->ext_mask.usr_def, fsp->m_ext.data, in iavf_add_fdir_fltr_info()
|
/Linux-v6.1/drivers/net/ethernet/intel/ice/ |
D | ice_ethtool_fdir.c | 137 memset(&fsp->m_ext, 0, sizeof(fsp->m_ext)); in ice_get_ethtool_fdir_entry() 491 mask = be64_to_cpu(*((__force __be64 *)fsp->m_ext.data)); in ice_parse_rx_flow_user_data() 1751 memcpy(input->ext_mask.usr_def, fsp->m_ext.data, in ice_set_fdir_input_set() 1753 input->ext_mask.vlan_type = fsp->m_ext.vlan_etype; in ice_set_fdir_input_set() 1754 input->ext_mask.vlan_tag = fsp->m_ext.vlan_tci; in ice_set_fdir_input_set()
|
/Linux-v6.1/net/ethtool/ |
D | ioctl.c | 836 BUILD_BUG_ON(offsetof(struct compat_ethtool_rxnfc, fs.m_ext) + in ethtool_rxnfc_copy_from_compat() 837 sizeof(useraddr->fs.m_ext) != in ethtool_rxnfc_copy_from_compat() 838 offsetof(struct ethtool_rxnfc, fs.m_ext) + in ethtool_rxnfc_copy_from_compat() 839 sizeof(rxnfc->fs.m_ext)); in ethtool_rxnfc_copy_from_compat() 857 .m_ext = crxnfc.fs.m_ext, in ethtool_rxnfc_copy_from_compat() 896 .m_ext = rxnfc->fs.m_ext, in ethtool_rxnfc_copy_to_compat() 3265 const struct ethtool_flow_ext *ext_m_spec = &fs->m_ext; in ethtool_rx_flow_rule_create() 3299 const struct ethtool_flow_ext *ext_m_spec = &fs->m_ext; in ethtool_rx_flow_rule_create()
|
/Linux-v6.1/drivers/net/ethernet/intel/igc/ |
D | igc_ethtool.c | 977 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igc_ethtool_get_nfc_rule() 995 memcpy(fsp->m_ext.data, rule->filter.user_mask, sizeof(fsp->m_ext.data)); in igc_ethtool_get_nfc_rule() 1210 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) { in igc_ethtool_init_nfc_rule() 1246 memcpy(rule->filter.user_mask, fsp->m_ext.data, sizeof(fsp->m_ext.data)); in igc_ethtool_init_nfc_rule()
|
/Linux-v6.1/drivers/net/ethernet/mellanox/mlx4/ |
D | en_ethtool.c | 1358 if (!is_broadcast_ether_addr(cmd->fs.m_ext.h_dest)) in mlx4_en_validate_flow() 1402 if (cmd->fs.m_ext.vlan_etype || in mlx4_en_validate_flow() 1403 !((cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == in mlx4_en_validate_flow() 1405 (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK)) == in mlx4_en_validate_flow() 1409 if (cmd->fs.m_ext.vlan_tci) { in mlx4_en_validate_flow() 1431 (cmd->fs.m_ext.vlan_tci & cpu_to_be16(VLAN_VID_MASK))) { in mlx4_en_ethtool_add_mac_rule()
|
/Linux-v6.1/drivers/net/ethernet/broadcom/genet/ |
D | bcmgenet.c | 609 &fs->h_ext.h_dest, &fs->m_ext.h_dest, in bcmgenet_hfb_create_rxnfc_filter() 614 if (fs->m_ext.vlan_etype || in bcmgenet_hfb_create_rxnfc_filter() 615 fs->m_ext.vlan_tci) { in bcmgenet_hfb_create_rxnfc_filter() 618 &fs->m_ext.vlan_etype, in bcmgenet_hfb_create_rxnfc_filter() 622 &fs->m_ext.vlan_tci, in bcmgenet_hfb_create_rxnfc_filter() 1428 if (VALIDATE_MASK(cmd->fs.m_ext.vlan_etype) || in bcmgenet_validate_flow() 1429 VALIDATE_MASK(cmd->fs.m_ext.vlan_tci)) { in bcmgenet_validate_flow() 1433 if (cmd->fs.m_ext.data[0] || cmd->fs.m_ext.data[1]) { in bcmgenet_validate_flow() 1441 if (VALIDATE_MASK(cmd->fs.m_ext.h_dest)) { in bcmgenet_validate_flow()
|
/Linux-v6.1/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-ethtool.c | 527 err = dpaa2_eth_prep_ext_rule(&fs->h_ext, &fs->m_ext, key, mask, fields); in dpaa2_eth_prep_cls_rule() 533 err = dpaa2_eth_prep_mac_ext_rule(&fs->h_ext, &fs->m_ext, key, in dpaa2_eth_prep_cls_rule()
|
/Linux-v6.1/include/linux/ |
D | ethtool.h | 26 struct ethtool_flow_ext m_ext; member
|
/Linux-v6.1/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_ethtool.c | 2555 fsp->m_ext.vlan_tci = mask->formatted.vlan_id; in ixgbe_get_ethtool_fdir_entry() 2557 fsp->m_ext.vlan_etype = mask->formatted.flex_bytes; in ixgbe_get_ethtool_fdir_entry() 2559 fsp->m_ext.data[1] = htonl(mask->formatted.vm_pool); in ixgbe_get_ethtool_fdir_entry() 2846 (unsigned char)ntohl(fsp->m_ext.data[1]); in ixgbe_add_ethtool_fdir_entry() 2848 mask.formatted.vlan_id = fsp->m_ext.vlan_tci; in ixgbe_add_ethtool_fdir_entry() 2851 mask.formatted.flex_bytes = fsp->m_ext.vlan_etype; in ixgbe_add_ethtool_fdir_entry()
|
/Linux-v6.1/drivers/net/ethernet/intel/i40e/ |
D | i40e_ethtool.c | 3263 mask = be64_to_cpu(*((__be64 *)fsp->m_ext.data)); in i40e_parse_rx_flow_user_data() 3305 *((__be64 *)fsp->m_ext.data) = cpu_to_be64(mask); in i40e_fill_rx_flow_user_data() 3479 fsp->m_ext.vlan_etype = htons(0xFFFF); in i40e_get_ethtool_fdir_entry() 3481 fsp->m_ext.vlan_tci = htons(0xFFFF); in i40e_get_ethtool_fdir_entry() 4529 if (fsp->m_ext.vlan_tci == htons(0xFFFF)) in i40e_check_fdir_input_set() 4876 if (!fsp->m_ext.vlan_etype && fsp->h_ext.vlan_tci) in i40e_add_fdir_ethtool() 4878 if (fsp->m_ext.vlan_tci && input->vlan_etype) in i40e_add_fdir_ethtool()
|
/Linux-v6.1/include/uapi/linux/ |
D | ethtool.h | 1088 struct ethtool_flow_ext m_ext; member
|
/Linux-v6.1/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
D | hclge_main.c | 6045 if (fs->m_ext.vlan_tci && in hclge_fd_check_ext_tuple() 6102 return be32_to_cpu(fs->m_ext.data[1] | fs->m_ext.data[0]) == 0; in hclge_fd_is_user_def_all_masked() 6125 data_mask = be32_to_cpu(fs->m_ext.data[1]) & HCLGE_FD_USER_DEF_DATA; in hclge_fd_parse_user_def_field() 6127 offset_mask = be32_to_cpu(fs->m_ext.data[0]) & HCLGE_FD_USER_DEF_OFFSET; in hclge_fd_parse_user_def_field() 6417 rule->tuples_mask.vlan_tag1 = be16_to_cpu(fs->m_ext.vlan_tci); in hclge_fd_get_tuple() 6423 ether_addr_copy(rule->tuples_mask.dst_mac, fs->m_ext.h_dest); in hclge_fd_get_tuple() 6843 fs->m_ext.data[0] = 0; in hclge_fd_get_user_def_info() 6844 fs->m_ext.data[1] = 0; in hclge_fd_get_user_def_info() 6848 fs->m_ext.data[0] = in hclge_fd_get_user_def_info() 6850 fs->m_ext.data[1] = cpu_to_be32(rule->ep.user_def.data_mask); in hclge_fd_get_user_def_info() [all …]
|
/Linux-v6.1/drivers/net/ethernet/intel/igb/ |
D | igb_ethtool.c | 2462 fsp->m_ext.vlan_tci = htons(VLAN_PRIO_MASK); in igb_get_ethtool_nfc_entry() 2950 if ((fsp->flow_type & FLOW_EXT) && fsp->m_ext.vlan_tci) { in igb_add_ethtool_nfc_entry() 2951 if (fsp->m_ext.vlan_tci != htons(VLAN_PRIO_MASK)) { in igb_add_ethtool_nfc_entry()
|
/Linux-v6.1/drivers/net/ethernet/chelsio/cxgb4/ |
D | cxgb4_ethtool.c | 1695 fs->m_ext.vlan_tci = cpu_to_be16(dfs->mask.ivlan); in cxgb4_fill_filter_rule()
|
/Linux-v6.1/drivers/net/dsa/mv88e6xxx/ |
D | chip.c | 2253 if ((fs->flow_type & FLOW_EXT) && fs->m_ext.vlan_tci) { in mv88e6xxx_policy_insert() 2254 if (fs->m_ext.vlan_tci != htons(0xffff)) in mv88e6xxx_policy_insert()
|