Tapping a Tx port to access all the packets being Txed

Stephen Hemminger stephen at networkplumber.org
Thu Jan 11 18:04:55 CET 2024


On Thu, 11 Jan 2024 05:55:53 +0000
Nicolson Ken (ニコルソン ケン) <ken.nicolson at jp.panasonic.com> wrote:

> Hi all,
> 
> I'm wanting to basically tap a DPDK stream and for instance save all packets being Txed by a PMD to a separate file.
> 
> I know I could relatively easily modify an existing PMD to have two output ports, but is there either an existing PMD that does this, or a programmatic way to graft a second port onto an arbitrary PMD, or is there another simpler way that I haven't realised yet. As mbufs are already reference counted, I would hope, and require, that such a solution would be zero copy. RSS-friendly would also be a plus.
> 
> Thanks,
> Ken

You could use Tx callback to do this, or pdump, or pcap PMD.


More information about the users mailing list