Home
last modified time | relevance | path

Searched refs:ether_spec (Results 1 – 19 of 19) sorted by relevance

/linux/drivers/net/ethernet/engleder/
H A Dtsnep_rxnfc.c115 fsp->h_u.ether_spec.h_proto = htons(rule->filter.ether_type); in tsnep_rxnfc_get_rule()
116 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in tsnep_rxnfc_get_rule()
180 rule->filter.ether_type = ntohs(fsp->h_u.ether_spec.h_proto); in tsnep_rxnfc_init_rule()
212 !is_zero_ether_addr(fsp->m_u.ether_spec.h_dest) || in tsnep_rxnfc_add_rule()
213 !is_zero_ether_addr(fsp->m_u.ether_spec.h_source) || in tsnep_rxnfc_add_rule()
214 fsp->m_u.ether_spec.h_proto != ETHER_TYPE_FULL_MASK) { in tsnep_rxnfc_add_rule()
/linux/drivers/net/ethernet/intel/igc/
H A Digc_ethtool.c981 fsp->h_u.ether_spec.h_proto = htons(rule->filter.etype); in igc_ethtool_get_nfc_rule()
982 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igc_ethtool_get_nfc_rule()
998 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igc_ethtool_get_nfc_rule()
1000 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igc_ethtool_get_nfc_rule()
1004 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igc_ethtool_get_nfc_rule()
1006 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igc_ethtool_get_nfc_rule()
1239 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igc_ethtool_init_nfc_rule()
1240 rule->filter.etype = ntohs(fsp->h_u.ether_spec.h_proto); in igc_ethtool_init_nfc_rule()
1247 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igc_ethtool_init_nfc_rule()
1250 fsp->h_u.ether_spec.h_source); in igc_ethtool_init_nfc_rule()
[all …]
/linux/drivers/net/ethernet/broadcom/asp2/
H A Dbcmasp.c425 &fs->h_u.ether_spec.h_dest, in bcmasp_netfilt_wr_to_hw()
426 &fs->m_u.ether_spec.h_dest, in bcmasp_netfilt_wr_to_hw()
427 sizeof(fs->h_u.ether_spec.h_dest)); in bcmasp_netfilt_wr_to_hw()
429 &fs->h_u.ether_spec.h_source, in bcmasp_netfilt_wr_to_hw()
430 &fs->m_u.ether_spec.h_source, in bcmasp_netfilt_wr_to_hw()
431 sizeof(fs->h_u.ether_spec.h_source)); in bcmasp_netfilt_wr_to_hw()
433 &fs->h_u.ether_spec.h_proto, in bcmasp_netfilt_wr_to_hw()
434 &fs->m_u.ether_spec.h_proto, in bcmasp_netfilt_wr_to_hw()
435 sizeof(fs->h_u.ether_spec.h_proto)); in bcmasp_netfilt_wr_to_hw()
/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_flows.c824 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_prepare_flow_request()
825 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_prepare_flow_request()
951 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_is_flow_rule_dmacfilter()
952 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_is_flow_rule_dmacfilter()
1078 eth_hdr = &pf_mac->flow_spec.h_u.ether_spec; in otx2_add_flow_with_pfmac()
1148 eth_hdr = &flow->flow_spec.h_u.ether_spec; in otx2_add_flow()
1244 eth_hdr = &iter->flow_spec.h_u.ether_spec; in otx2_update_rem_pfmac()
1281 struct ethhdr *eth_hdr = &flow->flow_spec.h_u.ether_spec; in otx2_remove_flow()
1516 eth_hdr = &iter->flow_spec.h_u.ether_spec; in otx2_dmacflt_reinstall_flows()
/linux/drivers/net/ethernet/netronome/nfp/
H A Dnfp_net_ethtool.c1382 fs->h_u.ether_spec.h_proto = entry->key.l3_proto; in nfp_net_fs_to_ethtool()
1383 fs->m_u.ether_spec.h_proto = entry->msk.l3_proto; in nfp_net_fs_to_ethtool()
1569 entry->msk.l3_proto = fs->m_u.ether_spec.h_proto; in nfp_net_fs_from_ethtool()
1570 entry->key.l3_proto = fs->h_u.ether_spec.h_proto & entry->msk.l3_proto; in nfp_net_fs_from_ethtool()
1662 if (fs->h_u.ether_spec.h_proto == htons(ETH_P_IP) || in nfp_net_fs_add()
1663 fs->h_u.ether_spec.h_proto == htons(ETH_P_IPV6)) { in nfp_net_fs_add()
1668 unsupp_mask = !is_zero_ether_addr(fs->m_u.ether_spec.h_dest) || in nfp_net_fs_add()
1669 !is_zero_ether_addr(fs->m_u.ether_spec.h_source) || in nfp_net_fs_add()
1670 (fs->m_u.ether_spec.h_proto != htons(0xffff)); in nfp_net_fs_add()
/linux/drivers/net/ethernet/intel/igb/
H A Digb_ethtool.c2448 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry()
2449 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry()
2457 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igb_get_ethtool_nfc_entry()
2462 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igb_get_ethtool_nfc_entry()
2465 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igb_get_ethtool_nfc_entry()
2470 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igb_get_ethtool_nfc_entry()
2926 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igb_add_ethtool_nfc_entry()
2927 input->filter.etype = fsp->h_u.ether_spec.h_proto; in igb_add_ethtool_nfc_entry()
2932 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_source)) { in igb_add_ethtool_nfc_entry()
2935 fsp->h_u.ether_spec.h_source); in igb_add_ethtool_nfc_entry()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Dethtool_common.c650 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule()
651 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule()
917 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule()
918 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c797 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_get_class_rule()
798 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_get_class_rule()
1044 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_set_class_rule()
1045 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_set_class_rule()
/linux/drivers/net/ethernet/sfc/
H A Dethtool_common.c649 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule()
650 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule()
926 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule()
927 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_fs_ethtool.c317 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in parse_ether()
318 struct ethhdr *eth_val = &fs->h_u.ether_spec; in parse_ether()
560 struct ethhdr *eth_mask = &fs->m_u.ether_spec; in validate_ethter()
/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c634 &fs->h_u.ether_spec.h_dest, in bcmgenet_hfb_create_rxnfc_filter()
635 &fs->m_u.ether_spec.h_dest, in bcmgenet_hfb_create_rxnfc_filter()
636 sizeof(fs->h_u.ether_spec.h_dest)); in bcmgenet_hfb_create_rxnfc_filter()
638 &fs->h_u.ether_spec.h_source, in bcmgenet_hfb_create_rxnfc_filter()
639 &fs->m_u.ether_spec.h_source, in bcmgenet_hfb_create_rxnfc_filter()
640 sizeof(fs->h_u.ether_spec.h_source)); in bcmgenet_hfb_create_rxnfc_filter()
642 &fs->h_u.ether_spec.h_proto, in bcmgenet_hfb_create_rxnfc_filter()
643 &fs->m_u.ether_spec.h_proto, in bcmgenet_hfb_create_rxnfc_filter()
644 sizeof(fs->h_u.ether_spec.h_proto)); in bcmgenet_hfb_create_rxnfc_filter()
1452 eth_mask = &cmd->fs.m_u.ether_spec; in bcmgenet_validate_flow()
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_ethtool.c669 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in fbnic_get_cls_rule()
671 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in fbnic_get_cls_rule()
1112 if (!is_zero_ether_addr(fsp->m_u.ether_spec.h_dest)) { in fbnic_set_cls_rule_ins()
1113 u8 *addr = fsp->h_u.ether_spec.h_dest; in fbnic_set_cls_rule_ins()
1114 u8 *mask = fsp->m_u.ether_spec.h_dest; in fbnic_set_cls_rule_ins()
/linux/drivers/net/ethernet/intel/iavf/
H A Diavf_ethtool.c1030 fsp->h_u.ether_spec.h_proto = rule->eth_data.etype; in iavf_get_ethtool_fdir_entry()
1031 fsp->m_u.ether_spec.h_proto = rule->eth_mask.etype; in iavf_get_ethtool_fdir_entry()
1225 fltr->eth_data.etype = fsp->h_u.ether_spec.h_proto; in iavf_add_fdir_fltr_info()
1226 fltr->eth_mask.etype = fsp->m_u.ether_spec.h_proto; in iavf_add_fdir_fltr_info()
/linux/drivers/net/ethernet/aquantia/atlantic/
H A Daq_filters.c142 fsp->m_u.ether_spec.h_proto == 0U) { in aq_check_approve_fl2()
323 data->ethertype = be16_to_cpu(fsp->h_u.ether_spec.h_proto); in aq_set_data_fl2()
/linux/net/ethtool/
H A Dioctl.c3649 const struct ethhdr *ether_spec, *ether_m_spec; in ethtool_rx_flow_rule_create() local
3651 ether_spec = &fs->h_u.ether_spec; in ethtool_rx_flow_rule_create()
3652 ether_m_spec = &fs->m_u.ether_spec; in ethtool_rx_flow_rule_create()
3656 ether_spec->h_source); in ethtool_rx_flow_rule_create()
3662 ether_spec->h_dest); in ethtool_rx_flow_rule_create()
3667 match->key.basic.n_proto = ether_spec->h_proto; in ethtool_rx_flow_rule_create()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Den_ethtool.c1366 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow()
1571 eth_spec = &cmd->fs.h_u.ether_spec; in mlx4_en_ethtool_to_net_trans_rule()
/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/
H A Dhclge_main.c6240 ret = hclge_fd_check_ether_tuple(&fs->h_u.ether_spec, in hclge_fd_check_spec()
6367 ether_addr_copy(rule->tuples.src_mac, fs->h_u.ether_spec.h_source); in hclge_fd_get_ether_tuple()
6368 ether_addr_copy(rule->tuples_mask.src_mac, fs->m_u.ether_spec.h_source); in hclge_fd_get_ether_tuple()
6370 ether_addr_copy(rule->tuples.dst_mac, fs->h_u.ether_spec.h_dest); in hclge_fd_get_ether_tuple()
6371 ether_addr_copy(rule->tuples_mask.dst_mac, fs->m_u.ether_spec.h_dest); in hclge_fd_get_ether_tuple()
6373 rule->tuples.ether_proto = be16_to_cpu(fs->h_u.ether_spec.h_proto); in hclge_fd_get_ether_tuple()
6374 rule->tuples_mask.ether_proto = be16_to_cpu(fs->m_u.ether_spec.h_proto); in hclge_fd_get_ether_tuple()
6890 eth_zero_addr(fs->m_u.ether_spec.h_dest); in hclge_fd_get_ext_info()
6892 ether_addr_copy(fs->m_u.ether_spec.h_dest, in hclge_fd_get_ext_info()
6976 hclge_fd_get_ether_info(rule, &fs->h_u.ether_spec, in hclge_get_fd_rule_info()
[all …]
/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c1117 struct ethhdr *h_ether = &fs->h_u.ether_spec; in bnxt_grxclsrule()
1118 struct ethhdr *m_ether = &fs->m_u.ether_spec; in bnxt_grxclsrule()
1268 struct ethhdr *h_ether = &fs->h_u.ether_spec; in bnxt_add_l2_cls_rule()
1269 struct ethhdr *m_ether = &fs->m_u.ether_spec; in bnxt_add_l2_cls_rule()
/linux/drivers/net/dsa/mv88e6xxx/
H A Dchip.c2357 struct ethhdr *mac_entry = &fs->h_u.ether_spec; in mv88e6xxx_policy_insert()
2358 struct ethhdr *mac_mask = &fs->m_u.ether_spec; in mv88e6xxx_policy_insert()