From: Herbert Xu <herbert@gondor.apana.org.au>
To: "Michael S. Tsirkin" <mst@mellanox.co.il>
Cc: netdev@vger.kernel.org, davem@davemloft.net,
openib-general@openib.org, linux-kernel@vger.kernel.org
Subject: Re: RFC: struct netdevice changes for IPoIB UC support
Date: Wed, 21 Sep 2005 18:15:23 +1000 [thread overview]
Message-ID: <E1EHzlD-0004eE-00@gondolin.me.apana.org.au> (raw)
In-Reply-To: <20050921080230.GE18449@mellanox.co.il>
Michael S. Tsirkin <mst@mellanox.co.il> wrote:
>
> Please comment on this approach: does it make sense to you guys?
> Please Cc me directly, I'm not on the list.
Sorry, this doesn't make sense.
> static inline u32 dst_mtu(const struct dst_entry *dst)
> {
> - u32 mtu = dst_metric(dst, RTAX_MTU);
> + u32 mtu;
> + if (dst->dev && dst->dev->get_mtu)
> + mtu = dst->dev->get_mtu(dst->dev, dst->neighbour,
> + dst_metric(dst, RTAX_MTU));
> + else
> + mtu = dst_metric(dst, RTAX_MTU);
>From this I gather that for a given dst the MTU is actually constant.
That is, it only varies across different dst's.
In this case you should calculate the correct MTU when the dst is
created rather than here.
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
prev parent reply other threads:[~2005-09-21 8:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-21 8:02 RFC: struct netdevice changes for IPoIB UC support Michael S. Tsirkin
2005-09-21 8:15 ` Herbert Xu [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=E1EHzlD-0004eE-00@gondolin.me.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@mellanox.co.il \
--cc=netdev@vger.kernel.org \
--cc=openib-general@openib.org \
/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