From: Florian Westphal Date: Tue, 4 Jun 2013 22:22:15 +0000 (+0000) Subject: netfilter: nfnetlink_queue: cleanup copy_range usage X-Git-Tag: v3.11-rc1~16^2~172^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9cefbbc9c8f9abe0bc514dcfca46e8051ee84050;p=pandora-kernel.git netfilter: nfnetlink_queue: cleanup copy_range usage For every packet queued, we check if configured copy_range is 0, and treat that as 'copy entire packet'. We can move this check to the queue configuration, and can set copy_range appropriately. Also, convert repetitive '0xffff - NLA_HDRLEN' to a macro. [ queue initialization still used 0xffff, although its harmless since the initial setting is overwritten on queue config ] Signed-off-by: Florian Westphal Signed-off-by: Pablo Neira Ayuso --- Reading git-diff-tree failed