/openbmc/linux/drivers/net/ethernet/engleder/ |
H A D | tsnep_rxnfc.c | 115 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()
|
/openbmc/linux/drivers/net/ethernet/broadcom/asp2/ |
H A D | bcmasp.c | 408 &fs->h_u.ether_spec.h_dest, in bcmasp_netfilt_wr_to_hw() 409 &fs->m_u.ether_spec.h_dest, in bcmasp_netfilt_wr_to_hw() 410 sizeof(fs->h_u.ether_spec.h_dest)); in bcmasp_netfilt_wr_to_hw() 412 &fs->h_u.ether_spec.h_source, in bcmasp_netfilt_wr_to_hw() 413 &fs->m_u.ether_spec.h_source, in bcmasp_netfilt_wr_to_hw() 414 sizeof(fs->h_u.ether_spec.h_source)); in bcmasp_netfilt_wr_to_hw() 416 &fs->h_u.ether_spec.h_proto, in bcmasp_netfilt_wr_to_hw() 417 &fs->m_u.ether_spec.h_proto, in bcmasp_netfilt_wr_to_hw() 418 sizeof(fs->h_u.ether_spec.h_proto)); in bcmasp_netfilt_wr_to_hw()
|
/openbmc/linux/drivers/net/ethernet/intel/igc/ |
H A D | igc_ethtool.c | 979 fsp->h_u.ether_spec.h_proto = htons(rule->filter.etype); in igc_ethtool_get_nfc_rule() 980 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igc_ethtool_get_nfc_rule() 996 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igc_ethtool_get_nfc_rule() 998 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igc_ethtool_get_nfc_rule() 1002 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igc_ethtool_get_nfc_rule() 1004 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igc_ethtool_get_nfc_rule() 1231 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igc_ethtool_init_nfc_rule() 1232 rule->filter.etype = ntohs(fsp->h_u.ether_spec.h_proto); in igc_ethtool_init_nfc_rule() 1242 fsp->h_u.ether_spec.h_source); in igc_ethtool_init_nfc_rule() 1245 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igc_ethtool_init_nfc_rule() [all …]
|
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_flows.c | 816 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_prepare_flow_request() 817 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_prepare_flow_request() 943 struct ethhdr *eth_mask = &fsp->m_u.ether_spec; in otx2_is_flow_rule_dmacfilter() 944 struct ethhdr *eth_hdr = &fsp->h_u.ether_spec; in otx2_is_flow_rule_dmacfilter() 1070 eth_hdr = &pf_mac->flow_spec.h_u.ether_spec; in otx2_add_flow_with_pfmac() 1140 eth_hdr = &flow->flow_spec.h_u.ether_spec; in otx2_add_flow() 1236 eth_hdr = &iter->flow_spec.h_u.ether_spec; in otx2_update_rem_pfmac() 1273 struct ethhdr *eth_hdr = &flow->flow_spec.h_u.ether_spec; in otx2_remove_flow() 1507 eth_hdr = &iter->flow_spec.h_u.ether_spec; in otx2_dmacflt_reinstall_flows()
|
/openbmc/linux/drivers/net/ethernet/intel/igb/ |
H A D | igb_ethtool.c | 2459 fsp->h_u.ether_spec.h_proto = rule->filter.etype; in igb_get_ethtool_nfc_entry() 2460 fsp->m_u.ether_spec.h_proto = ETHER_TYPE_FULL_MASK; in igb_get_ethtool_nfc_entry() 2468 ether_addr_copy(fsp->h_u.ether_spec.h_dest, in igb_get_ethtool_nfc_entry() 2473 eth_broadcast_addr(fsp->m_u.ether_spec.h_dest); in igb_get_ethtool_nfc_entry() 2476 ether_addr_copy(fsp->h_u.ether_spec.h_source, in igb_get_ethtool_nfc_entry() 2481 eth_broadcast_addr(fsp->m_u.ether_spec.h_source); in igb_get_ethtool_nfc_entry() 2934 if (fsp->m_u.ether_spec.h_proto == ETHER_TYPE_FULL_MASK) { in igb_add_ethtool_nfc_entry() 2935 input->filter.etype = fsp->h_u.ether_spec.h_proto; in igb_add_ethtool_nfc_entry() 2943 fsp->h_u.ether_spec.h_source); in igb_add_ethtool_nfc_entry() 2947 if (is_broadcast_ether_addr(fsp->m_u.ether_spec.h_dest)) { in igb_add_ethtool_nfc_entry() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs_ethtool.c | 317 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()
|
/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | ethtool_common.c | 656 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule() 657 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule() 929 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule() 930 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | ethtool.c | 803 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_get_class_rule() 804 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_get_class_rule() 1039 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in ef4_ethtool_set_class_rule() 1040 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in ef4_ethtool_set_class_rule()
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | ethtool_common.c | 656 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_get_class_rule() 657 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_get_class_rule() 930 struct ethhdr *mac_entry = &rule->h_u.ether_spec; in efx_ethtool_set_class_rule() 931 struct ethhdr *mac_mask = &rule->m_u.ether_spec; in efx_ethtool_set_class_rule()
|
/openbmc/linux/drivers/net/ethernet/broadcom/genet/ |
H A D | bcmgenet.c | 615 &fs->h_u.ether_spec.h_dest, in bcmgenet_hfb_create_rxnfc_filter() 616 &fs->m_u.ether_spec.h_dest, in bcmgenet_hfb_create_rxnfc_filter() 617 sizeof(fs->h_u.ether_spec.h_dest)); in bcmgenet_hfb_create_rxnfc_filter() 619 &fs->h_u.ether_spec.h_source, in bcmgenet_hfb_create_rxnfc_filter() 620 &fs->m_u.ether_spec.h_source, in bcmgenet_hfb_create_rxnfc_filter() 621 sizeof(fs->h_u.ether_spec.h_source)); in bcmgenet_hfb_create_rxnfc_filter() 623 &fs->h_u.ether_spec.h_proto, in bcmgenet_hfb_create_rxnfc_filter() 624 &fs->m_u.ether_spec.h_proto, in bcmgenet_hfb_create_rxnfc_filter() 625 sizeof(fs->h_u.ether_spec.h_proto)); in bcmgenet_hfb_create_rxnfc_filter() 1391 eth_mask = &cmd->fs.m_u.ether_spec; in bcmgenet_validate_flow()
|
/openbmc/linux/include/uapi/linux/ |
H A D | ethtool.h | 1083 struct ethhdr ether_spec; member 1320 struct ethhdr ether_spec; member
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | ethtool.h | 1138 struct eth_header ether_spec; member 1378 struct eth_header ether_spec; member
|
/openbmc/linux/drivers/net/ethernet/aquantia/atlantic/ |
H A D | aq_filters.c | 142 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()
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_ethtool.c | 1173 fsp->h_u.ether_spec.h_proto = rule->eth_data.etype; in iavf_get_ethtool_fdir_entry() 1174 fsp->m_u.ether_spec.h_proto = rule->eth_mask.etype; in iavf_get_ethtool_fdir_entry() 1365 fltr->eth_data.etype = fsp->h_u.ether_spec.h_proto; in iavf_add_fdir_fltr_info() 1366 fltr->eth_mask.etype = fsp->m_u.ether_spec.h_proto; in iavf_add_fdir_fltr_info()
|
/openbmc/linux/net/ethtool/ |
H A D | ioctl.c | 3171 const struct ethhdr *ether_spec, *ether_m_spec; in ethtool_rx_flow_rule_create() local 3173 ether_spec = &fs->h_u.ether_spec; in ethtool_rx_flow_rule_create() 3174 ether_m_spec = &fs->m_u.ether_spec; in ethtool_rx_flow_rule_create() 3178 ether_spec->h_source); in ethtool_rx_flow_rule_create() 3184 ether_spec->h_dest); in ethtool_rx_flow_rule_create() 3189 match->key.basic.n_proto = ether_spec->h_proto; in ethtool_rx_flow_rule_create()
|
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-ethtool.c | 529 err = dpaa2_eth_prep_eth_rule(&fs->h_u.ether_spec, &fs->m_u.ether_spec, in dpaa2_eth_prep_cls_rule()
|
/openbmc/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc_ethtool.c | 567 eth_h = &fs->h_u.ether_spec; in enetc_set_cls_entry() 568 eth_m = &fs->m_u.ether_spec; in enetc_set_cls_entry()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | en_ethtool.c | 1385 eth_mask = &cmd->fs.m_u.ether_spec; in mlx4_en_validate_flow() 1590 eth_spec = &cmd->fs.h_u.ether_spec; in mlx4_en_ethtool_to_net_trans_rule()
|
/openbmc/linux/drivers/net/ethernet/hisilicon/hns3/hns3pf/ |
H A D | hclge_main.c | 6162 ret = hclge_fd_check_ether_tuple(&fs->h_u.ether_spec, in hclge_fd_check_spec() 6289 ether_addr_copy(rule->tuples.src_mac, fs->h_u.ether_spec.h_source); in hclge_fd_get_ether_tuple() 6290 ether_addr_copy(rule->tuples_mask.src_mac, fs->m_u.ether_spec.h_source); in hclge_fd_get_ether_tuple() 6292 ether_addr_copy(rule->tuples.dst_mac, fs->h_u.ether_spec.h_dest); in hclge_fd_get_ether_tuple() 6293 ether_addr_copy(rule->tuples_mask.dst_mac, fs->m_u.ether_spec.h_dest); in hclge_fd_get_ether_tuple() 6295 rule->tuples.ether_proto = be16_to_cpu(fs->h_u.ether_spec.h_proto); in hclge_fd_get_ether_tuple() 6296 rule->tuples_mask.ether_proto = be16_to_cpu(fs->m_u.ether_spec.h_proto); in hclge_fd_get_ether_tuple() 6814 eth_zero_addr(fs->m_u.ether_spec.h_dest); in hclge_fd_get_ext_info() 6816 ether_addr_copy(fs->m_u.ether_spec.h_dest, in hclge_fd_get_ext_info() 6900 hclge_fd_get_ether_info(rule, &fs->h_u.ether_spec, in hclge_get_fd_rule_info() [all …]
|
/openbmc/linux/drivers/net/dsa/mv88e6xxx/ |
H A D | chip.c | 2240 struct ethhdr *mac_entry = &fs->h_u.ether_spec; in mv88e6xxx_policy_insert() 2241 struct ethhdr *mac_mask = &fs->m_u.ether_spec; in mv88e6xxx_policy_insert()
|