From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Westphal Subject: Re: NFQUEUE parallelization Date: Thu, 24 Sep 2015 22:48:40 +0200 Message-ID: <20150924204840.GC29479@breakpoint.cc> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netfilter-devel@vger.kernel.org To: Eugene Strulyov Return-path: Received: from Chamillionaire.breakpoint.cc ([80.244.247.6]:59560 "EHLO Chamillionaire.breakpoint.cc" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751639AbbIXUsn (ORCPT ); Thu, 24 Sep 2015 16:48:43 -0400 Content-Disposition: inline In-Reply-To: Sender: netfilter-devel-owner@vger.kernel.org List-ID: Eugene Strulyov wrote: > When using multiple queues, is it valid to call nfq_open() multiple > times in the same process? Yes. > When I do that I get negative numbers for > peer portid. Is this normal? > $ sudo cat /proc/net/netfilter/nfnetlink_queue > 100 27790 0 2 65531 0 0 0 1 > 101 -4585 0 2 65531 0 0 0 1 The proc formatter in nfnetlink_queue uses %d instead of %u. It was fixed a few months back. > Also, how exactly does --queue-balance work? All packets seem to be > directed to one particular queue. Hash over ipv4/ipv6 source & dst addresses.