Home
last modified time | relevance | path

Searched refs:l3_hdr (Results 1 – 5 of 5) sorted by relevance

/openbmc/qemu/hw/net/
H A Dnet_tx_pkt.c52 } l3_hdr; member
77 p->vec[NET_TX_PKT_L3HDR_FRAG].iov_base = &p->l3_hdr; in net_tx_pkt_init()
96 pkt->l3_hdr.ip.ip_len = cpu_to_be16(pkt->payload_len + in net_tx_pkt_update_ip_hdr_checksum()
99 pkt->l3_hdr.ip.ip_sum = 0; in net_tx_pkt_update_ip_hdr_checksum()
100 csum = net_raw_checksum(pkt->l3_hdr.octets, in net_tx_pkt_update_ip_hdr_checksum()
102 pkt->l3_hdr.ip.ip_sum = cpu_to_be16(csum); in net_tx_pkt_update_ip_hdr_checksum()
168 struct iovec *l2_hdr, *l3_hdr; in net_tx_pkt_parse_headers() local
176 l3_hdr = &pkt->vec[NET_TX_PKT_L3HDR_FRAG]; in net_tx_pkt_parse_headers()
197 l3_hdr->iov_len = 0; in net_tx_pkt_parse_headers()
211 l3_hdr->iov_base, sizeof(struct ip_header)); in net_tx_pkt_parse_headers()
[all …]
/openbmc/qemu/net/
H A Deth.c37 eth_get_gso_type(uint16_t l3_proto, uint8_t *l3_hdr, uint8_t l4proto) in eth_get_gso_type() argument
42 struct ip_header *iphdr = (struct ip_header *) l3_hdr; in eth_get_gso_type()
55 struct ip6_header *ip6hdr = (struct ip6_header *) l3_hdr; in eth_get_gso_type()
/openbmc/linux/drivers/s390/net/
H A Dqeth_l3_main.c1630 struct qeth_hdr_layer3 *l3_hdr = &hdr->hdr.l3; in qeth_l3_fill_header() local
1669 l3_hdr->flags |= qeth_l3_cast_type_to_flag(cast_type); in qeth_l3_fill_header()
1673 l3_hdr->next_hop.addr.s6_addr32[3] = in qeth_l3_fill_header()
1677 l3_hdr->next_hop.addr = *qeth_next_hop_v6_rcu(skb, dst); in qeth_l3_fill_header()
1684 l3_hdr->next_hop.addr.s6_addr16[0] = htons(0xfe80); in qeth_l3_fill_header()
1685 memcpy(&l3_hdr->next_hop.addr.s6_addr32[2], in qeth_l3_fill_header()
1687 l3_hdr->flags |= QETH_HDR_IPV6; in qeth_l3_fill_header()
1691 l3_hdr->flags |= QETH_HDR_PASSTHRU; in qeth_l3_fill_header()
H A Dqeth_core_main.c5472 struct qeth_hdr_layer3 *l3_hdr = &hdr->hdr.l3; in qeth_l3_rebuild_skb() local
5481 if (!(l3_hdr->flags & QETH_HDR_PASSTHRU)) { in qeth_l3_rebuild_skb()
5482 u16 prot = (l3_hdr->flags & QETH_HDR_IPV6) ? ETH_P_IPV6 : in qeth_l3_rebuild_skb()
5487 switch (l3_hdr->flags & QETH_HDR_CAST_MASK) { in qeth_l3_rebuild_skb()
5505 if (l3_hdr->ext_flags & QETH_HDR_EXT_SRC_MAC_ADDR) in qeth_l3_rebuild_skb()
5507 &l3_hdr->next_hop.rx.src_mac, skb->len); in qeth_l3_rebuild_skb()
5515 (l3_hdr->ext_flags & (QETH_HDR_EXT_VLAN_FRAME | in qeth_l3_rebuild_skb()
5517 u16 tag = (l3_hdr->ext_flags & QETH_HDR_EXT_VLAN_FRAME) ? in qeth_l3_rebuild_skb()
5518 l3_hdr->vlan_id : in qeth_l3_rebuild_skb()
5519 l3_hdr->next_hop.rx.vlan_id; in qeth_l3_rebuild_skb()
/openbmc/qemu/include/net/
H A Deth.h361 uint8_t eth_get_gso_type(uint16_t l3_proto, uint8_t *l3_hdr, uint8_t l4proto);