netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: hadi@znyx.com
Cc: "David S. Miller" <davem@davemloft.net>,
	netdev@oss.sgi.com, Thomas Graf <tgraf@suug.ch>
Subject: Re: patch: introduce simple actions
Date: Sun, 20 Mar 2005 20:58:30 +0100	[thread overview]
Message-ID: <423DD5E6.2020708@trash.net> (raw)
In-Reply-To: <1111347345.1094.98.camel@jzny.localdomain>

Jamal Hadi Salim wrote:
> On Sun, 2005-03-20 at 14:22, Patrick McHardy wrote:
>
>>One of the next things I wanted to do in this area was
>>moving all the large inline functions to act_generic.c,
>>so if possible I would prefer not to put these in a header
>>file.
> 
> These are small functions. Take a look at the simple action i attached.
> If you can give me the same functionality and still move things
> de_inlined to act_generic.c i would be fine with it.

The functions are not inlined anyway, so the question is whether any
#define magic is done as with pkt_act.h, otherwise there is no reason
to have them in a header file. Looking at your patch, it seems
tc_defact.h uses the redefined pkt_act.h functions, so it does need to
be in a header file, but frankly, I find this horrible. The patch
doesn't conflict with cleanup of pkt_act.h, but it means more work when
doing it, so I think this is what should be done first. Especially
since this is only an example, not useful for users, but it will be
possibly used to create more actions that also need to be changed
afterwards.

Regards
Patrick

  reply	other threads:[~2005-03-20 19:58 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-20 19:05 patch: introduce simple actions Jamal Hadi Salim
2005-03-20 19:22 ` Patrick McHardy
2005-03-20 19:35   ` Jamal Hadi Salim
2005-03-20 19:58     ` Patrick McHardy [this message]
2005-03-20 20:17       ` Jamal Hadi Salim
2005-03-20 20:31         ` Thomas Graf
2005-03-20 20:41           ` jamal
2005-03-23  2:27         ` Patrick McHardy
2005-03-23  3:58         ` David S. Miller
2005-03-23  4:06           ` Jamal Hadi Salim
2005-04-06 13:29             ` PATCH: Allow Simple actions WAS(Re: " jamal
2005-04-25  3:10               ` David S. Miller
2005-03-20 19:44 ` Thomas Graf
2005-03-20 20:10   ` jamal
2005-03-20 20:18     ` Thomas Graf

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=423DD5E6.2020708@trash.net \
    --to=kaber@trash.net \
    --cc=davem@davemloft.net \
    --cc=hadi@znyx.com \
    --cc=netdev@oss.sgi.com \
    --cc=tgraf@suug.ch \
    /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).