Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp70747pxk; Fri, 11 Sep 2020 00:09:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxq6qXahxR/iI+eN2z9BT8HC3OYXKZIKkFysQ4L/2tZxUcpxcUxkXE0EhPBkd0JbwFfjsqj X-Received: by 2002:a17:906:fcc7:: with SMTP id qx7mr778718ejb.254.1599808159265; Fri, 11 Sep 2020 00:09:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599808159; cv=none; d=google.com; s=arc-20160816; b=PNa8z5kKY1rR4pHFaLmD4O1Q9NWfJjzXJTdBl3NCLnP3r6CgY+w3X+d+acOz8ee0lz 9MhpXWm4lWN4TOfEgJTk8Hgq8lzo1H9VbLguiCG9CxvUu2ZS4iiOVcjDaomr0Rqx4cO0 V5lPVsV3PJOWpAA4lUhBS+y5xHpUmTaoRxMmOALpZDwWARJBRA4cwMOsgELUYikryb9b a819SitgW/vdykT1HZ5TEFJqwVEY6VI+DXqsjslcMBIwYsnQ3vJr8zDCQhhVwSATDQmP byluFuX6Wr2mQfdzG3rw/VZGY7m0RPfIisGX9lA5i/tk0xY4qDW/ETi3wK+OlPyQq0wS 7T3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=purz4UHS0jMxSNglxPBqxh4KpNigH6Xp5etVgKYjZfE=; b=ZFLD5u6BqSYftO/pFkiwWX5o+2EpIYR9OwutAK0cL8KrGlJYg/z7A2HlQSuYVJy0+f xhcURX/FuLjZQ3lftgw3FI770eKjx6dRxHrh3m+mEbtKNkkN6NnLtZpQE4ox7ZIxECPY MMUpcgzGRc7d1vRVk3/Jn4+r6J7RA07U3g7M7YUJWjAcpHwrKZz7C1c+k4P26Jsd0htM MxwlVvErYl4Fs+D/KGQEyp2bKN3B5RovwDVjM+pdeWaevmarAMBzKuIYg8XF8mxgwAel oq4gFm7eew331JNxY2obW4MqxO1Qsi8VVGAuapuJvLGAIPGZxLHP51qQNZtLl70o5Ys9 qJDg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-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 yd22si837205ejb.346.2020.09.11.00.08.54; Fri, 11 Sep 2020 00:09:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-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-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725554AbgIKHIt (ORCPT + 99 others); Fri, 11 Sep 2020 03:08:49 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:42702 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725468AbgIKHIt (ORCPT ); Fri, 11 Sep 2020 03:08:49 -0400 Received: from marcel-macbook.fritz.box (p4ff9f430.dip0.t-ipconnect.de [79.249.244.48]) by mail.holtmann.org (Postfix) with ESMTPSA id CBB8FCED19; Fri, 11 Sep 2020 09:15:42 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: [PATCH v3 2/2] Bluetooth: sco: new getsockopt options BT_SNDMTU/BT_RCVMTU From: Marcel Holtmann In-Reply-To: <20200910140342.v3.2.I03247d3813c6dcbcdbeab26d068f9fd765edb1f5@changeid> Date: Fri, 11 Sep 2020 09:08:46 +0200 Cc: linux-bluetooth , Luiz Augusto von Dentz , =?utf-8?Q?Pali_Roh=C3=A1r?= , chromeos-bluetooth-upstreaming@chromium.org, josephsih@google.com, Alain Michaud , Abhishek Pandit-Subedi , "David S. Miller" , Jakub Kicinski , Johan Hedberg , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Transfer-Encoding: 7bit Message-Id: <758FB16C-5210-4790-8B54-6BA400CB208D@holtmann.org> References: <20200910060403.144524-1-josephsih@chromium.org> <20200910140342.v3.2.I03247d3813c6dcbcdbeab26d068f9fd765edb1f5@changeid> To: Joseph Hwang X-Mailer: Apple Mail (2.3608.120.23.2.1) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Joseph, > This patch defines new getsockopt options BT_SNDMTU/BT_RCVMTU > for SCO socket to be compatible with other bluetooth sockets. > These new options return the same value as option SCO_OPTIONS > which is already present on existing kernels. > > Reviewed-by: Alain Michaud > Reviewed-by: Abhishek Pandit-Subedi > Signed-off-by: Joseph Hwang > --- > > Changes in v3: > - Fixed the commit message. > > Changes in v2: > - Used BT_SNDMTU/BT_RCVMTU instead of creating a new opt name. > - Used the existing conn->mtu instead of creating a new member > in struct sco_pinfo. > - Noted that the old SCO_OPTIONS in sco_sock_getsockopt_old() > would just work as it uses sco_pi(sk)->conn->mtu. > > net/bluetooth/sco.c | 6 ++++++ > 1 file changed, 6 insertions(+) patch has been applied to bluetooth-next tree. Regards Marcel