Home
last modified time | relevance | path

Searched refs:h_dest (Results 1 – 25 of 104) 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.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/mediatek/
Dmtk_ppe_debugfs.c87 unsigned char h_dest[ETH_ALEN]; in mtk_ppe_debugfs_foe_show() local
153 *((__be32 *)h_dest) = htonl(l2->dest_mac_hi); in mtk_ppe_debugfs_foe_show()
154 *((__be16 *)&h_dest[4]) = htons(l2->dest_mac_lo); in mtk_ppe_debugfs_foe_show()
158 h_source, h_dest, ntohs(l2->etype), in mtk_ppe_debugfs_foe_show()
/drivers/net/ethernet/marvell/octeontx2/nic/
Dotx2_flows.c785 if (!is_zero_ether_addr(eth_mask->h_dest)) { in otx2_prepare_flow_request()
786 ether_addr_copy(pkt->dmac, eth_hdr->h_dest); in otx2_prepare_flow_request()
787 ether_addr_copy(pmask->dmac, eth_mask->h_dest); in otx2_prepare_flow_request()
869 !is_zero_ether_addr(fsp->m_ext.h_dest)) { in otx2_prepare_flow_request()
870 ether_addr_copy(pkt->dmac, fsp->h_ext.h_dest); in otx2_prepare_flow_request()
871 ether_addr_copy(pmask->dmac, fsp->m_ext.h_dest); in otx2_prepare_flow_request()
899 if (is_zero_ether_addr(eth_mask->h_dest) && in otx2_is_flow_rule_dmacfilter()
900 is_valid_ether_addr(eth_hdr->h_dest)) in otx2_is_flow_rule_dmacfilter()
985 ether_addr_copy(eth_hdr->h_dest, pfvf->netdev->dev_addr); in otx2_add_flow_with_pfmac()
988 otx2_dmacflt_add(pfvf, eth_hdr->h_dest, 0); in otx2_add_flow_with_pfmac()
[all …]
/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c997 if (!is_broadcast_ether_addr(mask->h_dest)) { in gfar_set_ether()
999 if ((is_broadcast_ether_addr(value->h_dest) && in gfar_set_ether()
1000 is_zero_ether_addr(mask->h_dest))) { in gfar_set_ether()
1003 if (is_zero_ether_addr(mask->h_dest)) { in gfar_set_ether()
1007 upper_temp_mask = mask->h_dest[0] << 16 | in gfar_set_ether()
1008 mask->h_dest[1] << 8 | in gfar_set_ether()
1009 mask->h_dest[2]; in gfar_set_ether()
1010 lower_temp_mask = mask->h_dest[3] << 16 | in gfar_set_ether()
1011 mask->h_dest[4] << 8 | in gfar_set_ether()
1012 mask->h_dest[5]; in gfar_set_ether()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Den_fs_ethtool.c310 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_c, dmac_47_16), eth_mask->h_dest); in parse_ether()
311 ether_addr_copy(MLX5E_FTE_ADDR_OF(headers_v, dmac_47_16), eth_val->h_dest); in parse_ether()
373 !is_zero_ether_addr(fs->m_ext.h_dest)) { in set_flow_attrs()
374 mask_spec(fs->m_ext.h_dest, fs->h_ext.h_dest, ETH_ALEN); in set_flow_attrs()
375 set_dmac(outer_headers_c, outer_headers_v, fs->m_ext.h_dest, in set_flow_attrs()
376 fs->h_ext.h_dest); in set_flow_attrs()
555 if (!is_zero_ether_addr(eth_mask->h_dest)) in validate_ethter()
710 !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()
728 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.c647 if (is_multicast_ether_addr(eth->h_dest)) { in fjes_xmit_frame()
651 } else if (is_local_ether_addr(eth->h_dest)) { in fjes_xmit_frame()
652 dest_epid = eth->h_dest[ETH_ALEN - 1]; in fjes_xmit_frame()
655 if ((eth->h_dest[0] == 0x02) && in fjes_xmit_frame()
656 (0x00 == (eth->h_dest[1] | eth->h_dest[2] | in fjes_xmit_frame()
657 eth->h_dest[3] | eth->h_dest[4])) && in fjes_xmit_frame()
1155 ((struct ethhdr *)frame)->h_dest)) { in fjes_poll()
/drivers/net/ethernet/mellanox/mlx5/core/en/rep/
Dtc.c99 if (encap_connected == neigh_connected && ether_addr_equal(e->h_dest, ha)) in mlx5e_rep_update_flows()
105 (!neigh_connected || !ether_addr_equal(e->h_dest, ha))) in mlx5e_rep_update_flows()
111 ether_addr_copy(e->h_dest, ha); in mlx5e_rep_update_flows()
112 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/net/ethernet/mellanox/mlx5/core/en/
Dtc_tun.c200 ether_addr_copy(eth->h_dest, e->h_dest); in gen_eth_tnl_hdr()
276 ether_addr_copy(e->h_dest, attr.n->ha); in mlx5e_tc_tun_create_header_ipv4()
379 ether_addr_copy(e->h_dest, attr.n->ha); in mlx5e_tc_tun_update_header_ipv4()
542 ether_addr_copy(e->h_dest, attr.n->ha); in mlx5e_tc_tun_create_header_ipv6()
644 ether_addr_copy(e->h_dest, attr.n->ha); in mlx5e_tc_tun_update_header_ipv6()
/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()
522 if (fwnet_hwaddr_is_multicast(eth->h_dest)) { in fwnet_finish_incoming_packet()
523 if (memcmp(eth->h_dest, net->broadcast, in fwnet_finish_incoming_packet()
531 if (memcmp(eth->h_dest, net->dev_addr, net->addr_len)) in fwnet_finish_incoming_packet()
1289 if (fwnet_hwaddr_is_multicast(hdr_buf.h_dest)) { in fwnet_tx()
1298 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.c875 ether_addr_copy(mac_entry->h_dest, spec.loc_mac); in ef4_ethtool_get_class_rule()
877 eth_broadcast_addr(mac_mask->h_dest); in ef4_ethtool_get_class_rule()
879 ether_addr_copy(mac_mask->h_dest, in ef4_ethtool_get_class_rule()
1181 if (!is_zero_ether_addr(mac_mask->h_dest)) { in ef4_ethtool_set_class_rule()
1182 if (ether_addr_equal(mac_mask->h_dest, in ef4_ethtool_set_class_rule()
1185 else if (is_broadcast_ether_addr(mac_mask->h_dest)) in ef4_ethtool_set_class_rule()
1189 ether_addr_copy(spec.loc_mac, mac_entry->h_dest); in ef4_ethtool_set_class_rule()
/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/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
Ddynack.c161 dst = da->st_rbf.addr[da->st_rbf.h_rb].h_dest; in ath_dynack_compute_to()
253 memcpy(da->st_rbf.addr[da->st_rbf.t_rb].h_dest, hdr->addr1, ETH_ALEN); in ath_dynack_sample_tx_ts()

12345