The myri_dmabench program in /opt/snf/bin provides this information.
For example, in Windows:
bin>myri_dmabench.exe DMA timings for myri0 (00:60:dd:45:f1:70): LANai: 364.4 MHz PCI-E x8 (1MB = 1048576 Bytes) DMA read (send) Bandwidth = 1675.96 MB/sec (4096 bytes per DMA) DMA write (recv) Bandwidth = 1641.77 MB/sec (4096 bytes per DMA)
If you have a two-port adapter (e.g., 10G-PCIE2-8C2-2S), you can verify the bandwidth of each port by specifying the myri_dmabench command-line argument -b 0 and -b 1.
For a more detailed description of the DMA bandwidth, please read Can you describe in detail the PCI / PCIe hardware benchmark that is returned by mx_dmabench?.