/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_filters.c | 58 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/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp.c | 404 bcmasp_netfilt_wr_m_wake(priv, nfilt, 0, &fs->h_ext.h_dest, in bcmasp_netfilt_wr_to_hw() 406 sizeof(fs->h_ext.h_dest)); in bcmasp_netfilt_wr_to_hw() 412 &fs->h_ext.vlan_etype, in bcmasp_netfilt_wr_to_hw() 414 sizeof(fs->h_ext.vlan_etype)); in bcmasp_netfilt_wr_to_hw() 416 &fs->h_ext.vlan_tci, in bcmasp_netfilt_wr_to_hw() 418 sizeof(fs->h_ext.vlan_tci)); in bcmasp_netfilt_wr_to_hw() 640 if (cur->h_ext.vlan_etype != fs->h_ext.vlan_etype || in bcmasp_netfilt_check_dup() 642 cur->h_ext.vlan_tci != fs->h_ext.vlan_tci || in bcmasp_netfilt_check_dup() 644 cur->h_ext.data[0] != fs->h_ext.data[0]) in bcmasp_netfilt_check_dup() 648 if (memcmp(&cur->h_ext.h_dest, in bcmasp_netfilt_check_dup() [all …]
|
/linux/drivers/net/ethernet/wangxun/txgbe/ |
H A D | txgbe_ethtool.c | 133 fsp->h_ext.vlan_etype = rule->filter.formatted.flex_bytes; in txgbe_get_ethtool_fdir_entry() 135 fsp->h_ext.data[1] = htonl(rule->filter.formatted.vm_pool); in txgbe_get_ethtool_fdir_entry() 393 (unsigned char)ntohl(fsp->h_ext.data[1]); in txgbe_add_ethtool_fdir_entry() 397 fsp->h_ext.vlan_etype; in txgbe_add_ethtool_fdir_entry()
|
/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_ethtool.c | 984 fsp->h_ext.vlan_etype = htons(rule->filter.vlan_etype); in igc_ethtool_get_nfc_rule() 990 fsp->h_ext.vlan_tci = htons(rule->filter.vlan_tci); in igc_ethtool_get_nfc_rule() 1008 memcpy(fsp->h_ext.data, rule->filter.user_data, sizeof(fsp->h_ext.data)); in igc_ethtool_get_nfc_rule() 1225 rule->filter.vlan_tci = ntohs(fsp->h_ext.vlan_tci); in igc_ethtool_init_nfc_rule() 1251 if ((fsp->flow_type & FLOW_EXT) && fsp->h_ext.vlan_etype) { in igc_ethtool_init_nfc_rule() 1252 rule->filter.vlan_etype = ntohs(fsp->h_ext.vlan_etype); in igc_ethtool_init_nfc_rule() 1258 (fsp->h_ext.data[0] || fsp->h_ext.data[1])) { in igc_ethtool_init_nfc_rule() 1260 memcpy(rule->filter.user_data, fsp->h_ext.data, sizeof(fsp->h_ext.data)); in igc_ethtool_init_nfc_rule()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs_ethtool.c | 383 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/drivers/net/ethernet/google/gve/ |
H A D | gve_flow_rule.c | 34 memset(&fsp->h_ext, 0, sizeof(fsp->h_ext)); in gve_fill_ethtool_flow_spec()
|
/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_ethtool_fdir.c | 494 value = be64_to_cpu(*((__force __be64 *)fsp->h_ext.data)); in ice_parse_rx_flow_user_data() 1214 if (fsp->m_ext.vlan_etype && !eth_type_vlan(fsp->h_ext.vlan_etype)) in ice_fdir_vlan_valid() 1217 if (fsp->m_ext.vlan_tci && ntohs(fsp->h_ext.vlan_tci) >= VLAN_N_VID) in ice_fdir_vlan_valid() 1884 memcpy(input->ext_data.usr_def, fsp->h_ext.data, in ice_set_fdir_input_set() 1886 input->ext_data.vlan_type = fsp->h_ext.vlan_etype; in ice_set_fdir_input_set() 1887 input->ext_data.vlan_tag = fsp->h_ext.vlan_tci; in ice_set_fdir_input_set()
|
/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_ethtool.c | 867 u32 value = be32_to_cpu(fsp->h_ext.data[i]); in iavf_parse_rx_flow_user_data() 906 memcpy(fsp->h_ext.data, fltr->ext_data.usr_def, sizeof(fsp->h_ext.data)); in iavf_fill_rx_flow_ext_data() 1123 memcpy(fltr->ext_data.usr_def, fsp->h_ext.data, in iavf_add_fdir_fltr_info()
|
/linux/drivers/net/ethernet/freescale/ |
H A D | gianfar_ethtool.c | 1043 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_VID_MASK; in vlan_tci_vid() 1053 return be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_CFI_MASK; in vlan_tci_cfi() 1063 return (be16_to_cpu(rule->h_ext.vlan_tci) & VLAN_PRIO_MASK) >> in vlan_tci_prio()
|
/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_filter.c | 1509 (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/drivers/net/ethernet/intel/i40e/ |
H A D | i40e_ethtool.c | 3266 value = be64_to_cpu(*((__be64 *)fsp->h_ext.data)); in i40e_parse_rx_flow_user_data() 3308 *((__be64 *)fsp->h_ext.data) = cpu_to_be64(value); in i40e_fill_rx_flow_user_data() 3483 fsp->h_ext.vlan_etype = rule->vlan_etype; in i40e_get_ethtool_fdir_entry() 3485 fsp->h_ext.vlan_tci = rule->vlan_tag; in i40e_get_ethtool_fdir_entry() 4534 if (fsp->h_ext.vlan_etype != htons(ETH_P_8021Q) && in i40e_check_fdir_input_set() 4535 fsp->h_ext.vlan_etype != 0) in i40e_check_fdir_input_set() 4883 input->vlan_etype = fsp->h_ext.vlan_etype; in i40e_add_fdir_ethtool() 4884 if (!fsp->m_ext.vlan_etype && fsp->h_ext.vlan_tci) in i40e_add_fdir_ethtool() 4887 input->vlan_tag = fsp->h_ext.vlan_tci; in i40e_add_fdir_ethtool()
|
/linux/drivers/net/ethernet/intel/ixgbe/ |
H A D | ixgbe_ethtool.c | 2586 fsp->h_ext.vlan_tci = rule->filter.formatted.vlan_id; in ixgbe_get_ethtool_fdir_entry() 2588 fsp->h_ext.vlan_etype = rule->filter.formatted.flex_bytes; in ixgbe_get_ethtool_fdir_entry() 2590 fsp->h_ext.data[1] = htonl(rule->filter.formatted.vm_pool); in ixgbe_get_ethtool_fdir_entry() 2885 (unsigned char)ntohl(fsp->h_ext.data[1]); in ixgbe_add_ethtool_fdir_entry() 2888 input->filter.formatted.vlan_id = fsp->h_ext.vlan_tci; in ixgbe_add_ethtool_fdir_entry() 2891 fsp->h_ext.vlan_etype; in ixgbe_add_ethtool_fdir_entry()
|
/linux/net/ethtool/ |
H A D | ioctl.c | 867 .h_ext = crxnfc.fs.h_ext, in ethtool_rxnfc_copy_from_compat() 906 .h_ext = rxnfc->fs.h_ext, in ethtool_rxnfc_copy_to_compat() 3622 const struct ethtool_flow_ext *ext_h_spec = &fs->h_ext; in ethtool_rx_flow_rule_create() 3656 const struct ethtool_flow_ext *ext_h_spec = &fs->h_ext; in ethtool_rx_flow_rule_create()
|
/linux/drivers/net/ethernet/sfc/siena/ |
H A D | ethtool_common.c | 792 rule->h_ext.vlan_tci = spec.outer_vid; in efx_ethtool_get_class_rule() 1099 spec.outer_vid = rule->h_ext.vlan_tci; in efx_ethtool_set_class_rule()
|
/linux/include/linux/ |
H A D | ethtool.h | 26 struct ethtool_flow_ext h_ext; member
|
/linux/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_ethtool.c | 1101 struct ethtool_flow_ext *h_ext = &fs->h_ext; in bnxt_grxclsrule() local 1105 h_ext->vlan_tci = htons(l2_key->vlan); in bnxt_grxclsrule() 1257 struct ethtool_flow_ext *h_ext = &fs->h_ext; in bnxt_add_l2_cls_rule() local 1259 if (m_ext->vlan_tci != htons(0xfff) || !h_ext->vlan_tci) in bnxt_add_l2_cls_rule() 1261 key.vlan = ntohs(h_ext->vlan_tci); in bnxt_add_l2_cls_rule()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_ethtool.c | 1391 if (be16_to_cpu(cmd->fs.h_ext.vlan_tci) >= VLAN_N_VID) in mlx4_en_validate_flow() 1413 spec_l2->eth.vlan_id = cmd->fs.h_ext.vlan_tci; in mlx4_en_ethtool_add_mac_rule() 1433 memcpy(&mac, cmd->fs.h_ext.h_dest, ETH_ALEN); in mlx4_en_ethtool_add_mac_rule_by_ipv4()
|
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 6035 if (fs->h_ext.vlan_etype) { in hclge_fd_check_ext_tuple() 6040 if (!fs->h_ext.vlan_tci) in hclge_fd_check_ext_tuple() 6044 be16_to_cpu(fs->h_ext.vlan_tci) >= VLAN_N_VID) { in hclge_fd_check_ext_tuple() 6047 ntohs(fs->h_ext.vlan_tci), VLAN_N_VID - 1); in hclge_fd_check_ext_tuple() 6062 if (is_zero_ether_addr(fs->h_ext.h_dest)) in hclge_fd_check_ext_tuple() 6122 data = be32_to_cpu(fs->h_ext.data[1]) & HCLGE_FD_USER_DEF_DATA; in hclge_fd_parse_user_def_field() 6124 offset = be32_to_cpu(fs->h_ext.data[0]) & HCLGE_FD_USER_DEF_OFFSET; in hclge_fd_parse_user_def_field() 6408 rule->tuples.vlan_tag1 = be16_to_cpu(fs->h_ext.vlan_tci); in hclge_fd_get_tuple() 6414 ether_addr_copy(rule->tuples.dst_mac, fs->h_ext.h_dest); in hclge_fd_get_tuple() 6831 fs->h_ext.data[0] = 0; in hclge_fd_get_user_def_info() [all …]
|
/linux/include/uapi/linux/ |
H A D | ethtool.h | 1391 struct ethtool_flow_ext h_ext; member
|
/linux/drivers/net/ethernet/intel/igb/ |
H A D | igb_ethtool.c | 2456 fsp->h_ext.vlan_tci = rule->filter.vlan_tci; in igb_get_ethtool_nfc_entry() 2949 input->filter.vlan_tci = fsp->h_ext.vlan_tci; in igb_add_ethtool_nfc_entry()
|
/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_ethtool.c | 1691 fs->h_ext.vlan_tci = cpu_to_be16(dfs->val.ivlan); in cxgb4_fill_filter_rule()
|
/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | chip.c | 2379 vid = be16_to_cpu(fs->h_ext.vlan_tci) & VLAN_VID_MASK; in mv88e6xxx_policy_insert()
|