eth_hdr = rte_pktmbuf_mtod(created_pkt, struct rte_ether_hdr *); rte_ether_addr_copy(ð_addr, ð_hdr->src_addr); /* Set multicast address 01-1B-19-00-00-00. */ rte_ether_addr_copy(ð_multicast, ð_hdr->dst_addr); eth_hdr->ether_type = htons(PTP_PROTOCOL); req...
"store MAC addresses", ETHER_ADDR_LEN * hw->mac.rar_entry_count); return -ENOMEM; } /* Copy the permanent MAC address */ ether_addr_copy((struct ether_addr *) hw->mac.addr, eth_dev->data->mac_addrs); 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. ...
地址转换成vva vhost_iova_to_vva(dev, vq, vq->desc[desc_indexes[i]].addr, &dlen, VHOST_ACCESS_RO); if (unlikely(!desc)) break; if (unlikely(dlen < vq->desc[desc_indexes[i]].len)) { /* * The indirect desc table is not contiguous * in process VA space, we have to copy it...
a received vlan packet * would have RTE_PTYPE_L2_ETHER and not RTE_PTYPE_L2_VLAN because the * vlan is stripped from the data. */ /* 数据包类型,它是外部/内部 L2、L3
(guest physical addr -> vhost virtual addr)*/buff_addr= gpa_to_vva(dev, desc->addr);/*Prefetch buffer address.*/rte_prefetch0((void*)(uintptr_t)buff_addr);/*Copy virtio_hdr to packet and increment buffer address*/buff_hdr_addr=buff_addr;/** If the descriptors are chained the ...
* would have RTE_PTYPE_L2_ETHER and not RTE_PTYPE_L2_VLAN because the * vlan is stripped from the data. */ RTE_STD_C11 union { uint32_t packet_type; /**< L2/L3/L4 and tunnel information. */ struct { uint32_t l2_type:4; /**< (Outer) L2 type. */ ...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Cancel Create saved search Sign in Sign up Reseting focus {...