Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp7126494ioo; Thu, 2 Jun 2022 23:34:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwTcFbn0oBy8D0h3bPy1cuRMYdrwzsCBap6ugVsV+dc+bf+h6EMz9CgcswLFZuyV3vTKyxm X-Received: by 2002:a05:6402:50ca:b0:42b:e01:a199 with SMTP id h10-20020a05640250ca00b0042b0e01a199mr9111504edb.300.1654238081133; Thu, 02 Jun 2022 23:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654238081; cv=none; d=google.com; s=arc-20160816; b=QLlmY4uQThsnBzPUBikt7QOQ5u06U81LqdVKoZ+SxBKbJl6HYS8dAEb/YCiwAOrPI7 qbW8vKpfGJOzX9PIjpbm00ysluV2xY8hlUzNPWZaq25wgzq0E0BlZYZKlpqe/Xvm14bM 5QfFcQrhPb6i6roU61LaicP4dazLE6qhldqRTNRxH4h/OmU6FuOyTBaTagQGJDB0nJbT cg/lsKCF43nyqEDaXjCSDDuJGHzYOcGgKui+WAil5T/tWrkAmW6sQuRvvKa5cL4AuLTA 2Vi4a466CDgrsrBlCLI9R7O8cofuBNO5nwKPasNDX7TzLGvoXs9VWN/p6/0GvJL10eT3 awEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/cd1/zrtMFHcKeqGlj0MZxeZZZ/9ysQ0FI/8p6sv4bc=; b=TvgUKLGquLbqVMcjxxEabNHF6aLU8jBocF+gFGctPTe+7/7kCRoPOyKZTFqJ3I4Rag 3EG/QmlF6+XeM5bxvT/N0QY9NbJg6huaPwd/z9vOs1c6/EWnrZB9s23yQYIpJKl6mkiG gpI7OPJ9ob6ihVvL8mKRJlo1z8yozCzaqQAO80de6EdRnwWRXu4fTDkjMmkmsnYaOCIh sDG55pKCp17ifH8sWzhl/sv+sBXsDfLkM44EZfCSD0hW8/5kexPNUvTEMtSr/gUukTVA nsDCtl/5FcHU4DNP6blKIIvIbhtpRIGXff9xIadkkLlMuz9zy/WcSIgMxKUVaHT2nXo6 fLZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@datenfreihafen.org header.s=2021 header.b=fVpSJ0oI; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w15-20020a17090633cf00b006ff0dfd6267si3339723eja.341.2022.06.02.23.34.00; Thu, 02 Jun 2022 23:34:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@datenfreihafen.org header.s=2021 header.b=fVpSJ0oI; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236759AbiFBRlG (ORCPT + 99 others); Thu, 2 Jun 2022 13:41:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232767AbiFBRlF (ORCPT ); Thu, 2 Jun 2022 13:41:05 -0400 Received: from proxima.lasnet.de (proxima.lasnet.de [IPv6:2a01:4f8:121:31eb:3::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 770121C4F04; Thu, 2 Jun 2022 10:41:04 -0700 (PDT) Received: from [IPV6:2003:e9:d738:31bf:d5a9:1442:9319:c966] (p200300e9d73831bfd5a914429319c966.dip0.t-ipconnect.de [IPv6:2003:e9:d738:31bf:d5a9:1442:9319:c966]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: stefan@datenfreihafen.org) by proxima.lasnet.de (Postfix) with ESMTPSA id E6612C0092; Thu, 2 Jun 2022 19:41:01 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=datenfreihafen.org; s=2021; t=1654191662; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=/cd1/zrtMFHcKeqGlj0MZxeZZZ/9ysQ0FI/8p6sv4bc=; b=fVpSJ0oI3SlkaW9aAcllySk9hssJayNyNPJ+X5lHqCu0pEuvNYYEbpBZFeK9d6IlY/xka9 NSoQoQUPO4yfjAH/nCxZv/uLopzyuhlRaaUu3tOUqKhQg4/HBWRMHGZnFa8iK44dEEQNWs GZIF72O/TPJvw1u6cTd3ZBf2roBqT6Qaeah6WottVnTmrNje8LAY1fLJ6VjfYwZ2jw8B3b AnuxBluaFjUvzAn7V63/XryK3IQrYfnQ2zqixaNUffLjEEYHgEtJbHfbMHwhYndZu/au13 xQBiAml/lXLdhuL0+t1o14533P5t444dki2pImRl7VAaA97raLiRDQ0U7obkSw== Message-ID: <0d269542-ec85-618b-a389-eb174f0e4dcb@datenfreihafen.org> Date: Thu, 2 Jun 2022 19:41:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH bluetooth-next 0/3] net: 6lowpan: simplify lookup by nhc id Content-Language: en-US To: Alexander Aring , jukka.rissanen@linux.intel.com Cc: linux-bluetooth@vger.kernel.org, linux-wpan@vger.kernel.org, torvalds@linuxfoundation.org References: <20220428030534.3220410-1-aahringo@redhat.com> From: Stefan Schmidt In-Reply-To: <20220428030534.3220410-1-aahringo@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hello. On 28.04.22 05:05, Alexander Aring wrote: > Hi, > > this patch series removes the rb data structure for looking up a nhc by > nhc id. Instead we using the existing nexthdr lookup array by iterating > over it and find the right nhc by nhc id. It's simply not worth it to > use such complex handling for such small amount of nhc. As we only > support nhc ids which fits into 1 byte and there are not two byte nhc > ids values specified yet, we let the nhc layer only handle 1 byte values. > If there is the need for 2 byte nhc values we can add support for it. > > - Alex > > Alexander Aring (3): > net: 6lowpan: remove const from scalars > net: 6lowpan: use array for find nhc id > net: 6lowpan: constify lowpan_nhc structures These patches have been applied to the wpan-next tree and will be part of the next pull request to net-next. Thanks! regards Stefan Schmidt