| 607 | /* >8 End of Enqueuing packets for TX. */ |
| 608 | |
| 609 | static void |
| 610 | l2fwd_mac_updating(struct rte_mbuf *m, uint16_t dest_portid) |
| 611 | { |
| 612 | struct rte_ether_hdr *eth; |
| 613 | void *tmp; |
| 614 | |
| 615 | eth = rte_pktmbuf_mtod(m, struct rte_ether_hdr *); |
| 616 | |
| 617 | /* 02:00:00:00:00:xx */ |
| 618 | tmp = ð->dst_addr.addr_bytes[0]; |
| 619 | *((uint64_t *)tmp) = 0x000000000002 + ((uint64_t)dest_portid << 40); |
| 620 | |
| 621 | /* src addr */ |
| 622 | rte_ether_addr_copy(&l2fwd_ports_eth_addr[dest_portid], ð->src_addr); |
| 623 | } |
| 624 | |
| 625 | static void |
| 626 | l2fwd_simple_forward(struct rte_mbuf *m, uint16_t portid, |
no test coverage detected