Skip to content

Commit 2f21dc8

Browse files
packet_filter: Changed the multithreaded filter application for single thread
- This will prevent system overload if too many threads need to be created Signed-off-by: Istvan-Zsolt Szekely <istvan.szekely@analog.com>
1 parent 26dc1bb commit 2f21dc8

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

common/sv/filter.sv

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,7 @@ package filter_pkg;
8888
task apply_filter(input logic [7:0] packet[]);
8989
if (this.filter != null) begin
9090
for (int i=0; i<this.filter.size(); i++) begin
91-
fork
92-
automatic int j=i;
93-
this.filter[j].apply_filter(packet);
94-
join
91+
this.filter[i].apply_filter(packet);
9592
end
9693
for (int i=0; i<this.filter.size(); i++) begin
9794
if (filter_type)
@@ -103,10 +100,7 @@ package filter_pkg;
103100

104101
if (this.ft != null) begin
105102
for (int i=0; i<this.ft.size(); i++) begin
106-
fork
107-
automatic int j=i;
108-
this.ft[j].apply_filter(packet);
109-
join
103+
this.ft[i].apply_filter(packet);
110104
end
111105
for (int i=0; i<this.ft.size(); i++) begin
112106
if (filter_type)

0 commit comments

Comments
 (0)