netdev
[Top] [All Lists]

Re: patch: introduce simple actions

To: Patrick McHardy <kaber@xxxxxxxxx>
Subject: Re: patch: introduce simple actions
From: Jamal Hadi Salim <hadi@xxxxxxxx>
Date: 20 Mar 2005 14:35:45 -0500
Cc: "David S. Miller" <davem@xxxxxxxxxxxxx>, netdev@xxxxxxxxxxx, Thomas Graf <tgraf@xxxxxxx>
In-reply-to: <423DCD8C.6030100@trash.net>
Organization: ZNYX Networks
References: <1111345551.1095.82.camel@jzny.localdomain> <423DCD8C.6030100@trash.net>
Reply-to: hadi@xxxxxxxx
Sender: netdev-bounce@xxxxxxxxxxx
On Sun, 2005-03-20 at 14:22, Patrick McHardy wrote:
> Jamal Hadi Salim wrote:
> > Ive posted this before - dont want it to sit here rotting. 
> > If theres nothing glaringly wrong with it (Thomas/Patrick?) then Dave
> > please apply so i can start shooting other patches based on it.
> 
> Any reasons why all of these need to be inline functions?


A lot of the code is very common. 
I am essentially sticking some common code as inlines to allow someone
to write some very simple code - probably just the packet processing
function - see attached simple action.
Inlines seem easy to allow this.

> 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.

cheers,
jamal

Attachment: p16
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>