lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <d6a684ef0907091015o2d5d39f4qd38ce706b0420ab8@mail.gmail.com>
Date:	Thu, 9 Jul 2009 20:15:19 +0300
From:	"[AvataR]" <public.avatar@...il.com>
To:	netdev@...r.kernel.org
Subject: Multthreading with netfilter?

I need to do difficult processing of IP packets. For speed up, I want
to process parts of packets in different kernel threads.
I start n threads (n = CPU count -1) in module initialization part,
and make them waiting (I use semaphores and self-made queue). At
nf_hook I
add tasks to queues and up() threads. As I in atomic context in
nf_iterate, I do in main thread computations, and then wait for
threads done with while() loop without scheduling. The problem is:
other threads sometimes don't wake up after up(). Sometimes, when I
press Enter key (SIC!) threads wake up, sometimes not.

Is there any right solvation for this problem?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ