Home
last modified time | relevance | path

Searched refs:m_ext (Results 1 – 23 of 23) sorted by relevance

/linux-6.3-rc2/drivers/net/ethernet/aquantia/atlantic/
A Daq_filters.c60 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-6.3-rc2/drivers/net/ethernet/freescale/
A Dgianfar_ethtool.c1044 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()
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()
1270 flow->m_ext.data[0] ^= cpu_to_be32(~0); in gfar_invert_masks()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx5/core/
A Den_fs_ethtool.c386 (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-6.3-rc2/drivers/net/dsa/
A Dbcm_sf2_cfp.c380 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-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_flows.c869 if (fsp->m_ext.vlan_etype) { in otx2_prepare_flow_request()
871 if (be16_to_cpu(fsp->m_ext.vlan_etype) != 0xFFFF) in otx2_prepare_flow_request()
882 memcpy(&pmask->vlan_etype, &fsp->m_ext.vlan_etype, in otx2_prepare_flow_request()
891 if (fsp->m_ext.vlan_tci) { in otx2_prepare_flow_request()
894 memcpy(&pmask->vlan_tci, &fsp->m_ext.vlan_tci, in otx2_prepare_flow_request()
899 if (fsp->m_ext.data[1]) { in otx2_prepare_flow_request()
905 pmask->ip_flag = be32_to_cpu(fsp->m_ext.data[1]); in otx2_prepare_flow_request()
918 !is_zero_ether_addr(fsp->m_ext.h_dest)) { in otx2_prepare_flow_request()
920 ether_addr_copy(pmask->dmac, fsp->m_ext.h_dest); in otx2_prepare_flow_request()
/linux-6.3-rc2/drivers/net/ethernet/sfc/siena/
A Dethtool_common.c799 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-6.3-rc2/drivers/net/ethernet/sfc/falcon/
A Dethtool.c946 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-6.3-rc2/drivers/net/ethernet/sfc/
A Dethtool_common.c799 rule->m_ext.vlan_tci = htons(0xfff); in efx_ethtool_get_class_rule()
946 (rule->m_ext.vlan_etype || rule->m_ext.data[0] || in efx_ethtool_set_class_rule()
947 rule->m_ext.data[1])) in efx_ethtool_set_class_rule()
1113 if ((rule->flow_type & FLOW_EXT) && rule->m_ext.vlan_tci) { in efx_ethtool_set_class_rule()
1114 if (rule->m_ext.vlan_tci != htons(0xfff)) in efx_ethtool_set_class_rule()
/linux-6.3-rc2/drivers/net/ethernet/intel/iavf/
A Diavf_ethtool.c1010 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-6.3-rc2/drivers/net/ethernet/intel/ice/
A Dice_ethtool_fdir.c137 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-6.3-rc2/net/ethtool/
A Dioctl.c836 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()
3304 const struct ethtool_flow_ext *ext_m_spec = &fs->m_ext; in ethtool_rx_flow_rule_create()
3338 const struct ethtool_flow_ext *ext_m_spec = &fs->m_ext; in ethtool_rx_flow_rule_create()
/linux-6.3-rc2/drivers/net/ethernet/intel/igc/
A Digc_ethtool.c977 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-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A Den_ethtool.c1358 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-6.3-rc2/drivers/net/ethernet/broadcom/genet/
A Dbcmgenet.c591 &fs->h_ext.h_dest, &fs->m_ext.h_dest, in bcmgenet_hfb_create_rxnfc_filter()
596 if (fs->m_ext.vlan_etype || in bcmgenet_hfb_create_rxnfc_filter()
597 fs->m_ext.vlan_tci) { in bcmgenet_hfb_create_rxnfc_filter()
600 &fs->m_ext.vlan_etype, in bcmgenet_hfb_create_rxnfc_filter()
604 &fs->m_ext.vlan_tci, in bcmgenet_hfb_create_rxnfc_filter()
1411 if (VALIDATE_MASK(cmd->fs.m_ext.vlan_etype) || in bcmgenet_validate_flow()
1412 VALIDATE_MASK(cmd->fs.m_ext.vlan_tci)) { in bcmgenet_validate_flow()
1416 if (cmd->fs.m_ext.data[0] || cmd->fs.m_ext.data[1]) { in bcmgenet_validate_flow()
1424 if (VALIDATE_MASK(cmd->fs.m_ext.h_dest)) { in bcmgenet_validate_flow()
/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/
A Ddpaa2-ethtool.c557 err = dpaa2_eth_prep_ext_rule(&fs->h_ext, &fs->m_ext, key, mask, fields); in dpaa2_eth_prep_cls_rule()
563 err = dpaa2_eth_prep_mac_ext_rule(&fs->h_ext, &fs->m_ext, key, in dpaa2_eth_prep_cls_rule()
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgbe/
A Dixgbe_ethtool.c2586 fsp->m_ext.vlan_tci = mask->formatted.vlan_id; in ixgbe_get_ethtool_fdir_entry()
2588 fsp->m_ext.vlan_etype = mask->formatted.flex_bytes; in ixgbe_get_ethtool_fdir_entry()
2590 fsp->m_ext.data[1] = htonl(mask->formatted.vm_pool); in ixgbe_get_ethtool_fdir_entry()
2877 (unsigned char)ntohl(fsp->m_ext.data[1]); in ixgbe_add_ethtool_fdir_entry()
2879 mask.formatted.vlan_id = fsp->m_ext.vlan_tci; in ixgbe_add_ethtool_fdir_entry()
2882 mask.formatted.flex_bytes = fsp->m_ext.vlan_etype; in ixgbe_add_ethtool_fdir_entry()
/linux-6.3-rc2/include/linux/
A Dethtool.h27 struct ethtool_flow_ext m_ext; member
/linux-6.3-rc2/drivers/net/ethernet/intel/i40e/
A Di40e_ethtool.c3265 mask = be64_to_cpu(*((__be64 *)fsp->m_ext.data)); in i40e_parse_rx_flow_user_data()
3307 *((__be64 *)fsp->m_ext.data) = cpu_to_be64(mask); in i40e_fill_rx_flow_user_data()
3481 fsp->m_ext.vlan_etype = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
3483 fsp->m_ext.vlan_tci = htons(0xFFFF); in i40e_get_ethtool_fdir_entry()
4531 if (fsp->m_ext.vlan_tci == htons(0xFFFF)) in i40e_check_fdir_input_set()
4878 if (!fsp->m_ext.vlan_etype && fsp->h_ext.vlan_tci) in i40e_add_fdir_ethtool()
4880 if (fsp->m_ext.vlan_tci && input->vlan_etype) in i40e_add_fdir_ethtool()
/linux-6.3-rc2/include/uapi/linux/
A Dethtool.h1129 struct ethtool_flow_ext m_ext; member
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns3/hns3pf/
A Dhclge_main.c6060 if (fs->m_ext.vlan_tci && in hclge_fd_check_ext_tuple()
6117 return be32_to_cpu(fs->m_ext.data[1] | fs->m_ext.data[0]) == 0; in hclge_fd_is_user_def_all_masked()
6140 data_mask = be32_to_cpu(fs->m_ext.data[1]) & HCLGE_FD_USER_DEF_DATA; in hclge_fd_parse_user_def_field()
6142 offset_mask = be32_to_cpu(fs->m_ext.data[0]) & HCLGE_FD_USER_DEF_OFFSET; in hclge_fd_parse_user_def_field()
6432 rule->tuples_mask.vlan_tag1 = be16_to_cpu(fs->m_ext.vlan_tci); in hclge_fd_get_tuple()
6438 ether_addr_copy(rule->tuples_mask.dst_mac, fs->m_ext.h_dest); in hclge_fd_get_tuple()
6858 fs->m_ext.data[0] = 0; in hclge_fd_get_user_def_info()
6859 fs->m_ext.data[1] = 0; in hclge_fd_get_user_def_info()
6863 fs->m_ext.data[0] = in hclge_fd_get_user_def_info()
6865 fs->m_ext.data[1] = cpu_to_be32(rule->ep.user_def.data_mask); in hclge_fd_get_user_def_info()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/intel/igb/
A Digb_ethtool.c2462 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-6.3-rc2/drivers/net/ethernet/chelsio/cxgb4/
A Dcxgb4_ethtool.c1695 fs->m_ext.vlan_tci = cpu_to_be16(dfs->mask.ivlan); in cxgb4_fill_filter_rule()
/linux-6.3-rc2/drivers/net/dsa/mv88e6xxx/
A Dchip.c2252 if ((fs->flow_type & FLOW_EXT) && fs->m_ext.vlan_tci) { in mv88e6xxx_policy_insert()
2253 if (fs->m_ext.vlan_tci != htons(0xffff)) in mv88e6xxx_policy_insert()

Completed in 117 milliseconds