Re: different between pf_ring api and pf_ring_zc api

Alfredo Cardigliano <[email protected]> Wed, 11 Dec 2019 09:47:42 +0100
Newsgroups gmane.linux.ntop.general
Message-ID <[email protected]>
Hi Wang
if you are using standard drivers (not ZC drivers) or just using a single recv/process loop
the two APIs are equivalent. The ZC API is useful for creating zero-copy processing patterns
like pipelines, load-balancing, etc.

Regards
Alfredo

> On 11 Dec 2019, at 04:18, Wang <[email protected]> wrote:
> 
> hi, 
> I am new to pf_ring zc and is a little confused by how to use pf_ring api and pf_ring zc api. Let's take pfcount and zcount as a example. what's the different for pfcount using pfring_open() to open a zc:eth0 and zcount using pfring_zc_open_device() to open zc:eth0? What's the best practise?
> 
> Many thanks
> 
> Wang
> _______________________________________________
> Ntop mailing list
> [email protected]
> http://listgateway.unipi.it/mailman/listinfo/ntop