Home
last modified time | relevance | path

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

1234

/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.c131 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_process_rx_packet()
137 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_process_rx_packet()
138 sizeof(eth->h_dest)); in mwifiex_process_rx_packet()
167 if (likely(!is_multicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest))) { in mwifiex_process_rx_packet()
245 !ether_addr_equal_unaligned(priv->curr_addr, rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_process_sta_rx_packet()
Duap_txrx.c148 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_uap_queue_bridged_pkt()
153 memcpy(p_ethhdr->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_uap_queue_bridged_pkt()
154 sizeof(p_ethhdr->h_dest)); in mwifiex_uap_queue_bridged_pkt()
207 if (is_unicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_uap_queue_bridged_pkt()
264 memcpy(ra, rx_pkt_hdr->eth803_hdr.h_dest, ETH_ALEN); in mwifiex_handle_uap_rx_forward()
309 if (is_multicast_ether_addr(p_ethhdr->h_dest) || in mwifiex_uap_recv_packet()
310 mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) { in mwifiex_uap_recv_packet()
340 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/ethernet/freescale/
Dgianfar_ethtool.c993 if (!is_broadcast_ether_addr(mask->h_dest)) { in gfar_set_ether()
995 if ((is_broadcast_ether_addr(value->h_dest) && in gfar_set_ether()
996 is_zero_ether_addr(mask->h_dest))) { in gfar_set_ether()
999 if (is_zero_ether_addr(mask->h_dest)) { in gfar_set_ether()
1003 upper_temp_mask = mask->h_dest[0] << 16 | in gfar_set_ether()
1004 mask->h_dest[1] << 8 | in gfar_set_ether()
1005 mask->h_dest[2]; in gfar_set_ether()
1006 lower_temp_mask = mask->h_dest[3] << 16 | in gfar_set_ether()
1007 mask->h_dest[4] << 8 | in gfar_set_ether()
1008 mask->h_dest[5]; in gfar_set_ether()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c302 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, dmac_47_16), eth_mask->h_dest); in parse_ether()
303 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_v, dmac_47_16), eth_val->h_dest); in parse_ether()
365 !is_zero_ether_addr(fs->m_ext.h_dest)) { in set_flow_attrs()
366 mask_spec(fs->m_ext.h_dest, fs->h_ext.h_dest, ETH_ALEN); in set_flow_attrs()
367 set_dmac(outer_headers_c, outer_headers_v, fs->m_ext.h_dest, in set_flow_attrs()
368 fs->h_ext.h_dest); in set_flow_attrs()
507 if (!is_zero_ether_addr(eth_mask->h_dest)) in validate_ethter()
662 !is_zero_ether_addr(fs->m_ext.h_dest)) in validate_flow()
Den_selftest.c131 ether_addr_copy(ethh->h_dest, priv->netdev->dev_addr); in mlx5e_test_get_udp_skb()
196 if (!ether_addr_equal(ethh->h_dest, orig_ndev->dev_addr)) in mlx5e_test_loopback_validate()
/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()
525 if (is_multicast_ether_addr(ethh->h_dest)) { in ipvlan_process_outbound()
616 ether_addr_equal(eth->h_dest, eth->h_source)) { in ipvlan_xmit_mode_l2()
641 } else if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_xmit_mode_l2()
729 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/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/fjes/
Dfjes_main.c655 if (is_multicast_ether_addr(eth->h_dest)) { in fjes_xmit_frame()
659 } else if (is_local_ether_addr(eth->h_dest)) { in fjes_xmit_frame()
660 dest_epid = eth->h_dest[ETH_ALEN - 1]; in fjes_xmit_frame()
663 if ((eth->h_dest[0] == 0x02) && in fjes_xmit_frame()
664 (0x00 == (eth->h_dest[1] | eth->h_dest[2] | in fjes_xmit_frame()
665 eth->h_dest[3] | eth->h_dest[4])) && in fjes_xmit_frame()
1163 ((struct ethhdr *)frame)->h_dest)) { in fjes_poll()
/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c100 ether_addr_equal(e->h_dest, ha))) in mlx5e_rep_update_flows()
106 (!neigh_connected || !ether_addr_equal(e->h_dest, ha))) in mlx5e_rep_update_flows()
112 ether_addr_copy(e->h_dest, ha); in mlx5e_rep_update_flows()
113 ether_addr_copy(eth->h_dest, ha); in mlx5e_rep_update_flows()
/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/staging/ks7010/
Deap_packet.h10 unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ member
/drivers/firewire/
Dnet.c227 memset(h->h_dest, 0, net->addr_len); in fwnet_header_create()
233 memcpy(h->h_dest, daddr, net->addr_len); in fwnet_header_create()
252 memcpy(h->h_dest, neigh->ha, net->addr_len); in fwnet_header_cache()
526 if (fwnet_hwaddr_is_multicast(eth->h_dest)) { in fwnet_finish_incoming_packet()
527 if (memcmp(eth->h_dest, net->broadcast, in fwnet_finish_incoming_packet()
535 if (memcmp(eth->h_dest, net->dev_addr, net->addr_len)) in fwnet_finish_incoming_packet()
1291 if (fwnet_hwaddr_is_multicast(hdr_buf.h_dest)) { in fwnet_tx()
1300 union fwnet_hwaddr *ha = (union fwnet_hwaddr *)hdr_buf.h_dest; in fwnet_tx()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c168 ether_addr_copy(eth->h_dest, e->h_dest); in gen_eth_tnl_hdr()
249 ether_addr_copy(e->h_dest, n->ha); in mlx5e_tc_tun_create_header_ipv4()
414 ether_addr_copy(e->h_dest, n->ha); in mlx5e_tc_tun_create_header_ipv6()
/drivers/net/ethernet/sfc/
Dethtool_common.c733 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in efx_ethtool_get_class_rule()
735 eth_broadcast_addr(mac_mask->h_dest); in efx_ethtool_get_class_rule()
737 ether_addr_copy(mac_mask->h_dest, in efx_ethtool_get_class_rule()
1084 if (!is_zero_ether_addr(mac_mask->h_dest)) { in efx_ethtool_set_class_rule()
1085 if (ether_addr_equal(mac_mask->h_dest, in efx_ethtool_set_class_rule()
1088 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in efx_ethtool_set_class_rule()
1092 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in efx_ethtool_set_class_rule()
/drivers/net/ethernet/sfc/falcon/
Dethtool.c871 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in ef4_ethtool_get_class_rule()
873 eth_broadcast_addr(mac_mask->h_dest); in ef4_ethtool_get_class_rule()
875 ether_addr_copy(mac_mask->h_dest, in ef4_ethtool_get_class_rule()
1177 if (!is_zero_ether_addr(mac_mask->h_dest)) { in ef4_ethtool_set_class_rule()
1178 if (ether_addr_equal(mac_mask->h_dest, in ef4_ethtool_set_class_rule()
1181 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in ef4_ethtool_set_class_rule()
1185 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.c235 if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) in macvlan_broadcast_one()
278 hash = mc_hash(vlan, eth->h_dest); in macvlan_broadcast()
417 if (ether_addr_equal_64bits(eth_hdr(skb)->h_dest, dev->dev_addr)) in macvlan_forward_source_one()
456 if (is_multicast_ether_addr(eth->h_dest)) { in macvlan_handle_frame()
476 hash = mc_hash(NULL, eth->h_dest); in macvlan_handle_frame()
488 vlan = macvlan_hash_lookup(port, eth->h_dest); in macvlan_handle_frame()
526 if (is_multicast_ether_addr(eth->h_dest)) { in macvlan_queue_xmit()
532 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
Ddynack.c162 dst = da->st_rbf.addr[da->st_rbf.h_rb].h_dest; in ath_dynack_compute_to()
250 ether_addr_copy(da->st_rbf.addr[da->st_rbf.t_rb].h_dest, hdr->addr1); in ath_dynack_sample_tx_ts()
/drivers/net/wimax/i2400m/
Dnetdev.c410 memcpy(eth_hdr->h_dest, net_dev->dev_addr, sizeof(eth_hdr->h_dest)); in i2400m_rx_fake_eth_header()
/drivers/scsi/fcoe/
Dfcoe_ctlr.c397 memcpy(sol->eth.h_dest, fcf ? fcf->fcf_mac : fcoe_all_fcfs, ETH_ALEN); in fcoe_ctlr_solicit()
556 memcpy(kal->eth.h_dest, fcf->fcf_mac, ETH_ALEN); in fcoe_ctlr_send_keep_alive()
626 if (fcoe_ctlr_vn_lookup(fip, d_id, cap->eth.h_dest)) in fcoe_ctlr_encaps()
638 memcpy(cap->eth.h_dest, fcf->fcf_mac, ETH_ALEN); in fcoe_ctlr_encaps()
1552 if (!ether_addr_equal(eh->h_dest, fip->ctl_src_addr) && in fcoe_ctlr_recv_handler()
1553 !ether_addr_equal(eh->h_dest, fcoe_all_vn2vn) && in fcoe_ctlr_recv_handler()
1554 !ether_addr_equal(eh->h_dest, fcoe_all_p2p)) in fcoe_ctlr_recv_handler()
1556 } else if (!ether_addr_equal(eh->h_dest, fip->ctl_src_addr) && in fcoe_ctlr_recv_handler()
1557 !ether_addr_equal(eh->h_dest, fcoe_all_enode)) in fcoe_ctlr_recv_handler()
2055 memcpy(frame->eth.h_dest, dest, ETH_ALEN); in fcoe_ctlr_vn_send()
[all …]

1234