> -----Original Message----- > > > > > > + * Similar behavior to rte_bpf_eth callback. > > > + * if BPF program returns zero value for a given packet, > > > + * then it will be ignored. > > > + */ > > Looks like wrong callback name referred in the comment, should be > corrected? > > It really is pcap_offline_filter() and Linux kernel socket filter. Oh ok, rcs[i] is basically "return value of the filter program. This will be zero if the packet doesn't match the filter and non-zero if the packet matches the filter." got it now on why is the below if check. > > > > + if (cbs->filter && rcs[i] == 0) {
- [dpdk-dev] [PATCH v10 01/12] librte_pcapng: add new libr... Stephen Hemminger
- [dpdk-dev] [PATCH v10 02/12] lib: pdump is not supported... Stephen Hemminger
- [dpdk-dev] [PATCH v10 03/12] bpf: allow self-xor operati... Stephen Hemminger
- [dpdk-dev] [PATCH v10 04/12] bpf: add function to conver... Stephen Hemminger
- [dpdk-dev] [PATCH v10 05/12] bpf: add function to dump e... Stephen Hemminger
- [dpdk-dev] [PATCH v10 06/12] pdump: support pcapng and f... Stephen Hemminger
- Re: [dpdk-dev] [PATCH v10 06/12] pdump: support pca... Pattan, Reshma
- Re: [dpdk-dev] [PATCH v10 06/12] pdump: support... Stephen Hemminger
- Re: [dpdk-dev] [PATCH v10 06/12] pdump: support... Stephen Hemminger
- Re: [dpdk-dev] [PATCH v10 06/12] pdump: support... Stephen Hemminger
- Re: [dpdk-dev] [PATCH v10 06/12] pdump: sup... Pattan, Reshma
- [dpdk-dev] [PATCH v10 07/12] app/dumpcap: add new packet... Stephen Hemminger
- [dpdk-dev] [PATCH v10 08/12] test: add test for bpf_conv... Stephen Hemminger
- [dpdk-dev] [PATCH v10 09/12] test: add a test for pcapng... Stephen Hemminger
- [dpdk-dev] [PATCH v10 10/12] test: enable bpf autotest Stephen Hemminger
- [dpdk-dev] [PATCH v10 11/12] doc: changes for new pcapng... Stephen Hemminger
- [dpdk-dev] [PATCH v10 12/12] MAINTAINERS: add entry for ... Stephen Hemminger