From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 905D110780 for ; Mon, 3 Jul 2023 17:29:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA504C433C8; Mon, 3 Jul 2023 17:29:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1688405398; bh=3UlnvLRsMVZa31MjcgvpkyohCz/JICl04SWLwyfuhKc=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=AxcPXz/qn+TCqorNC2Arg4CIQqH0o/FQN0CAMJcVksmyQLoyoxtNz71zn23f30vj7 2c6mKObATGGYwgNyxiAmew7EiGkGNEHy7xP83JoI20XwmMVleUSQsvGcZa0pT/RJl3 pOvgACVju09tyxblKTxZvCWxUfvl7LDSwoMnHtf0ksUEsrL3PyQ1IaYcMTcgsrI1JO od7+qqs+/DmWfcvpzR+jvVuBHSnKM4bBwHTgcgQt95m5Xvbekl1aM5YyVRe3i3tdQl HDGiSEqQQu/v9qqC5WYNs76NUok31rRHJDyevn6Kc62yhND0z8muUFH60vOfdHwxge V0emKcNyY+POg== Message-ID: Date: Mon, 3 Jul 2023 11:29:56 -0600 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH net-next] tcp: Make GRO completion function inline Content-Language: en-US To: Alexander Lobakin , Michael Chan , Parav Pandit Cc: aelior@marvell.com, skalluru@marvell.com, manishc@marvell.com, netdev@vger.kernel.org, edumazet@google.com, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com References: <20230611140756.1203607-1-parav@nvidia.com> From: David Ahern In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 7/3/23 10:51 AM, Alexander Lobakin wrote: > Why is this needed then if it gives nothing? :D It is a question I asked. There are a fair number of trivial sk_buff functions called in the datapath (e.g., skb_add_rx_frag is another). Function calls are not free, so inlining them should *collectively* provide measurable performance bumps as line rates and packet rates increase.