Thread (220 messages) 220 messages, 8 authors, 2021-10-31

Re: [dpdk-dev] [PATCH v10 06/12] pdump: support pcapng and filtering

From: Stephen Hemminger <stephen@networkplumber.org>
Date: 2021-09-23 18:23:24

On Thu, 23 Sep 2021 16:11:42 +0000
"Pattan, Reshma" [off-list ref] wrote:
quoted
+		 * 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.
quoted
+		if (cbs->filter && rcs[i] == 0) {  
Why do we need to do this again if some packets already filtered.
The earlier call (rte_bpf_exec_burst) returns the number of packets that were
processed. Actually, the return value there is always equal n.
So this code is the filtering, there was an issue with checking return value of exec_burst.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help