From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 5BA773BD237 for ; Thu, 14 May 2026 09:05:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778749515; cv=none; b=EIFGCjkKXT/K6sUtinQMPvKu/d9YWYxTmAuMBiBvGfSgGnw401DWflEzEy/XAxVUirxGApgaC8ueDB4MgHjTtkyMK6w04p9lrgY9WT/zaeilOut8lY35Od/7oWiWD0FB61pJ9XGb0DQ/ViO3IwtIf7cjKKpVVg8KKcltfgnW/+k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778749515; c=relaxed/simple; bh=qVyr4qt77zsuqXZ9w/JXIjpv6jtxz9aHDD5YCfrstEQ=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=dwshKj0exIt5i+jYPyoZ5zHFjCQWJ19fUB57p5YTl9lbItqh+HQheLu+y1YsTvLVrqZrlvcT8NCCOciD0yyQP3v5bF6ABP1E0IEyJp+g4Y924C+DnWp+VC0zfUrGhknLvBKESZL/p9ljhl8SewiypHvxJGbDE7jFhgbI+8Pn004= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=EfWI/j4P; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=KbFlIouP; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="EfWI/j4P"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="KbFlIouP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1778749513; 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=CemDzzrwR3SGpVnjXIQxXW5PCfyUzVu1NubMUDPJPt4=; b=EfWI/j4PykZNIiWtia9Jd44EejJFwUMqtJyEwjEqvl6BQAWv0OFBM3dh1w5Lki8+89ev+l k6tPTO3rmVuU+jhL0wIhHRFtlXZx4cnnOaSJpNLM5sm4GqMNKrfe3NRKrEKgd/hKcb/4E0 FsZjS7y6FppUgfWwSM6pN8iGXZZKAks= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-423-GI6ihbyqMOOw5KrdVjGCJw-1; Thu, 14 May 2026 05:05:11 -0400 X-MC-Unique: GI6ihbyqMOOw5KrdVjGCJw-1 X-Mimecast-MFC-AGG-ID: GI6ihbyqMOOw5KrdVjGCJw_1778749511 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-449dcfe8005so7397949f8f.3 for ; Thu, 14 May 2026 02:05:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1778749510; x=1779354310; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=CemDzzrwR3SGpVnjXIQxXW5PCfyUzVu1NubMUDPJPt4=; b=KbFlIouP5PsMGl9utsOCb6TIQnPu3Bq0GK5s/G/FB+LpluxxFFI8OO0zP3JmrvJ+DI VezaG5fYA2ogipVnzoS+SaxklbXHUWZG3Hs9Ri4fVvuJti3kGo7dVR2nscjHdC0az+Re nDnpUM5auvRsagT+SaT8gtO/wr2DvHoo4rti4tKC6mM2eviSyGvCatpiiOu4DPGghSEn RNVnXGDWgmZdfp8Ux77ybytkqHz3rLjJqdUMVINgSfOjaAnx5YMwMtqx+PT5tMQBFzJu htFioCsp28DHGjXXeaNcppbi+RcqBNvm09PVzEBM2kvfJZWNtZZKMeUukBcCgaiMbhfp K2vA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778749510; x=1779354310; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=CemDzzrwR3SGpVnjXIQxXW5PCfyUzVu1NubMUDPJPt4=; b=Qvd+PN7S8mzReyqCM4PqRmsNqPy6Fmoj4MH8xNzoq/+rQ4RgC0s2oBguBbz+oLUB1B f3lXmp4mWrlT0LOnk7ZD5xze2DHv7wY7J/y2atvkFSzcI2EK0xYB0MgvEGbchroOz0iE pFxflXKthkA0AHt2ve9+LnSD2b2TO26SWWpt23uhQmzh9fGOTGydufHHCzAdINzPDITa +kMWRKzqljWZazGmVuDo6CIvo38kKq/TL+bx/+o55Hgx2YPuqPoSmwpTDOCAWLnTl87P KFjfrMW0l8nPOZlzIW46pMilWB7i86brSMlyqc5Bwf2c5OZzuQUcLCfwo6CoNxkDcg7g TRsQ== X-Forwarded-Encrypted: i=1; AFNElJ+NRGLi9hnXjfimhXzuas1XMGzOzP6xiPu2UEy9CKabwMIRl02Cq4Ybh2dnD+b+wxFOxj91aidL0vS+O9s=@vger.kernel.org X-Gm-Message-State: AOJu0Yx0b39mY6a1FIgkVKR+zxiPYz7o8xhNEfSwca/wlSfPomjQi3TC Q9fmIIDwe4uCsw5yne58tpw61tIBtqtytfHPRlfzuFTiV9jI2xGMVuV609TSzc9v5InMImDsusr 3cVbQUru3+BWyI6z+7ocanEEga/xShMhiG9QMsVsnHhUt7KJ/gWK3dGv0+BJf+JlrqA== X-Gm-Gg: Acq92OFE1X+Rsfo0XQRKFlsuY2LGoCPuAdxSl5eP9+p2f6xuA1hNRnpJFjogLXEsvQk oHcVcppr9o74biSAnGRRI7G32NDNjsOGnVpgBLIz7ui7nycXSujytwU3Am87DKXnm77P3perdh+ 6E+p5BdZPBPwGRdAYv7Ul1cAT+PIPWMQYpctYR8KP/qch45jmUjPTxSseQyNwWzcoUlgqFflNG7 Y2DVlErHNctFZFfsQPL+fXerops/+P8Yp15SUSmhpTpmk5Noq6aVXZ+YPZhi64B76LlXJ6kxH+Y dD3CxktdanKXIuce6CCMKBQZLuGkCS9ZmuOktamRppUMrE/gzGM54fwKp21UIF07iyEUGbBOb3S tfyQYEpzFx1HNfR+5BD02VQw/QaFCkTTxu5SH6XDDzzEa9nYsHJJMNLQ= X-Received: by 2002:a05:600c:19cd:b0:48f:be94:d82c with SMTP id 5b1f17b1804b1-48fce9e1a34mr101445445e9.19.1778749510716; Thu, 14 May 2026 02:05:10 -0700 (PDT) X-Received: by 2002:a05:600c:19cd:b0:48f:be94:d82c with SMTP id 5b1f17b1804b1-48fce9e1a34mr101444475e9.19.1778749510167; Thu, 14 May 2026 02:05:10 -0700 (PDT) Received: from [192.168.88.32] ([216.128.9.106]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48fd648a7e5sm51353085e9.3.2026.05.14.02.05.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 14 May 2026 02:05:09 -0700 (PDT) Message-ID: <73a19f89-ccd7-4762-8e07-812d8d95ead2@redhat.com> Date: Thu, 14 May 2026 11:05:07 +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 Subject: Re: [PATCH net-next v4 09/13] net: lan966x: add PCIe FDMA support To: Daniel Machon Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Horatiu Vultur , Steen Hegelund , UNGLinuxDriver@microchip.com, Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , Stanislav Fomichev , Herve Codina , Arnd Bergmann , Greg Kroah-Hartman , Mohsin Bashir , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bpf@vger.kernel.org, linux-arm-kernel@lists.infradead.org References: <20260508-lan966x-pci-fdma-v4-9-14e0c89d8d63@microchip.com> <20260509082720.503A6C2BCB2@smtp.kernel.org> From: Paolo Abeni Content-Language: en-US In-Reply-To: <20260509082720.503A6C2BCB2@smtp.kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 5/9/26 10:27 AM, sashiko-bot@kernel.org wrote: > Thank you for your contribution! Sashiko AI review found 10 potential issue(s) to consider: >> +static int lan966x_fdma_pci_napi_poll(struct napi_struct *napi, int weight) >> +{ > [ ... ] >> + /* Get all received skbs. */ >> + while (counter < weight) { >> + if (!fdma_has_frames(fdma)) >> + break; >> + /* Order DONE read before DCB/frame reads below. */ >> + dma_rmb(); >> + counter++; >> + switch (lan966x_fdma_pci_rx_check_frame(rx, &src_port)) { >> + case FDMA_PASS: >> + break; >> + case FDMA_ERROR: >> + fdma_dcb_advance(fdma); >> + goto allocate_new; >> + } >> + skb = lan966x_fdma_pci_rx_get_frame(rx, src_port); >> + fdma_dcb_advance(fdma); >> + if (!skb) >> + goto allocate_new; > > If napi_alloc_skb() fails due to memory pressure, does branching to > allocate_new prematurely break out of the processing loop? Since the hardware > interrupt was already cleared, and napi_complete_done() is called below, > will this cause the RX queue to stall permanently for the remaining > unprocessed frames? Should the code drop the packet and continue instead? I went over the series and sashiko feedback, and generally speaking the series LGTM, but I think this one is real and should be addressed. Also it would be very helpful if you could (for future series/revision) reply to the (wrong) sashiko comments individually explaining with a few words why the are off: decoding the context requires much more time for whoever has not wrote the code itself. I understand that dealing with AI feedback is a pain, but, paraphrasing a great aphorisms creator, I can assure you that ours (maintainers) pain is greater. Thanks, Paolo