From: James Morris Subject: Re: how to report network device errors to userspace? Date: Thu, 20 Jun 2002 12:44:49 +1000 (EST) Sender: owner-netdev@oss.sgi.com Message-ID: References: <20020619235406.A11706@wotan.suse.de> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: Chris Friesen , Donald Becker , Return-path: To: Andi Kleen In-Reply-To: <20020619235406.A11706@wotan.suse.de> List-Id: netdev.vger.kernel.org On Wed, 19 Jun 2002, Andi Kleen wrote: > On Wed, Jun 19, 2002 at 05:44:05PM -0400, Chris Friesen wrote: > > Andi Kleen wrote: > > > > > I would suggest sending a netlink message from the driver. That's really > > > what netlink was designed for. > > > > Can you point me to a driver that's done this cleanly as an example to follow? > > Not exactly a driver, but you can e.g. look at the ip_queue netfilter > module. > It's not a very clean example at this stage, unfortunately, as it contains some fairly ugly logic for maintaining unicast sessions. If you don't specifically need unicast Netlink (which I don't think you do), try also looking at the tcpdiag & ctnetlink code. - James -- James Morris