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 Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 4BCD7C2BD09 for ; Sat, 6 Jul 2024 14:55:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id B6946405FA; Sat, 6 Jul 2024 14:55:33 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id ll4cIZwmydMf; Sat, 6 Jul 2024 14:55:33 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=intel-wired-lan-bounces@osuosl.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org E04E14022F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=osuosl.org; s=default; t=1720277732; bh=Z75ZznpIbvuXtNcDLfumWj2gSi9XkiI5AnYv1mRIAA4=; h=Date:To:References:From:In-Reply-To:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Cc:From; b=KzmKMqttidvB2YDmP5dvURaVNbhNfB47JTZ4bMnhg/k+J8wv7LnfWTqy2qqB9+Cxg E9gUnQm1rQZNRw1hslelSS4vaaEVtcLRMX7Y/bxVpdk9btkaLhKUEIjMQ+rV2P63BD 5zFOw/EB6aJL/ft40JfcoUkoPQdNW/PcLarND7ctJ8IJhpEYnbSd/dc73fhueQPaeB DoPztpImzZSQnOMPVfjfIoj8uoxONfwfGbaIXgODtb+KS3ev92v+IGQcI17ccZ6Ntp Iv2Q8mIxqSFTk8vOPviSQrljJ1RUA9ixO8fnvqLSCfV72p/hQdSlCldsXtu8PyIg0o 8WSx0A7JOkLIQ== Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id E04E14022F; Sat, 6 Jul 2024 14:55:32 +0000 (UTC) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id AA7131BF83E for ; Sat, 6 Jul 2024 14:55:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 944184022F for ; Sat, 6 Jul 2024 14:55:30 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id XegmeMk3H02o for ; Sat, 6 Jul 2024 14:55:30 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=212.227.17.12; helo=mout.web.de; envelope-from=markus.elfring@web.de; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 3E03E4016B DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 3E03E4016B Received: from mout.web.de (mout.web.de [212.227.17.12]) by smtp2.osuosl.org (Postfix) with ESMTPS id 3E03E4016B for ; Sat, 6 Jul 2024 14:55:28 +0000 (UTC) X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.91.95]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MmQcl-1rzbbT1Tc1-00g8Oh; Sat, 06 Jul 2024 16:48:46 +0200 Message-ID: <63e3f609-69fe-4cfd-8418-eec00705cf32@web.de> Date: Sat, 6 Jul 2024 16:48:41 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Aleksandr Mishin , netdev@vger.kernel.org, lvc-project@linuxtesting.org, intel-wired-lan@lists.osuosl.org, Anirudh Venkataramanan References: <20240706140518.9214-1-amishin@t-argos.ru> Content-Language: en-GB From: Markus Elfring In-Reply-To: <20240706140518.9214-1-amishin@t-argos.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:sf3LwDMEQp+t08dgcYNRjXtXbVPpC4vwx8LVmzPbHJrnE+iFDn1 4zBskLf0c2bv3hSGuVVp/cwnjPm1gZ4EDBLQNnEOOauQpbklTf9Fm+i8fYEC05xgIJJRBjM weu/5k4C2Y35ffpivJcka07YRt81ilXzy6RDQbBlep5YT/pqduVOGPBkiVniEQrenTRzxoF 0OA7Egdtz+o1Mf6jAlaDQ== UI-OutboundReport: notjunk:1;M01:P0:sUi+n2Zgm+s=;SF1Q7F4xAk93SDGLSZ7urYHPpI1 jHrz6enhT2Vopzya6bJhFZsh4fW9DmZeq2JPYXNaQsTygGijiWmMGfIB1zYwWMV5Isqds+C4e m+CRUgpUewWEBl2wYvHkpOcuOspPff8/vUvqB8Zq/d7UxQ1Kg4kCbCi3UUY+sHSzxTzIT457+ OnF+4bpWW9+21cBYir0cM8VUp5X7MvN52DqKfIjb2epNeWeQx03bjHysnH4pMGKnHmYK9jSV2 6SirL//mXhkBhb9PWvkHz2i+B4bFKiDfcYe3M0/Ziz23TuhqaVU8odffKyaI7kuK1a29o3RpS JYmjACgpWmo5TXaKpcsIDEg3z7JBvZI4LO2ezcCtcpJBJSG1SqF7GF9DuGZLgGr/t2jope1xG ILExi20jHMb6DkE7k35vJSlSWr2jLSXtEnimvlSXkRtXuOGOMyLGFUutAV8iWvrBHa1aa7aWj cllaRCsi74UDItHjzU+uIFAZiEG/kKFMwfR5ODCr3YrWTXwDfcHPnQ5SY/d+tWVuBSdT540kD Fs/kJrwCWNTiuK26XHxswsIA8RwoP6uhqtyZW8W8oJgOEBTROnogcvmkwN6I1TOxu0r+qUAZT resS7wtpb++In+UaJsEq9qicZJ4GgBnwn5NElgmmNTQ0iDoCA/a3E+SBjztm5el9sSfsjjwhT ISck38XLgccA3VPXTF3rkD2NWlzG7+4l9B3eZwLg4XeejPPblBi6Xat9NgAHbdYqqDwOhQNy+ v8+Wc+DAHto9OOmyu+VW/7o8ojnqSgNOdT3YejFk73udhFo1ET436qhRIJXBkEksT9Cg754hb WBi6cwoIpXphAGdOdDZLldaZ3kRhkO7G1EihauvIB0dcc= X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1720277727; x=1720882527; i=markus.elfring@web.de; bh=Z75ZznpIbvuXtNcDLfumWj2gSi9XkiI5AnYv1mRIAA4=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:Cc:References: Subject:From:In-Reply-To:Content-Type:Content-Transfer-Encoding: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=JVE/2lHTwmEKmy/+l1gi2Fcu3BBGGVt3ZBOOVVHlFw7js4t5vAcU2U+w1qanaL1v 6th59RJtpMqiT1VIUvIfhmSbYVBKl3IDv1MRVcceEeNUVX7fVz1dFmTpdmK9enDuj Km9TModgvXDiEolWhPdQ7kl3pbqP9jWHX8EGLMIt4kXVFug4QWOAXomC6qJYBFctv 6wuqa5Y+R0R/VoFUfjV9O2EKVL7TiF4zbIv1/P4lPyZYRMGJuULcVaDrO8EFXeow+ vcrIRF4uDggD5M9MehNcG4ILwAYQa+msw46zl90n31oRVl27f6CV9s5/JHTlSn9hC iFc9nlDcDte4O4rZeQ== X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=web.de X-Mailman-Original-Authentication-Results: smtp2.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=web.de header.i=markus.elfring@web.de header.a=rsa-sha256 header.s=s29768273 header.b=JVE/2lHT Subject: Re: [Intel-wired-lan] [PATCH net-next v2] ice: Adjust over allocation of memory in ice_sched_add_root_node() and ice_sched_add_node() X-BeenThere: intel-wired-lan@osuosl.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel Wired Ethernet Linux Kernel Driver Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: LKML , Eric Dumazet , Tony Nguyen , Simon Horman , Jakub Kicinski , Paolo Abeni , "David S. Miller" Errors-To: intel-wired-lan-bounces@osuosl.org Sender: "Intel-wired-lan" =E2=80=A6 > 'ice_sched_node' structure. But in this calls there are 'sizeof(*root)' But there are calls for? > So memory is allocated for structures instead pointers. This lead to =E2=80=A6 of? leads? Regards, Markus From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout.web.de (mout.web.de [217.72.192.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 47C0913A86C; Sat, 6 Jul 2024 14:49:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.72.192.78 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720277356; cv=none; b=FbMyQX+RQdkmAYP5aYUi3oQ2/YQBzKcuxfjhr6ttePdn9yuwE0lT86nBVy6m+o4kCQnRW8bACp1vRIq1eB/Jro7ZJsM4oiLuK74/Wf13DzbcTZIZsSXH5+hswuAWdr7QirBWktx455oUUo0qRAHs3Exyyg9zdDHiSJKezuH3Rsw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1720277356; c=relaxed/simple; bh=NLKhHzw2iL4qhzrhvGOTXyRs6loQBaqDJT4atgx9ZAI=; h=Message-ID:Date:MIME-Version:To:Cc:References:Subject:From: In-Reply-To:Content-Type; b=aJ0Xfr92Ko3gAMeJFuIfn3LbObpwHqidsUL3PgOnoPGzAfkUAZrbMDTUT0tnEaxKuuBX+cH5rX0+nFOmEiA7MnlgXOAGGrkqsBXW+NDs2dQnfjolbU+GzbRamudHK+5NC6r8ZOgs9gs4x/F7SEVk1aE2l/hd2ixTfkDT5zMo9n8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de; spf=pass smtp.mailfrom=web.de; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b=Xoh5xWOc; arc=none smtp.client-ip=217.72.192.78 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=web.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=web.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=web.de header.i=markus.elfring@web.de header.b="Xoh5xWOc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1720277326; x=1720882126; i=markus.elfring@web.de; bh=Z75ZznpIbvuXtNcDLfumWj2gSi9XkiI5AnYv1mRIAA4=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:To:Cc:References: Subject:From:In-Reply-To:Content-Type:Content-Transfer-Encoding: cc:content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=Xoh5xWOcip3Q6vPl4p43tJ3b4JWYaS/OxvZeAPKUYvi3JN4CINBU+ZM4lvBdwFKu km1Lx5qTwRhg5abA+PZQ5lyCRFBFww1+AiS+KpNbTjTZ71Iqd+aBWDK/tBaWVj58/ m73PejEYPb1fPFE5qyFES7Wq4QP8Q5JwpZNw5pxofLbH6sQcesuFbi9kuIjfXob9f x7+1/8EgpCyQjVoPrz0F5Ry/CEXk55z4JPSNhOJtPd37b5bDzCxNFIS2UqEwQbUug WBbaRfHLeFBAaAe0dKXgFYtvkwq0XgMO65MHQbB4b5R4J/0Amu2LRrHlTItp8f7mN AZEoMWvt5Qv+kS8zpg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from [192.168.178.21] ([94.31.91.95]) by smtp.web.de (mrweb105 [213.165.67.124]) with ESMTPSA (Nemesis) id 1MmQcl-1rzbbT1Tc1-00g8Oh; Sat, 06 Jul 2024 16:48:46 +0200 Message-ID: <63e3f609-69fe-4cfd-8418-eec00705cf32@web.de> Date: Sat, 6 Jul 2024 16:48:41 +0200 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird To: Aleksandr Mishin , netdev@vger.kernel.org, lvc-project@linuxtesting.org, intel-wired-lan@lists.osuosl.org, Anirudh Venkataramanan Cc: LKML , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Jesse Brandeburg , Paolo Abeni , Simon Horman , Tony Nguyen References: <20240706140518.9214-1-amishin@t-argos.ru> Subject: Re: [PATCH net-next v2] ice: Adjust over allocation of memory in ice_sched_add_root_node() and ice_sched_add_node() Content-Language: en-GB From: Markus Elfring In-Reply-To: <20240706140518.9214-1-amishin@t-argos.ru> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:sf3LwDMEQp+t08dgcYNRjXtXbVPpC4vwx8LVmzPbHJrnE+iFDn1 4zBskLf0c2bv3hSGuVVp/cwnjPm1gZ4EDBLQNnEOOauQpbklTf9Fm+i8fYEC05xgIJJRBjM weu/5k4C2Y35ffpivJcka07YRt81ilXzy6RDQbBlep5YT/pqduVOGPBkiVniEQrenTRzxoF 0OA7Egdtz+o1Mf6jAlaDQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:mbw4cSzkPyA=;AqdL42jObrHSi+bdKLMwGFEUY6s yaP7sjkWCgnNitUBOFvihU3uMsVDt379O/LzhMoHmEhSgBHxQeRm/yVoC4rKNDBThXnwBTFC/ EGyqWFCiShb2dAp0YBRRPbb89rEF+Myc2OJ3jt9+YrdaSLTrL+pVjuNwdivjMqfSDI60ynsET 4l0+u6o4g/N0pgH8eQejtjv5UaxWmxUHc0oOpQVz83zFLdu8GWHOGc6hQkAA/HxlzQZz2TBhW NRCfGqm1B0R/Cu4dccn/dEB99C3c9DoXKwpU6JcxpNQS6JkxUoEjoIRbRs2oz21grR73evI11 J3pRjVsmpFclFFXgi5tmS5HJQpHKWCjIZ6jrJoh+jZX1wlk+7bIVfiQl+mPTpSpvMvHh2HWSK N9GoVhg3p1N6F5FxfBh+fKid/+mYQG+VPaQUfdTZquU/hm1FO7zbVgpBdCCnwmEvFhsXeY9oh z1LgWvWw9rEPXsK/5UdlFT+gpvpjATIPwEall2KfnoZEMXKl/6vF4APIKTgeU6Nb+ERBlHNBu TJqVPukeFYA024hvfnaMu2gF5GV5/8xFXqhVhByjlU/4/Z8kPa9hMLUB6njSTlu2ucnuv0tjp yQLf6WuVWfP9bI3n5fA2GCeAHw1b3eBh1AunSz9JKFYzuGrK/SaLp7Q08M8+edSadbkkWStjc 7GW5YvTxySZ71jGruYAnfEJX+Q4Sgd7IckEmcwj2EagMYJXgM5dIY73q8/DZ9ieY2RsXo5YqJ t5/PUtIxYyOqjzt0bRazxlucNa98uxXz/xm0hyOpouy0ElZV87Hx2eJ4LUcupnLXQBl+4rZBp Wb/jAwiVFiABU5pa6M7kUPaEFINDec551aDiGRWC5GmHM= =E2=80=A6 > 'ice_sched_node' structure. But in this calls there are 'sizeof(*root)' But there are calls for? > So memory is allocated for structures instead pointers. This lead to =E2=80=A6 of? leads? Regards, Markus