All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve Wise <swise@opengridcomputing.com>
To: David Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH REPOST 1/2] Network Event Notifier Mechanism.
Date: Mon, 26 Jun 2006 13:28:42 -0500	[thread overview]
Message-ID: <1151346522.2398.46.camel@stevo-desktop> (raw)
In-Reply-To: <20060626.104311.111204162.davem@davemloft.net>

On Mon, 2006-06-26 at 10:43 -0700, David Miller wrote:
> From: Steve Wise <swise@opengridcomputing.com>
> Date: Mon, 26 Jun 2006 10:26:11 -0500
> 
> > I guess what I think we should do is pass the fib_info * when its a IPv4
> > route add/del, and a rt6_info * when its a IPv6 add/del.  This avoids
> > having to create some new family independent struct.  What I'll have to
> > do, however, is have specific notifier event enums for each: 
> > 
> > NETEVENT_IPV4_ROUTE_ADD
> > NETEVENT_IPV4_ROUTE_DEL
> > NETEVENT_IPV6_ROUTE_ADD
> > NETEVENT_IPV6_ROUTE_DEL
> > 
> > This keeps it simple IMO...
> > 
> > Does that sound reasonable to you?
> 
> You can avoid creating an event per address family by defining your
> data as:
> 
> 	struct netevent_route_info {
> 		u16 family;
> 		void *data;
> 	};
> 
> and passing that through the notifier.
> 
> Then you just need NETEVENT_ROUTE_{ADD,DEL}
> 
> Just an idea...

Seems reasonable.   

Thanks,

Steve.


  reply	other threads:[~2006-06-26 18:28 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-23 20:19 [PATCH REPOST 0/2][RFC] Network Event Notifier Mechanism Steve Wise
2006-06-23 20:19 ` [PATCH REPOST 1/2] " Steve Wise
2006-06-23 20:26   ` David Miller
2006-06-23 20:34     ` Steve Wise
2006-06-23 20:56       ` David Miller
2006-06-24  2:27         ` Steve Wise
2006-06-26 15:26     ` Steve Wise
2006-06-26 17:43       ` David Miller
2006-06-26 18:28         ` Steve Wise [this message]
2006-06-23 20:19 ` [PATCH REPOST 2/2] Core network changes to support network event notification Steve Wise
2006-06-27 12:50 ` [PATCH REPOST 0/2][RFC] Network Event Notifier Mechanism Herbert Xu
2006-06-27 14:31   ` Steve Wise
2006-06-27 22:32     ` Herbert Xu

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=1151346522.2398.46.camel@stevo-desktop \
    --to=swise@opengridcomputing.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /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.