Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp174036ybx; Tue, 29 Oct 2019 16:23:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxeX7PkjDDq/oJO/RGHxgre3x6KDcWmmPLzGTwF+ilaZiBtSelHQPbz3vaB25w2QdY99xg X-Received: by 2002:a05:6402:1006:: with SMTP id c6mr28848037edu.2.1572391383961; Tue, 29 Oct 2019 16:23:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572391383; cv=none; d=google.com; s=arc-20160816; b=haNRYGPZCOhIn9MtVgnPaGoKRapV9qxkY69fee3hWbw0F5KLhRdeG1zGcCCcmLy9X7 fA29tOoqJZp+vbZoi3urporATI+qmyLQkxINELywpxeabC95i4QtBS1uf9t3Gt3Sw0Qo xQIhGgmsOMVhC7FHaNCCCe/mJbr1MIVUPwoJvar1/nO98aS4Pm+v9/oFFrAiLypMHRS8 cyY/jfYOjHnN14HWGDZjUaNxUINW1ysZ9M0Tn3JSVBQKACBYVdteo2v1YW5sKkpKK8jk 0EUmOc6xZIF/xh3xGbfZ1lXGQoeRjLh3FboPd4I1nk6HOfEogXixV/Lmm59V2Jz5PNfL VhGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=zYrZ9qZ2zWpBH4PiUs3Dx0qyoqOMS6/RWHc3sb1XR3Y=; b=OsS5J0NK6vEulGw1fkIEBJ4Zx5Dt2XnEJP5g5MbEQdYfe14rxdO/0yrZKUp1rNMCvo lvEzMcRopwwoFQLLI069bs4QGYuK/H2ad7mOwX7VuqVBlIaEEQYWG/Ee3ONeDzCayNMX XYC/eR9ZWMOFH62mHcsWw9pjUBc/fvcetGg/swstC5NRv0rIr+nk/IYVc2LbqDqo+ojo uYxsKwP6wlIMQhDFCyA7uUBBjVDU8Ck3MsMFpewGLJWwCC737JJTY47g3sjwziG7iUdy gK78eIYfg/jefTAGqC4NfNgZNoalt8Kdp1h2rPFxa/YNIiB8M7OyX/PJWD4+j5OA2aE0 BH7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hhwS+uYo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f6si55433ejl.293.2019.10.29.16.22.40; Tue, 29 Oct 2019 16:23:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hhwS+uYo; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726585AbfJ2XUe (ORCPT + 99 others); Tue, 29 Oct 2019 19:20:34 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:24583 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725951AbfJ2XUe (ORCPT ); Tue, 29 Oct 2019 19:20:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572391233; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zYrZ9qZ2zWpBH4PiUs3Dx0qyoqOMS6/RWHc3sb1XR3Y=; b=hhwS+uYo03FWE0bhR8js0IGBepkxKufpvR/joa2FyYZ6pXnDC47UKi0GHsQpoYz+m1UMCc rZNdC95SXu6YZzIsxyuPVpDA4rlVBbtVHxhgNoGW3GCEz4Gl+0QMkGD3eEnrRTFYOwlQkq wWor/0+34U6SdM+ruMJYnPx//iJO8Xs= Received: from mail-ot1-f69.google.com (mail-ot1-f69.google.com [209.85.210.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-147-BhkU4ZsiPnW_tDWi1rsovA-1; Tue, 29 Oct 2019 19:20:29 -0400 Received: by mail-ot1-f69.google.com with SMTP id z39so143065ota.7 for ; Tue, 29 Oct 2019 16:20:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y8T+eUd2N5DPhgiGOedRryry9FtRQaSq7h4Wr10JfYs=; b=SCPKtQB+hk08DqqQHtH6vL3I8HRsNiQAYk1tAIj5c2IO29g7hu4YFzhjZdXytK/eBX Mt1Wf/1k6CKnUWWbZ80ztttKCRe9IEm8nPrVg7L8OqQZc9q+7YyQ/kNU617gXlNPQ7wQ 1/gKdE/HTy6Tl+32XsoHvIL94U0P1wqjUsbok6/CxXWrP9tfOjP84lEa7kF/QpVATF6v QJqnsWzkcD/lPlK2iOILqUapIY3iY8/0Fg2xCBH6lMZgCePyaI3QfM9cl8qOpPE1b69N Lib6rBI/OrhImCfOfOHvtlLrAkRggZlC3piRjVqJoh277ZKW8iZnWD/pmK66cAuZMzH6 22nw== X-Gm-Message-State: APjAAAUJDGOqPk48DZAUxZKNjorPEvUIrsUa6vymwCxwUHXlDbfW0gkI d9k1zIIKj2XfgOOFxbe1zB+/EXm3VyJKNCFvl05AMsyuHROHDNdf1F2JUGPq6Z0iyq67fsKtSkm eU4vV0eE5SRCChoTIFGgST1I/L1ZMOz71t97CFBuR X-Received: by 2002:a9d:ef0:: with SMTP id 103mr19811706otj.2.1572391228948; Tue, 29 Oct 2019 16:20:28 -0700 (PDT) X-Received: by 2002:a9d:ef0:: with SMTP id 103mr19811680otj.2.1572391228689; Tue, 29 Oct 2019 16:20:28 -0700 (PDT) MIME-Version: 1.0 References: <20191029135053.10055-1-mcroce@redhat.com> <20191029135053.10055-5-mcroce@redhat.com> <5be14e4e-807f-486d-d11a-3113901e72fe@cumulusnetworks.com> <576a4a96-861b-6a86-b059-6621a22d191c@gmail.com> <43abab53-1425-0bff-9f79-50bd47567605@gmail.com> In-Reply-To: <43abab53-1425-0bff-9f79-50bd47567605@gmail.com> From: Matteo Croce Date: Wed, 30 Oct 2019 00:19:52 +0100 Message-ID: Subject: Re: [PATCH net-next v2 4/4] bonding: balance ICMP echoes in layer3+4 mode To: Eric Dumazet Cc: Nikolay Aleksandrov , netdev , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , "David S . Miller" , Stanislav Fomichev , Daniel Borkmann , Song Liu , Alexei Starovoitov , Paul Blakey , LKML X-MC-Unique: BhkU4ZsiPnW_tDWi1rsovA-1 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 30, 2019 at 12:14 AM Eric Dumazet wrot= e: > > > > On 10/29/19 4:03 PM, Matteo Croce wrote: > > > Hi Eric, > > > > this would work for locally generated echoes, but what about forwarded = packets? > > The point behind my changeset is to provide consistent results within > > a session by using the same path for request and response, > > but avoid all sessions flowing to the same path. > > This should resemble what happens with TCP and UDP: different > > connections, different port, probably a different path. And by doing > > this in the flow dissector, other applications could benefit it. > > In principle it is fine, but I was not sure of overall impact of your cha= nge > on performance for 99.9% of packets that are not ICMP :) > Good point. I didn't measure it (I will) but all the code additions are under some if (proto =3D=3D ICMP) or similar. My guess is that performance shouldn't change for non ICMP traffic, but I'm curious to test it. --=20 Matteo Croce per aspera ad upstream