Home
last modified time | relevance | path

Searched refs:h_ext (Results 1 – 25 of 25) sorted by relevance

/linux-6.6.21/drivers/net/ethernet/broadcom/asp2/
Dbcmasp.c387 bcmasp_netfilt_wr_m_wake(priv, nfilt, 0, &fs->h_ext.h_dest, in bcmasp_netfilt_wr_to_hw()
389 sizeof(fs->h_ext.h_dest)); in bcmasp_netfilt_wr_to_hw()
395 &fs->h_ext.vlan_etype, in bcmasp_netfilt_wr_to_hw()
397 sizeof(fs->h_ext.vlan_etype)); in bcmasp_netfilt_wr_to_hw()
399 &fs->h_ext.vlan_tci, in bcmasp_netfilt_wr_to_hw()
401 sizeof(fs->h_ext.vlan_tci)); in bcmasp_netfilt_wr_to_hw()
623 if (cur->h_ext.vlan_etype != fs->h_ext.vlan_etype || in bcmasp_netfilt_check_dup()
625 cur->h_ext.vlan_tci != fs->h_ext.vlan_tci || in bcmasp_netfilt_check_dup()
627 cur->h_ext.data[0] != fs->h_ext.data[0]) in bcmasp_netfilt_check_dup()
631 if (memcmp(&cur->h_ext.h_dest, in bcmasp_netfilt_check_dup()
[all …]
/linux-6.6.21/drivers/net/ethernet/aquantia/atlantic/
Daq_filters.c58 memcmp(&fsp1->h_ext, &fsp2->h_ext, sizeof(fsp2->h_ext)) || in aq_match_filter()
168 (!test_bit(be16_to_cpu(fsp->h_ext.vlan_tci) & VLAN_VID_MASK, in aq_check_approve_fvlan()
326 data->user_priority = (be16_to_cpu(fsp->h_ext.vlan_tci) in aq_set_data_fl2()
417 (be16_to_cpu(fsp->h_ext.vlan_tci) & VLAN_VID_MASK)) { in aq_set_data_fvlan()
423 aq_vlans[location].vlan_id = be16_to_cpu(fsp->h_ext.vlan_tci) in aq_set_data_fvlan()
439 if (be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id) in aq_del_fvlan_by_vlan()
443 be16_to_cpu(rule->aq_fsp.h_ext.vlan_tci) == vlan_id) { in aq_del_fvlan_by_vlan()
/linux-6.6.21/drivers/net/dsa/
Dbcm_sf2_cfp.c375 ip_frag = !!(be32_to_cpu(fs->h_ext.data[0]) & 1); in bcm_sf2_cfp_ipv4_rule_set()
379 vlan_tci = fs->h_ext.vlan_tci; in bcm_sf2_cfp_ipv4_rule_set()
597 rule->fs.h_ext.data[0] != fs->h_ext.data[0]) in bcm_sf2_cfp_rule_cmp()
617 ret |= rule->fs.h_ext.vlan_tci != fs->h_ext.vlan_tci; in bcm_sf2_cfp_rule_cmp()
655 ip_frag = !!(be32_to_cpu(fs->h_ext.data[0]) & 1); in bcm_sf2_cfp_ipv6_rule_set()
659 vlan_tci = fs->h_ext.vlan_tci; in bcm_sf2_cfp_ipv6_rule_set()
887 vid = be16_to_cpu(fs->h_ext.vlan_tci) & VLAN_VID_MASK; in bcm_sf2_cfp_rule_insert()
889 if (be32_to_cpu(fs->h_ext.data[1]) & 1) in bcm_sf2_cfp_rule_insert()
/linux-6.6.21/drivers/net/ethernet/intel/igc/
Digc_ethtool.c985 fsp->h_ext.vlan_etype = rule->filter.vlan_etype; in igc_ethtool_get_nfc_rule()
991 fsp->h_ext.vlan_tci = htons(rule->filter.vlan_tci); in igc_ethtool_get_nfc_rule()
1009 memcpy(fsp->h_ext.data, rule->filter.user_data, sizeof(fsp->h_ext.data)); in igc_ethtool_get_nfc_rule()
1226 rule->filter.vlan_tci = ntohs(fsp->h_ext.vlan_tci); in igc_ethtool_init_nfc_rule()
1252 if ((fsp->flow_type & FLOW_EXT) && fsp->h_ext.vlan_etype) { in igc_ethtool_init_nfc_rule()
1253 rule->filter.vlan_etype = fsp->h_ext.vlan_etype; in igc_ethtool_init_nfc_rule()
1259 (fsp->h_ext.data[0] || fsp->h_ext.data[1])) { in igc_ethtool_init_nfc_rule()
1261 memcpy(rule->filter.user_data, fsp->h_ext.data, sizeof(fsp->h_ext.data)); in igc_ethtool_init_nfc_rule()
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c876 vlan_etype = be16_to_cpu(fsp->h_ext.vlan_etype); in otx2_prepare_flow_request()
890 memcpy(&pkt->vlan_etype, &fsp->h_ext.vlan_etype, in otx2_prepare_flow_request()
902 memcpy(&pkt->vlan_tci, &fsp->h_ext.vlan_tci, in otx2_prepare_flow_request()
911 if (be32_to_cpu(fsp->h_ext.data[1]) != IPV4_FLAG_MORE) in otx2_prepare_flow_request()
914 pkt->ip_flag = be32_to_cpu(fsp->h_ext.data[1]); in otx2_prepare_flow_request()
917 } else if (fsp->h_ext.data[1] == in otx2_prepare_flow_request()
929 ether_addr_copy(pkt->dmac, fsp->h_ext.h_dest); in otx2_prepare_flow_request()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c383 set_cvlan(outer_headers_c, outer_headers_v, fs->h_ext.vlan_tci); in set_flow_attrs()
387 mask_spec(fs->m_ext.h_dest, fs->h_ext.h_dest, ETH_ALEN); in set_flow_attrs()
389 fs->h_ext.h_dest); in set_flow_attrs()
657 (be16_to_cpu(fs->h_ext.vlan_tci) >= VLAN_N_VID)) in validate_vlan()
/linux-6.6.21/drivers/net/ethernet/intel/iavf/
Diavf_ethtool.c1007 u32 value = be32_to_cpu(fsp->h_ext.data[i]); in iavf_parse_rx_flow_user_data()
1047 memcpy(fsp->h_ext.data, fltr->ext_data.usr_def, sizeof(fsp->h_ext.data)); in iavf_fill_rx_flow_ext_data()
1261 memcpy(fltr->ext_data.usr_def, fsp->h_ext.data, in iavf_add_fdir_fltr_info()
/linux-6.6.21/drivers/net/ethernet/intel/ice/
Dice_ethtool_fdir.c490 value = be64_to_cpu(*((__force __be64 *)fsp->h_ext.data)); in ice_parse_rx_flow_user_data()
1747 memcpy(input->ext_data.usr_def, fsp->h_ext.data, in ice_set_fdir_input_set()
1749 input->ext_data.vlan_type = fsp->h_ext.vlan_etype; in ice_set_fdir_input_set()
1750 input->ext_data.vlan_tag = fsp->h_ext.vlan_tci; in ice_set_fdir_input_set()
/linux-6.6.21/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1041 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid()
1051 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfi()
1061 return (be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_prio()
/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/
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.6.21/drivers/net/ethernet/qlogic/qede/
Dqede_filter.c1509 (fs->h_ext.vlan_etype || fs->h_ext.vlan_tci)) { in qede_flow_spec_validate_unused()
1515 (fs->h_ext.data[0] || fs->h_ext.data[1])) { in qede_flow_spec_validate_unused()
/linux-6.6.21/drivers/net/ethernet/intel/i40e/
Di40e_ethtool.c3264 value = be64_to_cpu(*((__be64 *)fsp->h_ext.data)); in i40e_parse_rx_flow_user_data()
3306 *((__be64 *)fsp->h_ext.data) = cpu_to_be64(value); in i40e_fill_rx_flow_user_data()
3480 fsp->h_ext.vlan_etype = rule->vlan_etype; in i40e_get_ethtool_fdir_entry()
3482 fsp->h_ext.vlan_tci = rule->vlan_tag; in i40e_get_ethtool_fdir_entry()
4528 if (fsp->h_ext.vlan_etype != htons(ETH_P_8021Q) && in i40e_check_fdir_input_set()
4529 fsp->h_ext.vlan_etype != 0) in i40e_check_fdir_input_set()
4877 input->vlan_etype = fsp->h_ext.vlan_etype; in i40e_add_fdir_ethtool()
4878 if (!fsp->m_ext.vlan_etype && fsp->h_ext.vlan_tci) in i40e_add_fdir_ethtool()
4881 input->vlan_tag = fsp->h_ext.vlan_tci; in i40e_add_fdir_ethtool()
/linux-6.6.21/net/ethtool/
Dioctl.c856 .h_ext = crxnfc.fs.h_ext, in ethtool_rxnfc_copy_from_compat()
895 .h_ext = rxnfc->fs.h_ext, in ethtool_rxnfc_copy_to_compat()
3315 const struct ethtool_flow_ext *ext_h_spec = &fs->h_ext; in ethtool_rx_flow_rule_create()
3349 const struct ethtool_flow_ext *ext_h_spec = &fs->h_ext; in ethtool_rx_flow_rule_create()
/linux-6.6.21/drivers/net/ethernet/intel/ixgbe/
Dixgbe_ethtool.c2585 fsp->h_ext.vlan_tci = rule->filter.formatted.vlan_id; in ixgbe_get_ethtool_fdir_entry()
2587 fsp->h_ext.vlan_etype = rule->filter.formatted.flex_bytes; in ixgbe_get_ethtool_fdir_entry()
2589 fsp->h_ext.data[1] = htonl(rule->filter.formatted.vm_pool); in ixgbe_get_ethtool_fdir_entry()
2884 (unsigned char)ntohl(fsp->h_ext.data[1]); in ixgbe_add_ethtool_fdir_entry()
2887 input->filter.formatted.vlan_id = fsp->h_ext.vlan_tci; in ixgbe_add_ethtool_fdir_entry()
2890 fsp->h_ext.vlan_etype; in ixgbe_add_ethtool_fdir_entry()
/linux-6.6.21/include/linux/
Dethtool.h25 struct ethtool_flow_ext h_ext; member
/linux-6.6.21/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c591 &fs->h_ext.h_dest, &fs->m_ext.h_dest, in bcmgenet_hfb_create_rxnfc_filter()
592 sizeof(fs->h_ext.h_dest)); in bcmgenet_hfb_create_rxnfc_filter()
599 &fs->h_ext.vlan_etype, in bcmgenet_hfb_create_rxnfc_filter()
601 sizeof(fs->h_ext.vlan_etype)); in bcmgenet_hfb_create_rxnfc_filter()
603 &fs->h_ext.vlan_tci, in bcmgenet_hfb_create_rxnfc_filter()
605 sizeof(fs->h_ext.vlan_tci)); in bcmgenet_hfb_create_rxnfc_filter()
/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Dethtool_common.c798 rule->h_ext.vlan_tci = spec.outer_vid; in efx_ethtool_get_class_rule()
1118 spec.outer_vid = rule->h_ext.vlan_tci; in efx_ethtool_set_class_rule()
/linux-6.6.21/drivers/net/ethernet/sfc/
Dethtool_common.c798 rule->h_ext.vlan_tci = spec.outer_vid; in efx_ethtool_get_class_rule()
1117 spec.outer_vid = rule->h_ext.vlan_tci; in efx_ethtool_set_class_rule()
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/
Dethtool.c945 rule->h_ext.vlan_tci = spec.outer_vid; in ef4_ethtool_get_class_rule()
1219 spec.outer_vid = rule->h_ext.vlan_tci; in ef4_ethtool_set_class_rule()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx4/
Den_ethtool.c1410 if (be16_to_cpu(cmd->fs.h_ext.vlan_tci) >= VLAN_N_VID) in mlx4_en_validate_flow()
1432 spec_l2->eth.vlan_id = cmd->fs.h_ext.vlan_tci; in mlx4_en_ethtool_add_mac_rule()
1452 memcpy(&mac, cmd->fs.h_ext.h_dest, ETH_ALEN); in mlx4_en_ethtool_add_mac_rule_by_ipv4()
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3pf/
Dhclge_main.c5963 if (fs->h_ext.vlan_etype) { in hclge_fd_check_ext_tuple()
5968 if (!fs->h_ext.vlan_tci) in hclge_fd_check_ext_tuple()
5972 be16_to_cpu(fs->h_ext.vlan_tci) >= VLAN_N_VID) { in hclge_fd_check_ext_tuple()
5975 ntohs(fs->h_ext.vlan_tci), VLAN_N_VID - 1); in hclge_fd_check_ext_tuple()
5990 if (is_zero_ether_addr(fs->h_ext.h_dest)) in hclge_fd_check_ext_tuple()
6050 data = be32_to_cpu(fs->h_ext.data[1]) & HCLGE_FD_USER_DEF_DATA; in hclge_fd_parse_user_def_field()
6052 offset = be32_to_cpu(fs->h_ext.data[0]) & HCLGE_FD_USER_DEF_OFFSET; in hclge_fd_parse_user_def_field()
6336 rule->tuples.vlan_tag1 = be16_to_cpu(fs->h_ext.vlan_tci); in hclge_fd_get_tuple()
6342 ether_addr_copy(rule->tuples.dst_mac, fs->h_ext.h_dest); in hclge_fd_get_tuple()
6761 fs->h_ext.data[0] = 0; in hclge_fd_get_user_def_info()
[all …]
/linux-6.6.21/include/uapi/linux/
Dethtool.h1127 struct ethtool_flow_ext h_ext; member
/linux-6.6.21/drivers/net/ethernet/intel/igb/
Digb_ethtool.c2464 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igb_get_ethtool_nfc_entry()
2958 input->filter.vlan_tci = fsp->h_ext.vlan_tci; in igb_add_ethtool_nfc_entry()
/linux-6.6.21/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c1694 fs->h_ext.vlan_tci = cpu_to_be16(dfs->val.ivlan); in cxgb4_fill_filter_rule()
/linux-6.6.21/drivers/net/dsa/mv88e6xxx/
Dchip.c2220 vid = be16_to_cpu(fs->h_ext.vlan_tci) & VLAN_VID_MASK; in mv88e6xxx_policy_insert()