All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Craig <philipc@snapgear.com>
To: Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [RFC][PATCH] optimise iptables interface matching
Date: Fri, 25 May 2007 10:56:10 +1000	[thread overview]
Message-ID: <4656342A.5040202@snapgear.com> (raw)
In-Reply-To: <200705250044.l4P0i3f8007580@toshiba.co.jp>

Yasuyuki KOZAKAI wrote:
> This breaks binary compatibility. The current userspace programs do not set
> this bit. And ip_checkentry() in all kernel before you change will reject
> unknown flags from new userspace programs.

Userspace doesn't need to set it because the kernel can derive it
automatically (which I've done in ip_checkentry).
Basically I just needed two bits of internal state, and the flags
field looked like a convenient place for this.  Userspace should
be completely ignorant of these bits.

> Actually, we cannot add a new flag to 'struct ipt_ip'. It does not have
> revision field. Unfortunately it has no field such as name[] in
> 'struct xt_entry_match' to steal one octet for revision.

If we can never add new flags, then that would be a reason for me to
not bother with clearing the internal bits before sending to userspace.

> I expect that this optimization will be done when we introduce netlink
> interface.

Yes, I'm happy to just keep a local patch until then if you don't think
it is worth it.

  reply	other threads:[~2007-05-25  0:56 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-24  5:55 [RFC][PATCH] optimise iptables interface matching Philip Craig
2007-05-24 17:43 ` Patrick McHardy
2007-05-24 23:07   ` Philip Craig
2007-05-26  8:47     ` Patrick McHardy
2007-05-25  0:44 ` Yasuyuki KOZAKAI
2007-05-25  0:56   ` Philip Craig [this message]
2007-05-25  4:11     ` Yasuyuki KOZAKAI
2007-05-26  9:20     ` Patrick McHardy
2007-05-28 19:53       ` Henrik Nordstrom
2007-05-29  0:24         ` Philip Craig
2007-05-30  1:34           ` Henrik Nordstrom
2007-06-06  5:49             ` Philip Craig
2007-06-06  6:13               ` Eric Dumazet
2007-05-29  9:54         ` Patrick McHardy

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=4656342A.5040202@snapgear.com \
    --to=philipc@snapgear.com \
    --cc=netfilter-devel@lists.netfilter.org \
    --cc=yasuyuki.kozakai@toshiba.co.jp \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.