Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1067509pxb; Sun, 11 Apr 2021 06:31:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyAocGuIXz93BGqN3TVOAeI+uUbIs15CqWVQLo4TcQzUAHGkO7E1/a/IqwNI2LiCMfx/1oj X-Received: by 2002:a05:6402:485:: with SMTP id k5mr17747338edv.211.1618147883140; Sun, 11 Apr 2021 06:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618147883; cv=none; d=google.com; s=arc-20160816; b=mIX5xU2iLFI1JGfiMQjTDBq4Q3wzQnGR5TzTz8JK6Gk+XNrq0YA9tpx1uzVGhwB5Eu X9/MAWGWx5+8zRgbanS18M8IK/upQD8I1hDCCQEg8SyIREtgjG2FsF/0orWl23lKqg7o 5q4nng54wa7kuIDDQsgfFV80nTw+z+cV668YWew2rrDomFYpTyvFCiH+x1kUVO4OropH ge0cH3xlHzsuHONWIgEb3JZcoXhxooZTpZgxtvwI38qWJpebb26NMkBeWxXIkAml52Lk qAIUTCa8yQVC4dLVS/9k/V6e/R6PyY8EDDaDl62oottgPuzK02++qdYqkBIvXpsLSY3P fzeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=CGNKBfkqe1NHJXTVIpa+yNRudLH6G9amOLWQznuHrog=; b=Wi4esa74AZgTu0jv8I133KXiNIF1UyhRoB7c2c45t1W5u4HSpsD4hjZq1/Yiq3JzW0 27EyIPyYQzbwx2GFMcCwgdDZirv7TLMF1b+XPE3FNGeb8v6P6zxOCMv3YENhx9IY+dTg Ay65W3K+f0ve7SxFgwR5zJ6RTwXsqZr78RzOaKzLXNfqxz8Ihq/wDmUF8nzS0Q8nybmk jbt6A6hLa1t5o2uPWFjKMmYPQCXhFtSnbVv27XzCCSAdTr6ssaQQzK0aBTwGSvNsJQIU P2r9s8FX9xjTxXHimz19iPO55BeqrOsWM1pgU3yC+dvfI7UxjhlZ6PcsvX3EWfHnhqZQ 1Kkw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dy5si5514401edb.186.2021.04.11.06.30.59; Sun, 11 Apr 2021 06:31:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235530AbhDKLy7 (ORCPT + 99 others); Sun, 11 Apr 2021 07:54:59 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:49642 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232223AbhDKLy7 (ORCPT ); Sun, 11 Apr 2021 07:54:59 -0400 Received: from marcel-macbook.holtmann.net (p5b3d235a.dip0.t-ipconnect.de [91.61.35.90]) by mail.holtmann.org (Postfix) with ESMTPSA id 0E770CECF3; Sun, 11 Apr 2021 14:02:25 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.21\)) Subject: Re: [PATCH v2] Bluetooth: Return whether a connection is outbound From: Marcel Holtmann In-Reply-To: <20210409150356.v2.1.Id5ee0a2edda8f0902498aaeb1b6c78d062579b75@changeid> Date: Sun, 11 Apr 2021 13:54:40 +0200 Cc: linux-bluetooth , CrosBT Upstreaming , Miao-chen Chou , Alain Michaud , "David S. Miller" , Jakub Kicinski , Johan Hedberg , Luiz Augusto von Dentz , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <8E072277-ED4D-408F-BE6B-A3C6E17A7BA6@holtmann.org> References: <20210409150356.v2.1.Id5ee0a2edda8f0902498aaeb1b6c78d062579b75@changeid> To: Yu Liu X-Mailer: Apple Mail (2.3654.60.0.2.21) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Yu, > When an MGMT_EV_DEVICE_CONNECTED event is reported back to the user > space we will set the flags to tell if the established connection is > outbound or not. This is useful for the user space to log better metrics > and error messages. > > Reviewed-by: Miao-chen Chou > Reviewed-by: Alain Michaud > Signed-off-by: Yu Liu > --- > > Changes in v2: > - Defined the bit as MGMT_DEV_FOUND_INITIATED_CONN > > Changes in v1: > - Initial change > > include/net/bluetooth/hci_core.h | 2 +- > include/net/bluetooth/mgmt.h | 1 + > net/bluetooth/hci_event.c | 8 ++++---- > net/bluetooth/l2cap_core.c | 2 +- > net/bluetooth/mgmt.c | 6 +++++- > 5 files changed, 12 insertions(+), 7 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel