Home
last modified time | relevance | path

Searched refs:h_dest (Results 1 – 25 of 94) 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.c120 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_process_rx_packet()
126 memcpy(eth->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_process_rx_packet()
127 sizeof(eth->h_dest)); in mwifiex_process_rx_packet()
156 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.c138 - sizeof(rx_pkt_hdr->eth803_hdr.h_dest) in mwifiex_uap_queue_bridged_pkt()
143 memcpy(p_ethhdr->h_dest, rx_pkt_hdr->eth803_hdr.h_dest, in mwifiex_uap_queue_bridged_pkt()
144 sizeof(p_ethhdr->h_dest)); in mwifiex_uap_queue_bridged_pkt()
197 if (is_unicast_ether_addr(rx_pkt_hdr->eth803_hdr.h_dest)) { in mwifiex_uap_queue_bridged_pkt()
254 memcpy(ra, rx_pkt_hdr->eth803_hdr.h_dest, ETH_ALEN); in mwifiex_handle_uap_rx_forward()
291 if (is_multicast_ether_addr(p_ethhdr->h_dest) || in mwifiex_uap_recv_packet()
292 mwifiex_get_sta_entry(priv, p_ethhdr->h_dest)) { in mwifiex_uap_recv_packet()
322 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.c1026 if (!is_broadcast_ether_addr(mask->h_dest)) { in gfar_set_ether()
1028 if ((is_broadcast_ether_addr(value->h_dest) && in gfar_set_ether()
1029 is_zero_ether_addr(mask->h_dest))) { in gfar_set_ether()
1032 if (is_zero_ether_addr(mask->h_dest)) { in gfar_set_ether()
1036 upper_temp_mask = mask->h_dest[0] << 16 | in gfar_set_ether()
1037 mask->h_dest[1] << 8 | in gfar_set_ether()
1038 mask->h_dest[2]; in gfar_set_ether()
1039 lower_temp_mask = mask->h_dest[3] << 16 | in gfar_set_ether()
1040 mask->h_dest[4] << 8 | in gfar_set_ether()
1041 mask->h_dest[5]; in gfar_set_ether()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c299 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, dmac_47_16), eth_mask->h_dest); in parse_ether()
300 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_v, dmac_47_16), eth_val->h_dest); in parse_ether()
362 !is_zero_ether_addr(fs->m_ext.h_dest)) { in set_flow_attrs()
363 mask_spec(fs->m_ext.h_dest, fs->h_ext.h_dest, ETH_ALEN); in set_flow_attrs()
364 set_dmac(outer_headers_c, outer_headers_v, fs->m_ext.h_dest, in set_flow_attrs()
365 fs->h_ext.h_dest); in set_flow_attrs()
504 if (!is_zero_ether_addr(eth_mask->h_dest)) in validate_ethter()
659 !is_zero_ether_addr(fs->m_ext.h_dest)) in validate_flow()
Den_selftest.c132 ether_addr_copy(ethh->h_dest, priv->netdev->dev_addr); in mlx5e_test_get_udp_skb()
197 if (!ether_addr_equal(ethh->h_dest, orig_ndev->dev_addr)) in mlx5e_test_loopback_validate()
Den_rep.h166 unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ member
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-ethtool.c293 if (!is_zero_ether_addr(eth_mask->h_dest)) { in prep_eth_rule()
295 ether_addr_copy(key + off, eth_value->h_dest); in prep_eth_rule()
296 ether_addr_copy(mask + off, eth_mask->h_dest); in prep_eth_rule()
434 if (!is_zero_ether_addr(ext_mask->h_dest)) { in prep_mac_ext_rule()
436 ether_addr_copy(key + off, ext_value->h_dest); in prep_mac_ext_rule()
437 ether_addr_copy(mask + off, ext_mask->h_dest); in prep_mac_ext_rule()
/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()
502 if (is_multicast_ether_addr(ethh->h_dest)) { in ipvlan_process_outbound()
596 ether_addr_equal(eth->h_dest, eth->h_source)) { in ipvlan_xmit_mode_l2()
619 } else if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_xmit_mode_l2()
706 if (is_multicast_ether_addr(eth->h_dest)) { in ipvlan_handle_mode_l2()
/drivers/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c191 ether_addr_copy(eth->h_dest, e->h_dest); in gen_eth_tnl_hdr()
272 ether_addr_copy(e->h_dest, n->ha); in mlx5e_tc_tun_create_header_ipv4()
391 ether_addr_copy(e->h_dest, n->ha); in mlx5e_tc_tun_create_header_ipv6()
/drivers/net/wireless/marvell/libertas/
Drx.c125 memcpy(p_ethhdr->h_dest, p_rx_pkt->eth803_hdr.dest_addr, in lbs_process_rxed_packet()
126 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/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.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/staging/ks7010/
Deap_packet.h10 unsigned char h_dest[ETH_ALEN]; /* destination eth addr */ member
/drivers/net/ethernet/sfc/falcon/
Dethtool.c874 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in ef4_ethtool_get_class_rule()
876 eth_broadcast_addr(mac_mask->h_dest); in ef4_ethtool_get_class_rule()
878 ether_addr_copy(mac_mask->h_dest, in ef4_ethtool_get_class_rule()
1180 if (!is_zero_ether_addr(mac_mask->h_dest)) { in ef4_ethtool_set_class_rule()
1181 if (ether_addr_equal(mac_mask->h_dest, in ef4_ethtool_set_class_rule()
1184 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in ef4_ethtool_set_class_rule()
1188 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.c234 if (ether_addr_equal_64bits(eth->h_dest, dev->broadcast)) in macvlan_broadcast_one()
277 hash = mc_hash(vlan, eth->h_dest); in macvlan_broadcast()
414 if (ether_addr_equal_64bits(eth_hdr(skb)->h_dest, dev->dev_addr)) in macvlan_forward_source_one()
449 if (is_multicast_ether_addr(eth->h_dest)) { in macvlan_handle_frame()
469 hash = mc_hash(NULL, eth->h_dest); in macvlan_handle_frame()
481 vlan = macvlan_hash_lookup(port, eth->h_dest); in macvlan_handle_frame()
519 if (is_multicast_ether_addr(eth->h_dest)) { in macvlan_queue_xmit()
525 dest = macvlan_hash_lookup(port, eth->h_dest); in macvlan_queue_xmit()
Drionet.c180 if (is_multicast_ether_addr(eth->h_dest)) in rionet_start_xmit()
191 if (is_multicast_ether_addr(eth->h_dest)) { in rionet_start_xmit()
203 } else if (RIONET_MAC_MATCH(eth->h_dest)) { in rionet_start_xmit()
204 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/ethernet/sfc/
Dethtool.c897 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in efx_ethtool_get_class_rule()
899 eth_broadcast_addr(mac_mask->h_dest); in efx_ethtool_get_class_rule()
901 ether_addr_copy(mac_mask->h_dest, in efx_ethtool_get_class_rule()
1245 if (!is_zero_ether_addr(mac_mask->h_dest)) { in efx_ethtool_set_class_rule()
1246 if (ether_addr_equal(mac_mask->h_dest, in efx_ethtool_set_class_rule()
1249 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in efx_ethtool_set_class_rule()
1253 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in efx_ethtool_set_class_rule()
/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.c396 memcpy(sol->eth.h_dest, fcf ? fcf->fcf_mac : fcoe_all_fcfs, ETH_ALEN); in fcoe_ctlr_solicit()
555 memcpy(kal->eth.h_dest, fcf->fcf_mac, ETH_ALEN); in fcoe_ctlr_send_keep_alive()
624 if (fcoe_ctlr_vn_lookup(fip, d_id, cap->eth.h_dest)) in fcoe_ctlr_encaps()
636 memcpy(cap->eth.h_dest, fcf->fcf_mac, ETH_ALEN); in fcoe_ctlr_encaps()
1550 if (!ether_addr_equal(eh->h_dest, fip->ctl_src_addr) && in fcoe_ctlr_recv_handler()
1551 !ether_addr_equal(eh->h_dest, fcoe_all_vn2vn) && in fcoe_ctlr_recv_handler()
1552 !ether_addr_equal(eh->h_dest, fcoe_all_p2p)) in fcoe_ctlr_recv_handler()
1554 } else if (!ether_addr_equal(eh->h_dest, fip->ctl_src_addr) && in fcoe_ctlr_recv_handler()
1555 !ether_addr_equal(eh->h_dest, fcoe_all_enode)) in fcoe_ctlr_recv_handler()
2052 memcpy(frame->eth.h_dest, dest, ETH_ALEN); in fcoe_ctlr_vn_send()
[all …]

1234