| To: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [6/*] [IPSEC] Fix xfrm[46]_update_pmtu to update top dst |
| From: | Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> |
| Date: | Mon, 7 Mar 2005 21:39:27 +1100 |
| Cc: | kuznet@xxxxxxxxxxxxx, jmorris@xxxxxxxxxx, yoshfuji@xxxxxxxxxxxxxx, netdev@xxxxxxxxxxx |
| In-reply-to: | <20050306213502.1920a99a.davem@xxxxxxxxxxxxx> |
| References: | <20050214221006.GA18415@xxxxxxxxxxxxxxxxxxx> <20050214221200.GA18465@xxxxxxxxxxxxxxxxxxx> <20050214221433.GB18465@xxxxxxxxxxxxxxxxxxx> <20050214221607.GC18465@xxxxxxxxxxxxxxxxxxx> <20050216103744.GA476@xxxxxxxxxxxxxxxxxxx> <20050216110842.GA1024@xxxxxxxxxxxxxxxxxxx> <20050306213502.1920a99a.davem@xxxxxxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.5.6+20040907i |
On Sun, Mar 06, 2005 at 09:35:02PM -0800, David S. Miller wrote: > On Wed, 16 Feb 2005 22:08:42 +1100 > Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx> wrote: > > > Let's also fix IPsec PMTU storage. When we get an MTU update for an > > xfrm_dst, it should be done to the top dst, not the bottom dst. > > > > For example, when we get a need-to-frag message for host C behind > > a our IPsec peer B, we should be updating the dst entry for C and > > not B as we do now. > > > > I've removed the boundary checks since the same checks are done > > in ipv[46]/route.c already. > > Note that sometimes it is better to replace an "unnecessary as > determined by me" boundary check with a BUG() instead of > outright removal. That way you get to test your assertion :) Point taken. However, I must say that using BUG() in these two particular places would be fatal :) -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [9/*] [IPSEC] Check dst validity harder in xfrm_bundle_ok, Herbert Xu |
|---|---|
| Next by Date: | Re: [7/*] [IPSEC] Get metrics for xfrm_dst from top dst, Herbert Xu |
| Previous by Thread: | Re: [6/*] [IPSEC] Fix xfrm[46]_update_pmtu to update top dst, David S. Miller |
| Next by Thread: | Re: [7/*] [IPSEC] Get metrics for xfrm_dst from top dst, David S. Miller |
| Indexes: | [Date] [Thread] [Top] [All Lists] |