Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp4836131ybg; Tue, 29 Oct 2019 13:09:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTVKnjwTgwnCf6iGlVxELIsFdtdMVM+2TUqHfILi4Ei7rceEovbl6dcQefTyP6XuHz9ZlZ X-Received: by 2002:a17:906:1611:: with SMTP id m17mr5360618ejd.281.1572379748450; Tue, 29 Oct 2019 13:09:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572379748; cv=none; d=google.com; s=arc-20160816; b=m4upNQ9M3diyapdaJh5Fsx6MOFNEIb4CFgSHsILFH3Ou2/QAWAkmPX1dPvKnWzLWdK 0kU5ELXVj0ezUsOFKtGUcmT6JOTdm+ynbjNJXTsmCvWnfag+axkInBqdxP4bqBoJjwcH qLg6HYH9fs14vVJ9HVOsSBTqswAKRvb00qWnQOhaOiCsU9swJ0GfOESvW6CwgRguGP/E j7iIVwAcgOAd4zJLWKm/xjn+2O2hnnafvi/oXzBNH7NFL8i4OlidAOKwOsObVjgC0rno opc+6c0uBjZutVuRbB+GIlAutHqsTp7PAyP05Iyfa9+TCc+UWXPpOEmleYHhissazg/p h98Q== 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=H7Ti3+3tmv66owZ7qBKTGP/26K30M0oQKayUEbDIa+Y=; b=GlLqJhypBK0dj2Sau0C1pfy6ke0h7N0osXduY2xRnktZi2TLnZGqaVt9CFnqN2UD7h gd7tQjWQjKV+4Zoc7rFq5K+CQ/4NHClZNifXN3rORGlX0cI0QHaWNqTc2XpPvO9ZwNQG ZbEI+n52kPwyORviVrLBQZ2YlWbE+ZvwDbDg628nb1HnBuXA/JM+dFeVH90v8JwLQfyG t78+ueVnY6v+g8IXWhBBJOrO6exyory1bgSBZRyF5+J2erBN+q+JR4B3A581d1H3yr4l Io8FDQUjzxZMYvBsQdtO3+aLYqGZHducSdKRaNywA768K9Hwu0X2wy0ynUwCimsKDBUD ZWhA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=KJFXwM5J; 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 t17si6739000edc.426.2019.10.29.13.08.44; Tue, 29 Oct 2019 13:09:08 -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=KJFXwM5J; 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 S1733256AbfJ2Tp6 (ORCPT + 99 others); Tue, 29 Oct 2019 15:45:58 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:39205 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728686AbfJ2Tp5 (ORCPT ); Tue, 29 Oct 2019 15:45:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572378356; 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=H7Ti3+3tmv66owZ7qBKTGP/26K30M0oQKayUEbDIa+Y=; b=KJFXwM5JwAOn6np+DvwZHauSVNqZTi/WJ/89N60s7C1axG7ydquLTcK+GC0RjKBnuR0nn8 HNlpjVYHprOdjqZ/4yQ0I9U4fi3AYt93rswOpzy41/CbI1MUfjC1plCA7ZtDkMsZnZuKmC 2CTNItSQH7CjFGs8Argk819nVamZPOg= Received: from mail-lj1-f197.google.com (mail-lj1-f197.google.com [209.85.208.197]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-301-oKvREsjXOR6byGRQFufPIA-1; Tue, 29 Oct 2019 15:45:55 -0400 Received: by mail-lj1-f197.google.com with SMTP id g28so3469196ljl.10 for ; Tue, 29 Oct 2019 12:45:54 -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=D+ECcjymISpeDMuJTnhQofeU33ZNJr8YyX1nUeLIK0Y=; b=AcR1gZGcFU3OwCH1JLFeXjDx8V/sOWT7pgy2YGBByHgMPY0sLTfFB6W76r+XW61n8a XYBmTLtxSdEAZxiY5xwkhVrYz2lG90mLqFRu6eGxrOftrfZYFSZBy8PO3a1DMtsE1TLf 5KGqDnhmyYYiTMavnZ60K0QqcsznhUE+k7oU1JWgePj/AUgGojsgQRFPuOiwv8Qvuh70 rYD8NXJDJgIt51COalCQ0oYByPpiDMRO9+kXnHRxgcpzAQfBazgeaj6G6nCCopoZdCy7 QN5jEocu8ja+T8+PV90NquPdMoYUyvjY2+NJ18cNg7po1jebiEP+Fu13XE5n0ZfWTJOh FS4Q== X-Gm-Message-State: APjAAAXkKiguX4Rtre9hAMo1/CvcOZz8LHmam3ddFxHc4tT3gkmpxDW1 0Zt5yhIUvblpD9BHm8OwpzCF4rKW+Rt9srxmePiqeiXpdIDfGl73j29mNkMuGEo5trdUo892+Lu hazzqIxfF3/ubjjOsCkMv1T/1NOOHggsBPGrO6tSj X-Received: by 2002:a2e:481:: with SMTP id a1mr3892365ljf.209.1572378352478; Tue, 29 Oct 2019 12:45:52 -0700 (PDT) X-Received: by 2002:a2e:481:: with SMTP id a1mr3892351ljf.209.1572378352307; Tue, 29 Oct 2019 12:45:52 -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> In-Reply-To: From: Matteo Croce Date: Tue, 29 Oct 2019 20:45:16 +0100 Message-ID: Subject: Re: [PATCH net-next v2 4/4] bonding: balance ICMP echoes in layer3+4 mode To: Nikolay Aleksandrov Cc: netdev , Jay Vosburgh , Veaceslav Falico , Andy Gospodarek , "David S . Miller" , Stanislav Fomichev , Daniel Borkmann , Song Liu , Alexei Starovoitov , Paul Blakey , LKML X-MC-Unique: oKvREsjXOR6byGRQFufPIA-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 Tue, Oct 29, 2019 at 7:41 PM Nikolay Aleksandrov wrote: > > On 29/10/2019 20:35, Nikolay Aleksandrov wrote: > > Hi Matteo, > > Wouldn't it be more useful and simpler to use some field to choose the = slave (override the hash > > completely) in a deterministic way from user-space ? > > For example the mark can be interpreted as a slave id in the bonding (s= hould be > > optional, to avoid breaking existing setups). ping already supports -m = and > > anything else can set it, this way it can be used to do monitoring for = a specific > > slave with any protocol and would be a much simpler change. > > User-space can then implement any logic for the monitoring case and as = a minor bonus > > can monitor the slaves in parallel. And the opposite as well - if peopl= e don't want > > these balanced for some reason, they wouldn't enable it. > > > > Ooh I just noticed you'd like to balance replies as well. Nevermind > Also, the bonding could be in a router in the middle so no way to read the = mark. --=20 Matteo Croce per aspera ad upstream