From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f173.google.com (mail-pf1-f173.google.com [209.85.210.173]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 359631E9B07 for ; Tue, 13 May 2025 06:23:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747117437; cv=none; b=YF/rabJfAeyaZkziJly1PdJsmDZM4sJ5bcEZGt3HNs0Mn9qkL6Iq/IwCG+9FwvlvSbst/fvMF0mYiC/lPugGCTuaeP8+DtSCuF+j7vwpOw8OYBQ8jdmPTMxbNuvJpHiqgdtIf5aC6QWHm9PheloxrqK4Ff79p9y9YF+wTSU7C+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1747117437; c=relaxed/simple; bh=NWDL4ww3BQl/HzMVL3Bws9NyNng7ta9aYTnl0hs9Srg=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WTPXRKqQGNBcsGncPrt7/P8eeAlT5R1LUXpqAD8Hdv3lRgodPJDxAnPmy3ZiXGwYuFZMqDVE9Ki66IMGecCGQKOYy2ZgY+VxXf/wU9Yy9hOwwpPgHnN68ooz4j6sUJhuYPKLc6mXtNFLZc+MrAOY7g3Zz4Mz967qyThAE/Sd/QA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com; spf=pass smtp.mailfrom=shopee.com; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b=gioOl9Hu; arc=none smtp.client-ip=209.85.210.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=shopee.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=shopee.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=shopee.com header.i=@shopee.com header.b="gioOl9Hu" Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-73712952e1cso5199371b3a.1 for ; Mon, 12 May 2025 23:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopee.com; s=shopee.com; t=1747117435; x=1747722235; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=4Xe4uYghntGHOIEC3/13sie1Qhs4ut1BoBFJ4y42rbE=; b=gioOl9HueOoo+fAbm9efI7fx1oKwy3vyGzy+7wCsqLBA8D2Fqc8O9rFW5IrcV0RUcu 8PssdqvhprsqZ8DiqYINK7DyTz8sqKr9eusgHs5ut6MN/LM24dsq/XfcmdjJYUTgbhdI NuzwV7p6yrc8EIEoYgp/KJspyvVdM59lTI5eT+AAKp/JUPxcS02MQP2QlaO0sLm3vPhy 5ycUzOcNRgaPGAY588MfCeGJEzFzS27B6BwClhqePvGgSPjRkjI7rO1AthTo1TRxiruB 8otXPJKAnY+4fcRd0kA/48ovlBGm1MRwYPzI0VRAyG1uyjYob+3sZQIgksOFfgankAf0 wNNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747117435; x=1747722235; h=content-transfer-encoding:in-reply-to:from:references:cc:to:subject :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=4Xe4uYghntGHOIEC3/13sie1Qhs4ut1BoBFJ4y42rbE=; b=UwSxCN8AEFb7W5b6j4mWJeFhN/8jFHGwsCCxF7qcep+Fk3Clg8l5kPr30filppRvo/ FG9QZDgf1/LHTrsJJ4aP8Hzs0O467mt+JCefrk4tQVn+cGKgS+O5awCktBVWbzr6rOWw cQm+v0kW6/COwppTTpFLVPKJtZzFVF0SZNVR08tU+AvdDslO0q9qMJo0B90WwYBK1jmb xSN3x7Yv4gzinaEK2LkBmG31GRS4wjzGaRTucsC2hpJWpfPLAtgbLwDEhdU8kNN5d7iH b/VnnxKSrpqhiWHMzH0cIDCqvtL6mEFgamanbv/vjtkvhY99Mj2GAu0qb1D6yIYPImEg nPvQ== X-Forwarded-Encrypted: i=1; AJvYcCV3Ej9XvuFnw6kC/3rvIUIiICSYT1ZVwOW4RI5ecANRi70NfA1fcFjCuS7+/ZhwDc+qx+JhsjehK0+f5wY=@vger.kernel.org X-Gm-Message-State: AOJu0YwzGJh9hU5xNlBx5KiKUjnMlnNm7obsGGcRQEp/evIbgwL+8Jpu jPmHfydqFm7kK6oR9mU7TwDH+EMLevgpWhKHzjGc5lRGICrdIwiuIdsslxAk47U= X-Gm-Gg: ASbGncu1WxXGKwyHmI141x9nxgw1VnufOJI3x/ApikKp746xYgAvVifS+voocoMR9/G 3Kszw6RFjFnfIAcgRmyb2Hspr0ItGN+yQHbGS95F+LLUew+u0U0RD0yOKrCTatAjFQ2kyA4apNf fMCkiwDmDLtO2D7X1wu9cG+D5GLP9AiNk9UPiSZBu4Gqs4d3NCmViihrNzuv9JYHeGRMefHlrx4 WT/2e4QC/dgOHnVhfhi4UigvVpYVHnWlOAHFr//otpLUTI52Prf53Pb6umznPsYcopOSiJC19NJ k4QjSo4Ot4kCAHk7GsEo5QY/uD+wR5SOn8OSCffXbmFthnYNNd7mjH8yjEvPEnOI X-Google-Smtp-Source: AGHT+IGaYQuRICfs2SknzMpxDQM2zuaFYRjcuLtZoCaPh500iOYbo4XJp56Xa+ir6JeYYEIEzfycdw== X-Received: by 2002:a05:6a00:4652:b0:740:6f69:8d94 with SMTP id d2e1a72fcca58-7423b3f12e7mr22633670b3a.0.1747117435423; Mon, 12 May 2025 23:23:55 -0700 (PDT) Received: from [10.54.24.77] ([143.92.118.3]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-74237a1088csm6987174b3a.113.2025.05.12.23.23.52 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 12 May 2025 23:23:55 -0700 (PDT) Message-ID: Date: Tue, 13 May 2025 14:23:50 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: i40e: How the packets will be processed when status_error_len is 0 To: Jason Xing Cc: Tony Nguyen , Jesse Brandeburg , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <0c8bf3f2-1620-420e-8858-fe1c2ff5a8e9@shopee.com> From: Haifeng Xu In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 2025/5/13 14:13, Jason Xing wrote: > On Tue, May 13, 2025 at 12:08 PM Haifeng Xu wrote: >> >> Hi all, >> >> If the packets arrive at the rx and then raise soft irq to handle it, but in i40e_clean_rx_irq, status_error_len is 0 and return. > > Directly "return"? What version of I40E are you looking at? stable kenrel 5.15.162, i40e_clean_rx_irq ... qword = le64_to_cpu(rx_desc->wb.qword1.status_error_len); ... size = (qword & I40E_RXD_QW1_LENGTH_PBUF_MASK) >> I40E_RXD_QW1_LENGTH_PBUF_SHIFT; if (!size) break; ... if status_error_len is 0, the i40e_clean_rx_irq returns 0. > >> The data isn't fetchted from the rx buffer, so the how the packets arrive at the rx will be processed? > > In i40e_clean_rx_irq(), packets are one by one constructed into the > sk_buff and then passed to the stack by napi_gro_receive(). > > AFAIK, common drivers implement nearly the same scenario. > > > Thanks, > Jason > > >> >> FYI, the every rx/tx queue has been bounded to one cpu(64 queues, 64 cpus). >> >> Thanks! >>