From: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
To: yzhu1 <Yanjun.Zhu@windriver.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net,
hideaki.yoshifuji@miraclelinux.com, ulf.samuelsson@ericsson.com
Subject: Re: [PATCH net-next 1/2] net: neighbour: Add mcast_resolicit to configure the number of multicast resolicitations in PROBE state.
Date: Mon, 30 Mar 2015 09:04:50 +0900 [thread overview]
Message-ID: <55189322.1040602@miraclelinux.com> (raw)
In-Reply-To: <550F7A33.1000708@windriver.com>
Hi,
yzhu1 wrote:
>> diff --git a/net/core/neighbour.c b/net/core/neighbour.c
>> index 0e8b32e..3de6542 100644
>> --- a/net/core/neighbour.c
>> +++ b/net/core/neighbour.c
>> @@ -817,10 +817,9 @@ out:
>> static __inline__ int neigh_max_probes(struct neighbour *n)
>> {
>> struct neigh_parms *p = n->parms;
>> - int max_probes = NEIGH_VAR(p, UCAST_PROBES) + NEIGH_VAR(p, APP_PROBES);
>> - if (!(n->nud_state & NUD_PROBE))
>> - max_probes += NEIGH_VAR(p, MCAST_PROBES);
>> - return max_probes;
>> + return NEIGH_VAR(p, UCAST_PROBES) + NEIGH_VAR(p, APP_PROBES) +
>> + (n->nud_state & NUD_PROBE ? NEIGH_VAR(p, MCAST_REPROBES) :
>> + NEIGH_VAR(p, MCAST_PROBES));
>> }
> Hi, YOSHIFUJI Hideaki
>
> In my opinion, maybe the above should be implemented in ipv4 source code since
> this problem is only related with ipv4. But the neigh_max_probes is called in ipv6.
It is intentionally designed so that it could be used for other
protocols as well as IPv4. For example, if the knob for IPv6
is set to non-zero, it becomes "non-compliant", but it works.
--
Hideaki Yoshifuji <hideaki.yoshifuji@miraclelinux.com>
Technical Division, MIRACLE LINUX CORPORATION
next prev parent reply other threads:[~2015-03-30 0:04 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-19 13:41 [PATCH net-next 1/2] net: neighbour: Add mcast_resolicit to configure the number of multicast resolicitations in PROBE state YOSHIFUJI Hideaki
2015-03-19 14:46 ` Ulf Samuelsson
2015-03-19 18:30 ` David Miller
2015-03-21 1:47 ` David Miller
2015-03-23 2:28 ` yzhu1
2015-03-30 0:04 ` YOSHIFUJI Hideaki [this message]
2015-03-27 9:42 ` Ulf Samuelsson
2015-03-29 23:49 ` YOSHIFUJI Hideaki
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=55189322.1040602@miraclelinux.com \
--to=hideaki.yoshifuji@miraclelinux.com \
--cc=Yanjun.Zhu@windriver.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=ulf.samuelsson@ericsson.com \
/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;
as well as URLs for NNTP newsgroup(s).