[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20191116.130312.1715585977428653229.davem@davemloft.net>
Date: Sat, 16 Nov 2019 13:03:12 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: mcroce@...hat.com
Cc: netdev@...r.kernel.org, j.vosburgh@...il.com, vfalico@...il.com,
andy@...yhouse.net, linux-kernel@...r.kernel.org
Subject: Re: [PATCH net-next] bonding: symmetric ICMP transmit
From: Matteo Croce <mcroce@...hat.com>
Date: Fri, 15 Nov 2019 12:10:37 +0100
> A bonding with layer2+3 or layer3+4 hashing uses the IP addresses and the ports
> to balance packets between slaves. With some network errors, we receive an ICMP
> error packet by the remote host or a router. If sent by a router, the source IP
> can differ from the remote host one. Additionally the ICMP protocol has no port
> numbers, so a layer3+4 bonding will get a different hash than the previous one.
> These two conditions could let the packet go through a different interface than
> the other packets of the same flow:
...
> An ICMP error packet contains the header of the packet which caused the network
> error, so inspect it and match the flow against it, so we can send the ICMP via
> the same interface of the previous packet in the flow.
> Move the IP and port dissect code into a generic function bond_flow_ip() and if
> we are dissecting an ICMP error packet, call it again with the adjusted offset.
...
> Signed-off-by: Matteo Croce <mcroce@...hat.com>
Applied, thanks.
Powered by blists - more mailing lists