Home
last modified time | relevance | path

Searched refs:ethh (Results 1 – 4 of 4) sorted by relevance

/freebsd/tools/tools/netmap/
H A Dpkt_hash.c285 decode_others_n_hash(const struct ether_header *ethh, uint8_t seed) in decode_others_n_hash() argument
289 saddr = ethh->ether_shost[5] | in decode_others_n_hash()
290 (ethh->ether_shost[4] << 8) | in decode_others_n_hash()
291 (ethh->ether_shost[3] << 16) | in decode_others_n_hash()
292 (ethh->ether_shost[2] << 24); in decode_others_n_hash()
293 daddr = ethh->ether_dhost[5] | in decode_others_n_hash()
294 (ethh->ether_dhost[4] << 8) | in decode_others_n_hash()
295 (ethh->ether_dhost[3] << 16) | in decode_others_n_hash()
296 (ethh->ether_dhost[2] << 24); in decode_others_n_hash()
310 decode_vlan_n_hash(const struct ether_header *ethh, uint8_t hash_split, uint8_t seed) in decode_vlan_n_hash() argument
[all …]
/freebsd/sys/dev/qlnx/qlnxe/
H A Decore_iwarp.c2011 struct ecore_ethhdr *ethh; in ecore_iwarp_parse_rx_pkt() local
2020 ethh = (struct ecore_ethhdr *)buf; in ecore_iwarp_parse_rx_pkt()
2021 eth_type = ntohs(ethh->h_proto); in ecore_iwarp_parse_rx_pkt()
2024 vethh = (struct ecore_vlan_ethhdr *)ethh; in ecore_iwarp_parse_rx_pkt()
2032 ethh->h_source, in ecore_iwarp_parse_rx_pkt()
2036 ethh->h_dest, in ecore_iwarp_parse_rx_pkt()
2040 eth_type, ethh->h_source[0], ethh->h_source[1], in ecore_iwarp_parse_rx_pkt()
2041 ethh->h_source[2], ethh->h_source[3], in ecore_iwarp_parse_rx_pkt()
2042 ethh->h_source[4], ethh->h_source[5]); in ecore_iwarp_parse_rx_pkt()
2045 eth_hlen, ethh->h_dest[0], ethh->h_dest[1], in ecore_iwarp_parse_rx_pkt()
[all …]
/freebsd/sys/dev/irdma/
H A Dirdma_cm.c466 struct ether_header *ethh; in irdma_form_uda_cm_frame() local
506 ethh = (struct ether_header *)buf; in irdma_form_uda_cm_frame()
520 ether_addr_copy(ethh->ether_dhost, cm_node->rem_mac); in irdma_form_uda_cm_frame()
521 ether_addr_copy(ethh->ether_shost, cm_node->loc_mac); in irdma_form_uda_cm_frame()
523 ((struct ether_vlan_header *)ethh)->evl_proto = in irdma_form_uda_cm_frame()
527 ((struct ether_vlan_header *)ethh)->evl_tag = htons(vtag); in irdma_form_uda_cm_frame()
529 ((struct ether_vlan_header *)ethh)->evl_encap_proto = in irdma_form_uda_cm_frame()
532 ethh->ether_type = htons(ETH_P_IP); in irdma_form_uda_cm_frame()
553 ether_addr_copy(ethh->ether_dhost, cm_node->rem_mac); in irdma_form_uda_cm_frame()
554 ether_addr_copy(ethh->ether_shost, cm_node->loc_mac); in irdma_form_uda_cm_frame()
[all …]
H A Dirdma_utils.c1437 struct ether_header *ethh = buf->mem.va; in irdma_gen1_puda_get_tcpip_info() local
1439 if (ethh->ether_type == htons(0x8100)) { in irdma_gen1_puda_get_tcpip_info()
1441 buf->vlan_id = ntohs(((struct ether_vlan_header *)ethh)->evl_tag) & in irdma_gen1_puda_get_tcpip_info()