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=-13.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 0D748C433F5 for ; Thu, 16 Sep 2021 00:07:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EB15861164 for ; Thu, 16 Sep 2021 00:07:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233095AbhIPAId (ORCPT ); Wed, 15 Sep 2021 20:08:33 -0400 Received: from mga14.intel.com ([192.55.52.115]:51531 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232936AbhIPAId (ORCPT ); Wed, 15 Sep 2021 20:08:33 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10108"; a="222111307" X-IronPort-AV: E=Sophos;i="5.85,296,1624345200"; d="scan'208";a="222111307" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2021 17:07:09 -0700 X-IronPort-AV: E=Sophos;i="5.85,296,1624345200"; d="scan'208";a="610393646" Received: from vyellapa-mobl.amr.corp.intel.com ([10.209.32.240]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Sep 2021 17:07:09 -0700 Message-ID: <9d726b9feca265676ea7b7f5c4cd00df784613f6.camel@linux.intel.com> Subject: Re: [PATCH v4 2/4] Bluetooth: hci_sock: Replace use of memcpy_from_msg with bt_skb_sendmsg From: Tedd Ho-Jeong An To: Luiz Augusto von Dentz , linux-bluetooth@vger.kernel.org Date: Wed, 15 Sep 2021 17:07:07 -0700 In-Reply-To: <20210915233600.4129808-2-luiz.dentz@gmail.com> References: <20210915233600.4129808-1-luiz.dentz@gmail.com> <20210915233600.4129808-2-luiz.dentz@gmail.com> Organization: Intel Corporation Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.36.5 (3.36.5-2.fc32) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Luiz On Wed, 2021-09-15 at 16:35 -0700, Luiz Augusto von Dentz wrote: > From: Luiz Augusto von Dentz > > This makes use of bt_skb_sendmsg instead of allocating a different > buffer to be used with memcpy_from_msg which cause one extra copy. > > Signed-off-by: Luiz Augusto von Dentz > --- > net/bluetooth/hci_sock.c | 100 +++++++++++++++------------------------ > 1 file changed, 37 insertions(+), 63 deletions(-) > Tested-by: Tedd Ho-Jeong An