Received: by 2002:a25:ef43:0:0:0:0:0 with SMTP id w3csp428641ybm; Thu, 28 May 2020 06:29:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZ3iUhQuScjv+TV88TTMxRhoLgL6pBtvWXFs9J/lg0Iqaazz+hI3TVqm4iXWowB6q17nKY X-Received: by 2002:aa7:d3d6:: with SMTP id o22mr3163555edr.359.1590672597445; Thu, 28 May 2020 06:29:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590672597; cv=none; d=google.com; s=arc-20160816; b=KoUXPZ4ai6uCTQgfI/yDsDCpnWaqwqSFMOFTTLeazO2vGN4OyIQ5iPus8ZGJZbIpbV 2R9CChZ7Ujx8n+pipBoyhb7FPwn0DkfJP4FVXypR38SPIMPrKpaM2f8jo9d509U1/oLT trJ3v/YWovqC9kVwTzo5VjS6pTGfNPkjGzqWz0T1lpyPV0+rpwCvZ0i4Ad33u2Kx0vfG oQJQz+DNytTs5hfIlugyhrh3XlNu1bdCkaW6iBovSADmnMF+sby8OM9F8JKLdV1OK2U5 b0/rXZPUW810eX3N5xnGsZXJl9MVTDtNtZ3+XyF0xWOfsVeBaq2gnYjAYg7podsOQse8 /duQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=scgdFkqrA9ipif8zfFAOgiEAeLrFRRq77UViCEgJYhQ=; b=oQ3DLaaHEMawOzsS/hw2Cm+JSBZQcBYj3rwIA3S4p1kxIh2ziFwcZdw/QQRVwX3b5+ Fo4Cq4GJ935Ib32Ky8qdfjxVlunFIAVRSsLHaqmvNmgANEsisbVdA2Pd7cElItmGDVRR RoN/Pxu4j3LKnwEMoPOmAHLEVlcdGb5iihB8F7NKVavVdJLzKd+UKMFD92efvY+yk+Wx 4RCEf1mJMEFz9tSJcKklfQl6A6PVF3RrDfHa3FY0gvqos6dLb0W2IpiYlX8mb2Vs5Oh9 Hbtnx0vNvAAGjkgu8Ltg8QEv4/YGlnSHL/2pi2BZ+Nq+bpD4WPfYlQDPUMRiGz0COqPp xi/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=h7A4bd5I; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x26si696786ejc.746.2020.05.28.06.29.30; Thu, 28 May 2020 06:29:57 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=h7A4bd5I; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390404AbgE1N2u (ORCPT + 99 others); Thu, 28 May 2020 09:28:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60682 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390389AbgE1N2F (ORCPT ); Thu, 28 May 2020 09:28:05 -0400 Received: from mail-lf1-x144.google.com (mail-lf1-x144.google.com [IPv6:2a00:1450:4864:20::144]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9BD36C05BD1E for ; Thu, 28 May 2020 06:28:04 -0700 (PDT) Received: by mail-lf1-x144.google.com with SMTP id z206so12924368lfc.6 for ; Thu, 28 May 2020 06:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=scgdFkqrA9ipif8zfFAOgiEAeLrFRRq77UViCEgJYhQ=; b=h7A4bd5ICjLIQNoqkc2kTYRm0GGVAuLAjpjqR0mvwJ3pu3AHYLFf+OLYBQCZJZc93b WqKDDnxUlWCbcOw1OxmNILyLjqSsHmmDBF1nI9CUEQal823GmrNRcC77cS6YnJ5yxY7W ucGwQU0xTxhX/cuEuTFjVpEoXnITkU8MpYPKyDkN4SyXx4Tvg7pAnn8PbI95Xmv3CfW/ qYmCJ+Vu2Alo/2Hjrq79Lx0UMUscEEWQpkSzReiG+7xSP3Dbi2LKc7B0kREN/Wxtzjcy +LphpvXzLMor2fbWSTZ7TLI9sDveY01GZQPpLXYbpD1OrGs4LNIWXMP5bmn/u+6IazZt eR4Q== 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=scgdFkqrA9ipif8zfFAOgiEAeLrFRRq77UViCEgJYhQ=; b=OaLVGMO8DKullsjAd95bIkzwIPnMLG7wCudfLc3QIUWtL8Rr0SCcc2L312L0gKehZL sGsewmdaTAtMVLjKWYFKVgrFAUIkqQTHCyVD68STkkagAmnL+wAYINB8M23lphEHY9ra CoAIRlrZgPZR/4f6v5SlOii8czLJP6CvlJVQgTCM7DH9bAUvkQOvoBMpXHgB+wF6OMMk d4j3JgoT1ybLSKqBUahjE6pqZEl/ygNSZE0SLEZMk/yo+cNLynFjVQRku6VrGkuhQiWh vZOpgZ3IJ0wIkYW0PINYxZKuVkD+qo0xCGC/szgSscpXLyfHKDSb9Fv04I4zKYCx+Qvc 9Gsw== X-Gm-Message-State: AOAM53390n8o6CjJjh3WbuYM3yUfnvGVMsl5VYQmDF1zivt/Q3wjJVLw lwXkwXH3BTnKOkI7IYh6WNhW5XQ3B4R2oJshfGFKaA== X-Received: by 2002:a19:c016:: with SMTP id q22mr1687959lff.191.1590672482850; Thu, 28 May 2020 06:28:02 -0700 (PDT) MIME-Version: 1.0 References: <20200525184343.8532-1-alainm@chromium.org> <31E0FE7F-34A6-4819-AE06-C9F0B49D7C11@holtmann.org> In-Reply-To: <31E0FE7F-34A6-4819-AE06-C9F0B49D7C11@holtmann.org> From: Alain Michaud Date: Thu, 28 May 2020 09:27:51 -0400 Message-ID: Subject: Re: [PATCH v2] sco:Add support for BT_PKT_STATUS CMSG data To: Marcel Holtmann Cc: Alain Michaud , BlueZ Content-Type: text/plain; charset="UTF-8" Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org On Thu, May 28, 2020 at 4:26 AM Marcel Holtmann wrote: > > Hi Alain, > > > This change adds support for reporting the BT_PKT_STATUS to the socket > > CMSG data to allow the implementation of a packet loss correction on > > erronous data received on the SCO socket. > > > > The patch was partially developed by Marcel Holtmann and validated by > > Hsin-yu Chao > > > > Signed-off-by: Alain Michaud > > > > --- > > > > include/net/bluetooth/bluetooth.h | 8 ++++++++ > > include/net/bluetooth/sco.h | 3 +++ > > net/bluetooth/af_bluetooth.c | 3 +++ > > net/bluetooth/hci_core.c | 1 + > > net/bluetooth/sco.c | 28 ++++++++++++++++++++++++++++ > > 5 files changed, 43 insertions(+) > > > > diff --git a/include/net/bluetooth/bluetooth.h b/include/net/bluetooth/bluetooth.h > > index 3fa7b1e3c5d9..85e6c5754448 100644 > > --- a/include/net/bluetooth/bluetooth.h > > +++ b/include/net/bluetooth/bluetooth.h > > @@ -147,6 +147,8 @@ struct bt_voice { > > #define BT_MODE_LE_FLOWCTL 0x03 > > #define BT_MODE_EXT_FLOWCTL 0x04 > > > > +#define BT_PKT_STATUS 16 > > + > > we need to agree on if this is an int or u8 value. Otherwise this looks good. Since doing anything beyond a u8 value would require a core spec change and likely a new definition for what the packet flags are, I think it is likely safe to keep as u8. Do you have a different perspective? > > Regards > > Marcel >