BPI-R4:PCIE wifi data through CPU to optical port,many packet loss!

In master branch(kernel 6.6) Through CPU forwarding, there has been no data loss whether it’s data from an electrical port to an optical port or from CPU to an optical port. When data packets from a PCIe wireless network card are forwarded through the CPU to an electrical port, there is no data loss. However, data packets from a PCIe network card forwarded through the CPU to an optical port experience data loss. What could be the reason for this? Moreover, the rate from the CPU to the switch chip, tested by streaming through two Ethernet ports, totals only 1.3Gbps, whereas the rate should support up to 4Gbps. What might be causing this limitation?