/openbmc/qemu/include/net/ |
H A D | eth.h | 38 struct eth_header { struct 195 ((struct eth_header *)(p)) 197 ((struct vlan_header *) (((uint8_t *)(p)) + sizeof(struct eth_header))) 240 (sizeof(struct eth_header) + 2 * sizeof(struct vlan_header)) 287 get_eth_packet_type(const struct eth_header *ehdr) in get_eth_packet_type() 305 return sizeof(struct eth_header) + sizeof(struct vlan_header); in eth_get_l2_hdr_length() 308 return sizeof(struct eth_header) + 2 * sizeof(struct vlan_header); in eth_get_l2_hdr_length() 310 return sizeof(struct eth_header) + sizeof(struct vlan_header); in eth_get_l2_hdr_length() 313 return sizeof(struct eth_header); in eth_get_l2_hdr_length() 320 uint8_t p[sizeof(struct eth_header) + sizeof(struct vlan_header)]; in eth_get_l2_hdr_length_iov() [all …]
|
/openbmc/qemu/net/ |
H A D | checksum.c | 73 if (length < sizeof(struct eth_header)) { in net_checksum_calculate() 80 mac_hdr_len = sizeof(struct eth_header) + in net_checksum_calculate() 85 mac_hdr_len = sizeof(struct eth_header) + in net_checksum_calculate() 88 mac_hdr_len = sizeof(struct eth_header) + in net_checksum_calculate() 93 mac_hdr_len = sizeof(struct eth_header); in net_checksum_calculate()
|
H A D | eth.c | 24 void eth_setup_vlan_headers(struct eth_header *ehdr, size_t *ehdr_size, in eth_setup_vlan_headers() 227 struct eth_header *new_ehdr = new_ehdr_buf; in eth_strip_vlan() 262 return sizeof(struct eth_header) + sizeof(struct vlan_header); in eth_strip_vlan() 264 return sizeof(struct eth_header); in eth_strip_vlan() 284 new_ehdr_size = sizeof(struct eth_header); in eth_strip_vlan_ex() 290 new_ehdr_size = sizeof(struct eth_header) + sizeof(struct vlan_header); in eth_strip_vlan_ex()
|
H A D | colo.c | 55 (pkt->size < sizeof(struct eth_header) + sizeof(struct vlan_header) + in parse_packet_early()
|
/openbmc/qemu/hw/hyperv/ |
H A D | syndbg.c | 75 if (curr_len < sizeof(struct eth_header) || in get_udb_pkt_data() 79 offset = sizeof(struct eth_header); in get_udb_pkt_data() 80 curr_len -= sizeof(struct eth_header); in get_udb_pkt_data() 143 (sizeof(struct eth_header) + sizeof(struct ip_header) +\ 176 sizeof(struct eth_header) + in create_udp_pkt()
|
/openbmc/qemu/tests/qtest/ |
H A D | igb-test.c | 43 static const struct eth_header packet = { 92 struct eth_header test_iov = packet; in igb_receive_verify()
|
H A D | e1000e-test.c | 39 static const struct eth_header packet = { 89 struct eth_header test_iov = packet; in e1000e_receive_verify()
|
/openbmc/linux/net/ethernet/ |
H A D | eth.c | 79 int eth_header(struct sk_buff *skb, struct net_device *dev, in eth_header() function 114 EXPORT_SYMBOL(eth_header); 334 .create = eth_header,
|
/openbmc/qemu/hw/net/ |
H A D | e1000x_common.c | 79 bool e1000x_rx_group_filter(uint32_t *mac, const struct eth_header *ehdr) in e1000x_rx_group_filter() 143 size_t header_size = sizeof(struct eth_header) + sizeof(struct vlan_header); in e1000x_is_oversized()
|
H A D | e1000x_common.h | 112 bool e1000x_rx_group_filter(uint32_t *mac, const struct eth_header *ehdr);
|
H A D | virtio-net.c | 1912 struct eth_header eth; 2094 + sizeof(struct eth_header)); in virtio_net_rsc_extract_unit4() 2110 + sizeof(struct eth_header)); in virtio_net_rsc_extract_unit6() 2197 seg->buf = g_malloc(hdr_len + sizeof(struct eth_header) in virtio_net_rsc_cache_buf() 2501 sizeof(struct eth_header))) { in virtio_net_rsc_sanity_check4() 2519 if (size < (hdr_len + sizeof(struct eth_header) + sizeof(struct ip_header) in virtio_net_rsc_receive4() 2536 ((hdr_len + sizeof(struct eth_header)) + 12), in virtio_net_rsc_receive4() 2538 hdr_len + sizeof(struct eth_header) + sizeof(struct ip_header)); in virtio_net_rsc_receive4() 2563 ip_len > (size - chain->n->guest_hdr_len - sizeof(struct eth_header) in virtio_net_rsc_sanity_check6() 2589 if (size < (hdr_len + sizeof(struct eth_header) + sizeof(struct ip6_header) in virtio_net_rsc_receive6() [all …]
|
H A D | net_tx_pkt.c | 45 struct eth_header eth; 180 if (bytes_read < sizeof(struct eth_header)) { in net_tx_pkt_parse_headers() 185 l2_hdr->iov_len = sizeof(struct eth_header); in net_tx_pkt_parse_headers()
|
H A D | net_rx_pkt.c | 28 struct eth_header eth;
|
H A D | igb_core.c | 71 struct eth_header eth; 1007 static bool igb_rx_is_oversized(IGBCore *core, const struct eth_header *ehdr, in igb_rx_is_oversized() 1012 size_t header_size = sizeof(struct eth_header) + vlan_header_size; in igb_rx_is_oversized() 1023 const struct eth_header *ehdr = &l2_header->eth; in igb_receive_assign()
|
H A D | ftgmac100.c | 506 if (frame_size < sizeof(struct eth_header)) { in ftgmac100_insert_vlan()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | resource_tracker.c | 4200 static int validate_eth_header_mac(int slave, struct _rule_hw *eth_header, in validate_eth_header_mac() argument 4207 if (!is_multicast_ether_addr(eth_header->eth.dst_mac) && in validate_eth_header_mac() 4208 !is_broadcast_ether_addr(eth_header->eth.dst_mac)) { in validate_eth_header_mac() 4211 if (ether_addr_equal((u8 *)&be_mac, eth_header->eth.dst_mac)) in validate_eth_header_mac() 4215 eth_header->eth.dst_mac, slave); in validate_eth_header_mac() 4232 struct mlx4_net_trans_rule_hw_eth *eth_header; in add_eth_header() local 4240 eth_header = (struct mlx4_net_trans_rule_hw_eth *)(ctrl + 1); in add_eth_header() 4246 (struct mlx4_net_trans_rule_hw_ipv4 *)(eth_header + 1); in add_eth_header() 4247 memmove(ip_header, eth_header, in add_eth_header() 4253 (eth_header + 1); in add_eth_header() [all …]
|
H A D | main.c | 825 struct _rule_hw *eth_header) in mlx4_handle_eth_header_mcast_prio() argument 827 if (is_multicast_ether_addr(eth_header->eth.dst_mac) || in mlx4_handle_eth_header_mcast_prio() 828 is_broadcast_ether_addr(eth_header->eth.dst_mac)) { in mlx4_handle_eth_header_mcast_prio() 830 (struct mlx4_net_trans_rule_hw_eth *)eth_header; in mlx4_handle_eth_header_mcast_prio()
|
/openbmc/qemu/include/standard-headers/linux/ |
H A D | ethtool.h | 1347 struct eth_header ether_spec; 1587 struct eth_header ether_spec;
|
/openbmc/linux/include/linux/ |
H A D | etherdevice.h | 43 int eth_header(struct sk_buff *skb, struct net_device *dev, unsigned short type,
|
/openbmc/qemu/hw/net/rocker/ |
H A D | rocker_of_dpa.c | 145 struct eth_header *ethhdr; 159 struct eth_header ethhdr_rewrite; 386 fc->iov[0].iov_len = sizeof(struct eth_header); in of_dpa_flow_pkt_hdr_reset() 398 sofar += sizeof(struct eth_header); in of_dpa_flow_pkt_parse() 494 memcpy(&fc->ethhdr_rewrite, fields->ethhdr, sizeof(struct eth_header)); in of_dpa_flow_pkt_hdr_rewrite()
|
/openbmc/linux/net/hsr/ |
H A D | hsr_device.c | 230 .create = eth_header,
|
/openbmc/linux/net/ipv4/ |
H A D | ip_tunnel_core.c | 248 eth_header(skb, skb->dev, ntohs(eh.h_proto), eh.h_source, eh.h_dest, 0); in iptunnel_pmtud_build_icmp() 341 eth_header(skb, skb->dev, ntohs(eh.h_proto), eh.h_source, eh.h_dest, 0); in iptunnel_pmtud_build_icmpv6()
|
/openbmc/linux/drivers/net/wireless/intersil/hostap/ |
H A D | hostap_main.c | 786 .create = eth_header,
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | xskxceiver.c | 785 static void pkt_dump(void *pkt, u32 len, bool eth_header) in pkt_dump() argument 790 if (eth_header) { in pkt_dump()
|
/openbmc/linux/drivers/net/plip/ |
H A D | plip.c | 1036 ret = eth_header(skb, dev, type, daddr, saddr, len); in plip_hard_header()
|