From: YueHaibing <yuehaibing@huawei.com>
To: Julian Anastasov <ja@ssi.bg>, Eric Dumazet <eric.dumazet@gmail.com>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>,
<davem@davemloft.net>, <netdev@vger.kernel.org>
Subject: Re: net/arp: ARP cache aging failed.
Date: Thu, 24 Nov 2016 17:06:04 +0800 [thread overview]
Message-ID: <c82b7b44-c0ad-9ee7-1114-3eae3b5cf75a@huawei.com> (raw)
In-Reply-To: <alpine.LFD.2.11.1611240931560.1685@ja.home.ssi.bg>
On 2016/11/24 15:51, Julian Anastasov wrote:
>
> Hello,
>
> On Wed, 23 Nov 2016, Eric Dumazet wrote:
>
>> On Wed, 2016-11-23 at 15:37 +0100, Hannes Frederic Sowa wrote:
>>
>>> Irregardless about the question if bonding should keep the MAC address
>>> alive, a MAC address can certainly change below a TCP connection.
>>
>> Of course ;)
>>
I configured bonding fail_over_mac=1 ,so the bonding MAC always be the MAC
address of the currently active slave.
>>>
>>> dst_entry is 1:n to neigh_entry and as such we can end up confirming an
>>> aging neighbor while sending a reply with dst->pending_confirm set while
>>> the confirming packet actually came from a different neighbor.
>>>
>>> I agree with Julian, pending_confirm became useless in this way.
>>
>> Let's kill it then ;)
>
> It works for traffic via gateway. I now see that
> we can even avoid write in dst_confirm:
>
> if (!dst->pending_confirm)
> dst->pending_confirm = 1;
>
> because it is called by non-dup TCP ACKs.
>
> But for traffic to hosts on LAN we need different solution,
> i.e. for cached dsts with rt_gateway = 0 (last entry below).
>
> rt_uses_gateway rt_gateway DST_NOCACHE Description
> ====================================================================
> 1 nh_gw ANY Traffic via gateway
> 0 LAN_host 1 FLOWI_FLAG_KNOWN_NH (nexthop
> set by IPVS, hdrincl, xt_TEE)
> 0 0 0 1 dst for many subnet hosts
>
> Regards
>
> --
> Julian Anastasov <ja@ssi.bg>
>
> .
>
As above,Is there a plan to fix the problem ? Should we just not call dst_confirm
when in the case rt->rt_uses_gateway/DST_NOCACHE?
next prev parent reply other threads:[~2016-11-24 9:08 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-23 1:16 net/arp: ARP cache aging failed yuehaibing
2016-11-23 8:33 ` Julian Anastasov
2016-11-23 12:05 ` Eric Dumazet
2016-11-23 14:37 ` Hannes Frederic Sowa
2016-11-23 23:49 ` Eric Dumazet
2016-11-24 7:51 ` Julian Anastasov
2016-11-24 9:06 ` YueHaibing [this message]
2016-11-24 12:28 ` Hannes Frederic Sowa
2016-11-25 8:18 ` Julian Anastasov
2016-11-25 13:53 ` Hannes Frederic Sowa
2016-11-25 20:40 ` Julian Anastasov
2016-12-14 10:54 ` YueHaibing
2016-12-14 12:56 ` [PATCH] arp: do neigh confirm based on sk arg kbuild test robot
2016-12-14 13:37 ` kbuild test robot
2016-12-14 20:15 ` net/arp: ARP cache aging failed Julian Anastasov
2016-12-15 2:58 ` YueHaibing
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=c82b7b44-c0ad-9ee7-1114-3eae3b5cf75a@huawei.com \
--to=yuehaibing@huawei.com \
--cc=davem@davemloft.net \
--cc=eric.dumazet@gmail.com \
--cc=hannes@stressinduktion.org \
--cc=ja@ssi.bg \
--cc=netdev@vger.kernel.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