Netdev List
 help / color / mirror / Atom feed
From: "David S. Miller" <davem@davemloft.net>
To: simon@thekelleys.org.uk
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH] fix IP-over-ATM and ARP interaction - formatting fixed.
Date: Fri, 12 May 2006 14:54:53 -0700 (PDT)	[thread overview]
Message-ID: <20060512.145453.18024400.davem@davemloft.net> (raw)
In-Reply-To: <E1FcQAK-00054Z-00@thekelleys.org.uk>

From: Simon Kelley <simon@thekelleys.org.uk>
Date: Sat, 06 May 2006 18:02:00 +0100

> This patch adds a new function, neigh_table_init_no_netlink() which
> does everything the neigh_table_init() does, except add the table to
> the netlink all-arp-tables chain. In addition neigh_table_init() has a
> check that all tables on the chain have a distinct address family.
> The init call in clip.c is changed to call neigh_table_init_no_netlink().
> 
> Since ATM ARP tables are rather more complicated than can currently be
> handled by the available rtattrs in the netlink protocol, no
> functionality is lost by this patch, and non-ATM ARP manipulation via
> netlink is rescued. A more complete solution would involve a rtattr for 
> ATM ARP entries and some way for the netlink code to give neigh_add 
> and friends more information than just address family with which to find 
> the correct ARP table.
> 
> Signed-off-by: Simon Kelley <simon@thekelleys.org.uk>

This is an OK solution to this problem for now.  So I will apply
this.

I made a minor change to your patch, I changed the assertion added to
neigh_table_init().  It's not so nice to BUG_ON() with critical locks
held just to get a log of who tried to do the double-registry.  It
could cause the machine to deadlock and subsequently the debugging
log we need to analyze such cases is less likely to get reported.

Longer term we should make neigh_table_init() return some kind of
error code to handle cases like this, but that's too large a change
for so close to 2.6.17-final.

Thanks again Simon.

      reply	other threads:[~2006-05-12 21:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-06 17:02 [PATCH] fix IP-over-ATM and ARP interaction - formatting fixed Simon Kelley
2006-05-12 21:54 ` David S. Miller [this message]

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=20060512.145453.18024400.davem@davemloft.net \
    --to=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    --cc=simon@thekelleys.org.uk \
    /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