From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steve Wise Subject: Re: [PATCH REPOST 1/2] Network Event Notifier Mechanism. Date: Mon, 26 Jun 2006 13:28:42 -0500 Message-ID: <1151346522.2398.46.camel@stevo-desktop> References: <20060623201928.32482.69191.stgit@stevo-desktop> <20060623.132647.39159829.davem@davemloft.net> <1151335571.2398.37.camel@stevo-desktop> <20060626.104311.111204162.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org Return-path: Received: from es335.com ([67.65.19.105]:38220 "EHLO mail.es335.com") by vger.kernel.org with ESMTP id S932622AbWFZS2n (ORCPT ); Mon, 26 Jun 2006 14:28:43 -0400 To: David Miller In-Reply-To: <20060626.104311.111204162.davem@davemloft.net> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org On Mon, 2006-06-26 at 10:43 -0700, David Miller wrote: > From: Steve Wise > 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.