From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-14.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 74502C43460 for ; Sun, 9 May 2021 22:11:17 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3909D61004 for ; Sun, 9 May 2021 22:11:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229968AbhEIWKt (ORCPT ); Sun, 9 May 2021 18:10:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45114 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229699AbhEIWKt (ORCPT ); Sun, 9 May 2021 18:10:49 -0400 Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0F36C061573 for ; Sun, 9 May 2021 15:09:45 -0700 (PDT) Received: by mail-oo1-xc2b.google.com with SMTP id s24-20020a4aead80000b02901fec6deb28aso3081828ooh.11 for ; Sun, 09 May 2021 15:09:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=NPeFGBu1iIHqqYN091/XPUGAZew+lI26h0TTRnu9/go=; b=ulegOTxf8AO7SRR6b2mu3KNJzfebI4QUhagz8wlqds9zJ2F40T9BVKA6X+SyclT1Iz NOHdROM77UW46F8dp+Z9LmgBhq+uKq/mbU3QtUCG0v3YYh0dsSUdTxlAXsZHiAGL0BEi yGy0ADemfK6dKEmVIiIGmbDL8hdwughPgzCV9gpsInsfjVEq3bIv5yNAobAuTO0SE288 7ZWbPhOBCCUuGpx5XcjDCqcxLkujPWB15pxM3/LwIklHnlGrR3rxP9b1qwl7nkAuryra 8T5GLuwxs51AtcpnOmfFDiksVURjpnzH0BkkRT/zIY08KH2SM9pFpUyObi6k/Tu9lGLd BmSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=NPeFGBu1iIHqqYN091/XPUGAZew+lI26h0TTRnu9/go=; b=LrxGb1Ya9O945dXVZ99lgwY1kimc9pLYa6Tt4Q/Cd7ZBzqd3r8AaScZyWkf1Vm0PfD I/LrQflosgTa2Re9ScY1Sw7D+CSugJsg7JuGk9WOFhTApDk3HmpJtWrnQa/NE4FQQyZa gh8cfY5572D7DJmWmOK+0Byr9SBKPH0fph+CjH0Lk4M5PR0rT/EBzvARkHGvgODzemWH 1ChDlaea6uLIo0U0+Pk56QMASMCIj6Y/Skgi2QGSoTo9z2hZ8Mr20u0oKeGvfLY8tQZQ +Z/ARHJGjN+Dz+pKwiIY/mo/BKwiVc7oQTpZidCK2DUFOmTxqacjZnvDk0yGlNjQ8G0m BtKA== X-Gm-Message-State: AOAM531yv0Zun8iRdRvnOum3tKne2GFfwAJAaQnl3GdtRVx7ysM1fMxZ OLf2ZlxF23zQ0xUoYUIjeGg= X-Google-Smtp-Source: ABdhPJwCGjHVXCAoyzB9k+9KoNLLs3dw+5rYJxJ0c7XRCCMhYn4mIxaIGgPsRzCaniHuyihKHVWHjw== X-Received: by 2002:a4a:9c8c:: with SMTP id z12mr16619572ooj.3.1620598184970; Sun, 09 May 2021 15:09:44 -0700 (PDT) Received: from Davids-MacBook-Pro.local ([2601:282:800:dc80:5d79:6512:fce6:88aa]) by smtp.googlemail.com with ESMTPSA id z4sm2654032otq.65.2021.05.09.15.09.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 09 May 2021 15:09:44 -0700 (PDT) Subject: Re: [iproute2] tipc: call a sub-routine in separate socket To: Hoang Le , netdev@vger.kernel.org, tipc-discussion@lists.sourceforge.net, jmaloy@redhat.com, maloy@donjonn.com, ying.xue@windriver.com, tung.q.nguyen@dektech.com.au References: <20210506032724.4111-1-hoang.h.le@dektech.com.au> From: David Ahern Message-ID: Date: Sun, 9 May 2021 16:09:42 -0600 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20210506032724.4111-1-hoang.h.le@dektech.com.au> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On 5/5/21 9:27 PM, Hoang Le wrote: > When receiving a result from first query to netlink, we may exec > a another query inside the callback. If calling this sub-routine > in the same socket, it will be discarded the result from previous > exection. > To avoid this we perform a nested query in separate socket. > > Fixes: 202102830663 ("tipc: use the libmnl functions in lib/mnl_utils.c") > Signed-off-by: Hoang Le > Acked-by: Jon Maloy > --- > tipc/bearer.c | 50 +++++++++++++++++++++++++++++++++++++++++++++----- > tipc/link.c | 15 +++++++++++++-- > tipc/socket.c | 17 +++++++++++++++-- > 3 files changed, 73 insertions(+), 9 deletions(-) > applied, thanks