Home
last modified time | relevance | path

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

12345

/drivers/infiniband/ulp/opa_vnic/
Dopa_vnic_encap.c311 key = mac_hdr->h_dest[OPA_VNIC_MAC_HASH_IDX]; in opa_vnic_chk_mac_tbl()
319 if (!memcmp(node->entry.mac_addr, mac_hdr->h_dest, in opa_vnic_chk_mac_tbl()
344 if (is_multicast_ether_addr(mac_hdr->h_dest)) { in opa_vnic_get_dlid()
347 if (is_local_ether_addr(mac_hdr->h_dest)) { in opa_vnic_get_dlid()
348 dlid = ((uint32_t)mac_hdr->h_dest[5] << 16) | in opa_vnic_get_dlid()
349 ((uint32_t)mac_hdr->h_dest[4] << 8) | in opa_vnic_get_dlid()
350 mac_hdr->h_dest[3]; in opa_vnic_get_dlid()
373 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_sc()
378 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_sc()
396 if (is_multicast_ether_addr(mac_hdr->h_dest)) in opa_vnic_get_vl()
[all …]
/drivers/net/wireless/marvell/mwifiex/
Dsta_rx.c119 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_process_rx_packet()
125 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_process_rx_packet()
126 sizeof(eth->h_dest)); in mwifiex_process_rx_packet()
155 if (likely(!is_multicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest))) { in mwifiex_process_rx_packet()
233 !ether_addr_equal_unaligned(priv->curr_addr, rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_process_sta_rx_packet()
Duap_txrx.c136 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_uap_queue_bridged_pkt()
141 memcpy(p_ethhdr->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_uap_queue_bridged_pkt()
142 sizeof(p_ethhdr->h_dest)); in mwifiex_uap_queue_bridged_pkt()
195 if (is_unicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_uap_queue_bridged_pkt()
252 memcpy(ra, rx_pkt_hdr->eth803_hdr.h_dest, ETH_ALEN); in mwifiex_handle_uap_rx_forward()
297 if (is_multicast_ether_addr(p_ethhdr->h_dest) || in mwifiex_uap_recv_packet()
298 mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) { in mwifiex_uap_recv_packet()
328 if (mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) in mwifiex_uap_recv_packet()
/drivers/scsi/qedf/
Dqedf_fip.c37 ether_addr_copy(vlan->eth.h_dest, my_fcoe_all_fcfs); in qedf_fcoe_send_vlan_req()
151 "dest=%pM op=%x sub=%x vlan=%04x.", eth_hdr->h_dest, op, sub, in qedf_fip_send()
193 skb, fiph, eth_hdr->h_source, eth_hdr->h_dest, op, in qedf_fip_recv()
199 if (!ether_addr_equal(eth_hdr->h_dest, qedf->mac) && in qedf_fip_recv()
200 !ether_addr_equal(eth_hdr->h_dest, fcoe_all_enode) && in qedf_fip_recv()
201 !ether_addr_equal(eth_hdr->h_dest, qedf->data_src_addr)) { in qedf_fip_recv()
204 op, eth_hdr->h_dest, qedf->mac, in qedf_fip_recv()
/drivers/net/wireless/intel/iwlwifi/mei/
Dnet.c41 if (!is_multicast_ether_addr(ethhdr->h_dest) || in iwl_mei_rx_filter_eth()
42 is_broadcast_ether_addr(ethhdr->h_dest)) in iwl_mei_rx_filter_eth()
52 if (compare_ether_header(filt->mac_address, ethhdr->h_dest)) in iwl_mei_rx_filter_eth()
397 memcpy(ethhdr.h_dest, ieee80211_get_DA(hdr), ETH_ALEN); in iwl_mei_tx_copy_to_csme()
405 eth = skb_push(skb, sizeof(ethhdr.h_dest) + sizeof(ethhdr.h_source)); in iwl_mei_tx_copy_to_csme()
406 memcpy(eth, &ethhdr, sizeof(ethhdr.h_dest) + sizeof(ethhdr.h_source)); in iwl_mei_tx_copy_to_csme()
/drivers/net/ethernet/mediatek/
Dmtk_ppe_debugfs.c86 unsigned char h_dest[ETH_ALEN]; in mtk_ppe_debugfs_foe_show() local
152 *((__be32 *)h_dest) = htonl(l2->dest_mac_hi); in mtk_ppe_debugfs_foe_show()
153 *((__be16 *)&h_dest[4]) = htons(l2->dest_mac_lo); in mtk_ppe_debugfs_foe_show()
157 h_source, h_dest, ntohs(l2->etype), in mtk_ppe_debugfs_foe_show()
Dmtk_ppe_offload.c283 memcpy(data.eth.h_dest, match.key->dst, ETH_ALEN); in mtk_flow_offload_replace()
347 !is_valid_ether_addr(data.eth.h_dest)) in mtk_flow_offload_replace()
351 data.eth.h_source, data.eth.h_dest); in mtk_flow_offload_replace()
434 err = mtk_flow_set_output_device(eth, &foe, odev, data.eth.h_dest, in mtk_flow_offload_replace()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c827 if (!is_zero_ether_addr(eth_mask->h_dest)) { in otx2_prepare_flow_request()
828 ether_addr_copy(pkt->dmac, eth_hdr->h_dest); in otx2_prepare_flow_request()
829 ether_addr_copy(pmask->dmac, eth_mask->h_dest); in otx2_prepare_flow_request()
911 !is_zero_ether_addr(fsp->m_ext.h_dest)) { in otx2_prepare_flow_request()
912 ether_addr_copy(pkt->dmac, fsp->h_ext.h_dest); in otx2_prepare_flow_request()
913 ether_addr_copy(pmask->dmac, fsp->m_ext.h_dest); in otx2_prepare_flow_request()
941 if (is_zero_ether_addr(eth_mask->h_dest) && in otx2_is_flow_rule_dmacfilter()
942 is_valid_ether_addr(eth_hdr->h_dest)) in otx2_is_flow_rule_dmacfilter()
1054 ether_addr_copy(eth_hdr->h_dest, pfvf->netdev->dev_addr); in otx2_add_flow_with_pfmac()
1057 otx2_dmacflt_add(pfvf, eth_hdr->h_dest, 0); in otx2_add_flow_with_pfmac()
[all …]
/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c1001 if (!is_broadcast_ether_addr(mask->h_dest)) { in gfar_set_ether()
1003 if ((is_broadcast_ether_addr(value->h_dest) && in gfar_set_ether()
1004 is_zero_ether_addr(mask->h_dest))) { in gfar_set_ether()
1007 if (is_zero_ether_addr(mask->h_dest)) { in gfar_set_ether()
1011 upper_temp_mask = mask->h_dest[0] << 16 | in gfar_set_ether()
1012 mask->h_dest[1] << 8 | in gfar_set_ether()
1013 mask->h_dest[2]; in gfar_set_ether()
1014 lower_temp_mask = mask->h_dest[3] << 16 | in gfar_set_ether()
1015 mask->h_dest[4] << 8 | in gfar_set_ether()
1016 mask->h_dest[5]; in gfar_set_ether()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c327 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, dmac_47_16), eth_mask->h_dest); in parse_ether()
328 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_v, dmac_47_16), eth_val->h_dest); in parse_ether()
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()
393 fs->h_ext.h_dest); in set_flow_attrs()
567 if (!is_zero_ether_addr(eth_mask->h_dest)) in validate_ethter()
721 !is_zero_ether_addr(fs->m_ext.h_dest)) in validate_flow()
/drivers/net/ipvlan/
Dipvlan_core.c250 mac_hash = ipvlan_mac_hash(ethh->h_dest); in ipvlan_process_multicast()
252 if (ether_addr_equal(ethh->h_dest, port->dev->broadcast)) in ipvlan_process_multicast()
524 if (is_multicast_ether_addr(ethh->h_dest)) { in ipvlan_process_outbound()
615 ether_addr_equal(eth->h_dest, eth->h_source)) { in ipvlan_xmit_mode_l2()
640 } else if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_xmit_mode_l2()
727 if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_handle_mode_l2()
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c339 if (!is_zero_ether_addr(eth_mask->h_dest)) { in dpaa2_eth_prep_eth_rule()
341 ether_addr_copy(key + off, eth_value->h_dest); in dpaa2_eth_prep_eth_rule()
342 ether_addr_copy(mask + off, eth_mask->h_dest); in dpaa2_eth_prep_eth_rule()
480 if (!is_zero_ether_addr(ext_mask->h_dest)) { in dpaa2_eth_prep_mac_ext_rule()
482 ether_addr_copy(key + off, ext_value->h_dest); in dpaa2_eth_prep_mac_ext_rule()
483 ether_addr_copy(mask + off, ext_mask->h_dest); in dpaa2_eth_prep_mac_ext_rule()
/drivers/net/fjes/
Dfjes_main.c622 if (is_multicast_ether_addr(eth->h_dest)) { in fjes_xmit_frame()
626 } else if (is_local_ether_addr(eth->h_dest)) { in fjes_xmit_frame()
627 dest_epid = eth->h_dest[ETH_ALEN - 1]; in fjes_xmit_frame()
630 if ((eth->h_dest[0] == 0x02) && in fjes_xmit_frame()
631 (0x00 == (eth->h_dest[1] | eth->h_dest[2] | in fjes_xmit_frame()
632 eth->h_dest[3] | eth->h_dest[4])) && in fjes_xmit_frame()
1012 ((struct ethhdr *)frame)->h_dest)) { in fjes_poll()
/drivers/net/wireless/marvell/libertas/
Drx.c122 memcpy(p_ethhdr->h_dest, p_rx_pkt->eth803_hdr.dest_addr, in lbs_process_rxed_packet()
123 sizeof(p_ethhdr->h_dest)); in lbs_process_rxed_packet()
/drivers/net/wireless/ath/ath6kl/
Dtxrx.c54 if (is_multicast_ether_addr(eth_hdr->h_dest)) in ath6kl_ibss_map_epid()
58 if (memcmp(eth_hdr->h_dest, ar->node_map[i].mac_addr, in ath6kl_ibss_map_epid()
76 memcpy(ar->node_map[ep_map].mac_addr, eth_hdr->h_dest, ETH_ALEN); in ath6kl_ibss_map_epid()
217 if (is_multicast_ether_addr(datap->h_dest)) { in ath6kl_powersave_ap()
265 conn = ath6kl_find_sta(vif, datap->h_dest); in ath6kl_powersave_ap()
1567 if (is_multicast_ether_addr(datap->h_dest)) in ath6kl_rx()
1580 conn = ath6kl_find_sta(vif, datap->h_dest); in ath6kl_rx()
1601 if (is_unicast_ether_addr(datap->h_dest)) { in ath6kl_rx()
1616 } else if (!is_broadcast_ether_addr(datap->h_dest)) { in ath6kl_rx()
/drivers/firewire/
Dnet.c218 memset(h->h_dest, 0, net->addr_len); in fwnet_header_create()
224 memcpy(h->h_dest, daddr, net->addr_len); in fwnet_header_create()
243 memcpy(h->h_dest, neigh->ha, net->addr_len); in fwnet_header_cache()
513 if (fwnet_hwaddr_is_multicast(eth->h_dest)) { in fwnet_finish_incoming_packet()
514 if (memcmp(eth->h_dest, net->broadcast, in fwnet_finish_incoming_packet()
522 if (memcmp(eth->h_dest, net->dev_addr, net->addr_len)) in fwnet_finish_incoming_packet()
1280 if (fwnet_hwaddr_is_multicast(hdr_buf.h_dest)) { in fwnet_tx()
1289 union fwnet_hwaddr *ha = (union fwnet_hwaddr *)hdr_buf.h_dest; in fwnet_tx()
/drivers/staging/ks7010/
Deap_packet.h10 unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ member
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c206 ether_addr_copy(eth->h_dest, e->h_dest); in gen_eth_tnl_hdr()
282 ether_addr_copy(e->h_dest, attr.n->ha); in mlx5e_tc_tun_create_header_ipv4()
385 ether_addr_copy(e->h_dest, attr.n->ha); in mlx5e_tc_tun_update_header_ipv4()
551 ether_addr_copy(e->h_dest, attr.n->ha); in mlx5e_tc_tun_create_header_ipv6()
653 ether_addr_copy(e->h_dest, attr.n->ha); in mlx5e_tc_tun_update_header_ipv6()
/drivers/net/ethernet/sfc/siena/
Dethtool_common.c734 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in efx_ethtool_get_class_rule()
736 eth_broadcast_addr(mac_mask->h_dest); in efx_ethtool_get_class_rule()
738 ether_addr_copy(mac_mask->h_dest, in efx_ethtool_get_class_rule()
1086 if (!is_zero_ether_addr(mac_mask->h_dest)) { in efx_ethtool_set_class_rule()
1087 if (ether_addr_equal(mac_mask->h_dest, in efx_ethtool_set_class_rule()
1090 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in efx_ethtool_set_class_rule()
1094 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in efx_ethtool_set_class_rule()
/drivers/net/ethernet/sfc/
Dethtool_common.c771 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in efx_ethtool_get_class_rule()
773 eth_broadcast_addr(mac_mask->h_dest); in efx_ethtool_get_class_rule()
775 ether_addr_copy(mac_mask->h_dest, in efx_ethtool_get_class_rule()
1122 if (!is_zero_ether_addr(mac_mask->h_dest)) { in efx_ethtool_set_class_rule()
1123 if (ether_addr_equal(mac_mask->h_dest, in efx_ethtool_set_class_rule()
1126 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in efx_ethtool_set_class_rule()
1130 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in efx_ethtool_set_class_rule()
/drivers/net/ethernet/sfc/falcon/
Dethtool.c881 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in ef4_ethtool_get_class_rule()
883 eth_broadcast_addr(mac_mask->h_dest); in ef4_ethtool_get_class_rule()
885 ether_addr_copy(mac_mask->h_dest, in ef4_ethtool_get_class_rule()
1187 if (!is_zero_ether_addr(mac_mask->h_dest)) { in ef4_ethtool_set_class_rule()
1188 if (ether_addr_equal(mac_mask->h_dest, in ef4_ethtool_set_class_rule()
1191 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in ef4_ethtool_set_class_rule()
1195 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in ef4_ethtool_set_class_rule()
/drivers/net/usb/
Dlg-vl600.c182 memcpy(ethhdr->h_dest, in vl600_rx_fixup()
187 memcpy(ethhdr->h_dest, dev->net->dev_addr, ETH_ALEN); in vl600_rx_fixup()
/drivers/net/
Dmacvlan.c237 if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) in macvlan_broadcast_one()
279 hash = mc_hash(vlan, eth->h_dest); in macvlan_broadcast()
410 if (ether_addr_equal_64bits(eth_hdr(skb)->h_dest, dev->dev_addr)) in macvlan_forward_source_one()
455 if (is_multicast_ether_addr(eth->h_dest)) { in macvlan_handle_frame()
478 hash = mc_hash(NULL, eth->h_dest); in macvlan_handle_frame()
493 vlan = macvlan_hash_lookup(port, eth->h_dest); in macvlan_handle_frame()
531 if (is_multicast_ether_addr(eth->h_dest)) { in macvlan_queue_xmit()
537 dest = macvlan_hash_lookup(port, eth->h_dest); in macvlan_queue_xmit()
Drionet.c181 if (is_multicast_ether_addr(eth->h_dest)) in rionet_start_xmit()
192 if (is_multicast_ether_addr(eth->h_dest)) { in rionet_start_xmit()
204 } else if (RIONET_MAC_MATCH(eth->h_dest)) { in rionet_start_xmit()
205 destid = RIONET_GET_DESTID(eth->h_dest); in rionet_start_xmit()
/drivers/net/wireless/ath/ath9k/
Ddynack.h42 u8 h_dest[ETH_ALEN]; member

12345