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>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 18 Apr 2013 13:01:05 +0200
From:	Florian Westphal <fw@...len.de>
To:	Patrick McHardy <kaber@...sh.net>
Cc:	Florian Westphal <fw@...len.de>, davem@...emloft.net,
	netfilter-devel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH 00/14]: netlink: memory mapped I/O

Patrick McHardy <kaber@...sh.net> wrote:
> So I think while the nfnetlink_queue zero copy patches are a great idea,
> there are still enough unhandled use cases for memory mapped netlink.
>
> > Another issue with mmap is the need to preallocate the ring frame size.
> > After the gso avoidance change [ no skb_gso_segment calls anymore ],
> > we will need to be able to queue GSO/GRO skbs, which makes it necessary to
> > cope with 64k payload in the mmap case...
> 
> Hmm that might actually also be a problem in the zcopy case for userspace since
> the netlink recv buffer sizes are in many cases not that large.

I am not sure I am following here.  Can you elaborate?
Maybe I was a bit too vague, so let me try to clarify.

The GSO segmentation avoidance patch requires userspace support, including large
recv buffer size (i.e., 64k + a few byte netlink overhead).

It will be off by default, userspace needs to enable it when it binds
the nfqueue.

What I was pointing out is that for mmap'd netlink you usually need
to allocate enough slots so the ring can handle e.g. 1024 packets.

For the 64k packet case, that would be >64 MB mmap-ring.

I'm not saying its a problem, just wanted to point it out.

[ 64k is probably rare enough to have mmap-users fallback to recv,
  and your patches already support this ].

Cheers,
Florian
--
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