Re: [patch 11/26] IPOB: Move destructor from neigh->ops to neigh_param
- From: "David S. Miller" <davem@xxxxxxxxxxxxx>
- Date: Tue, 04 Apr 2006 17:07:20 -0700 (PDT)
From: gregkh@xxxxxxx
Date: Tue, 4 Apr 2006 17:00:30 -0700
From: Michael Tsirkin <mst@xxxxxxxxxxxxxx>
struct neigh_ops currently has a destructor field, but not a constructor field.
The infiniband/ulp/ipoib in-tree driver stashes some info in the neighbour
structure (the results of the second-stage lookup from ARP results to real
link-level path), and it uses neigh->ops->destructor to get a callback so it can
clean up this extra info when a neighbour is freed. We've run into problems
with this: since the destructor is in an ops field that is shared between
neighbours that may belong to different net devices, there's no way to set/clear
it safely.
The following patch moves this field to neigh_parms where it can be safely set,
together with its twin neigh_setup, and switches the only two in-kernel users
(ipoib and clip) to this interface.
Major NAK.
This does not fix a bug, it is merely and API change that the
inifiniband folks want for some of their infrastructure.
It was accepted for 2.6.17, but this change is not appropriate
for the -stable release branch.
Furthermore, this version of the patch here will break the build of
ATM.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [patch 00/26] 2.6.16.2 -stable review
- From: gregkh
- [patch 11/26] IPOB: Move destructor from neigh->ops to neigh_param
- From: gregkh
- [patch 00/26] 2.6.16.2 -stable review
- Prev by Date: [patch 15/26] wrong error path in dup_fd() leading to oopses in RCU
- Next by Date: [patch 21/26] Fix NULL pointer dereference in node_read_numastat()
- Previous by thread: [patch 11/26] IPOB: Move destructor from neigh->ops to neigh_param
- Next by thread: Re: [stable] Re: [patch 11/26] IPOB: Move destructor from neigh->ops to neigh_param
- Index(es):
Relevant Pages
|