netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: David Miller <davem@davemloft.net>
Cc: herbert@gondor.apana.org.au, nhorman@tuxdriver.com,
	zbr@ioremap.net, netdev@vger.kernel.org, kuznet@ms2.inr.ac.ru,
	pekkas@netcore.fi, jmorris@namei.org, yoshfuji@linux-ipv6.org
Subject: Re: [Patch 4/5] Network Drop Monitor: Adding drop monitor implementation & Netlink protocol
Date: Mon, 06 Apr 2009 15:21:45 +0200	[thread overview]
Message-ID: <49DA01E9.6010602@trash.net> (raw)
In-Reply-To: <20090405.025920.75648090.davem@davemloft.net>

David Miller wrote:
> From: Herbert Xu <herbert@gondor.apana.org.au>
> Date: Thu, 2 Apr 2009 23:30:42 +0800
> 
>> On Thu, Apr 02, 2009 at 05:14:50PM +0200, Patrick McHardy wrote:
>>> I'd prefer that as well. The only reason to do this is to save a few
>>> bytes and cycles for attribute encapsulation. I don't think this
>>> matters at all, judging by the fact that I've never seen a userspace
>>> implementation using message batching, the current users don't seem
>>> to care about performance *that* much.
>> OK, let's all just keep an eye out for new struct users and see
>> how it goes.
> 
> It might be about time to start working on netlink-2 seriously.
> :-)
> 
> We can start treating it like a real protocol, firmly define
> the endianness of everything to kill all the over-the-wire
> issues, etc. and deal with this 4-byte-align stuff as well.

We could add a setsockopt option for userspace to specify "version 2"
operation. The netlink attributes helpers would need to be aware of
the currently used protocol version and could transparently choose
a different encoding (also taking care of endianess etc). For the
case of one value per attribute this should be a straight-forward
conversion. In case of structures that contain values with different
endianness, we'll probably need to define a new encoding (ideally
also one attribute per value) for version 2.

I'd also suggest to get rid of the 64k attribute and message size
limit at the same time, this is making it quite hard to support
transactional semantics for large updates (f.i. for nf_tables sets).


  reply	other threads:[~2009-04-06 13:21 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-03 17:04 [Patch 4/5] Network Drop Monitor: Adding drop monitor implementation & Netlink protocol Neil Horman
2009-03-03 18:19 ` Evgeniy Polyakov
2009-03-03 19:21   ` Neil Horman
2009-03-03 22:14     ` David Miller
2009-03-03 22:16     ` David Miller
2009-03-04 10:06       ` Patrick McHardy
2009-03-04 11:00         ` David Miller
2009-04-02  9:39           ` Herbert Xu
2009-04-02  9:50             ` David Miller
2009-04-02  9:52             ` David Miller
2009-04-02  9:59               ` Herbert Xu
2009-04-02 14:42                 ` Patrick McHardy
2009-04-02 14:45                   ` Herbert Xu
2009-04-02 14:57                     ` Patrick McHardy
2009-04-02 14:59                       ` Herbert Xu
2009-04-02 15:06                         ` Patrick McHardy
2009-04-02 15:09                           ` Herbert Xu
2009-04-02 15:14                             ` Patrick McHardy
2009-04-02 15:30                               ` Herbert Xu
2009-04-05  9:59                                 ` David Miller
2009-04-06 13:21                                   ` Patrick McHardy [this message]
2009-06-10  8:08                                     ` David Miller
2009-06-10 10:35                                       ` Patrick McHardy
2009-04-05  9:57                           ` David Miller
2009-04-05  9:56                     ` David Miller
2009-04-05  9:54                 ` David Miller
2009-03-04 11:44       ` Neil Horman
2009-03-05 19:27 ` Neil Horman
2009-03-11 16:17   ` David Miller
2009-03-11 19:51 ` Neil Horman
2009-03-13 19:10   ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49DA01E9.6010602@trash.net \
    --to=kaber@trash.net \
    --cc=davem@davemloft.net \
    --cc=herbert@gondor.apana.org.au \
    --cc=jmorris@namei.org \
    --cc=kuznet@ms2.inr.ac.ru \
    --cc=netdev@vger.kernel.org \
    --cc=nhorman@tuxdriver.com \
    --cc=pekkas@netcore.fi \
    --cc=yoshfuji@linux-ipv6.org \
    --cc=zbr@ioremap.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).