Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2508172rdb; Mon, 5 Feb 2024 08:37:06 -0800 (PST) X-Google-Smtp-Source: AGHT+IHlMEpvtnpu9FQyPeCUGuRs+YamRe54+A9MA7kC9wceCIlm1XDGnRMeaGUob6H1x5y3A+op X-Received: by 2002:a17:902:ed43:b0:1d9:1322:5b0d with SMTP id y3-20020a170902ed4300b001d913225b0dmr2508plb.65.1707151025899; Mon, 05 Feb 2024 08:37:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707151025; cv=pass; d=google.com; s=arc-20160816; b=YTLvi+/HuTklJmF6NySAu/YP80UuH8e0EoTAvEuTuv0mlwACo+uMtekSHMTJVz2trR S6hf/z8Jp69n0JXhy3byatj3FJoc6v24cI7pYapyF8XT+2iD430TraXEV4yUeD5WAyUV O61lSakWdAlE3WWNIPv6kXermRpd07Y9aPnwBLWFjhEz0k46QrYH5Co0GHq0EKnQvE/i J4z2bti+DhtPhu2EaQvwChaR/5t81Rsbeo52XN02X5S0PfAdOoGmLeZ24Y+ypanmb5lG UVlFcaDv5eZMPoH/igGwOvIjLnhUvhhPuInqFK5bpe20xRak+NNGcwTnQXVVk6LSVChm YaOw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:organization:references :in-reply-to:message-id:subject:cc:to:from:date:dkim-signature; bh=vq+7j5rxUfbX5WXgjjUMJLefHoCSzp73T0/QzZgsJQ0=; fh=1xzlHeIKCk+9nNfTaRDfAWlpB7MJ4XbtOBdDy7/2V60=; b=Uy8/pA5dUlksmksmsWhvfUfrO0pK5FQOv+OJpPrwHSUMeiyK/YzBNafoub2253rgW/ LSNy1KNBuaEe/ZbEWSFXWYFyaQOJhCeFtXu9eu2bUa+/11ux/5debEJWFlYyyEjLIZWP kyDYy9JF+6CM4rutZILwXjXM/s7fINzgqO0Hki6YqHzndSESHBYXlUcnORK5uvmXUfRZ VFhj2WA4Hc6PN99IlwXaoD+VV2DTXKA7IeC2zpsGUyo/dpxx3X38a6NX9w5Svg35527U hI7cRjHEz11t7+ppDlL/H2lncw9XXcp7k0kTQj4YFc3YaR2c2glRFO7MHEF5Vw0Ka0k/ /DXg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=b1RMH9tz; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-53024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com X-Forwarded-Encrypted: i=1; AJvYcCVG7tZLQF7ktGttRuOUcvNLIOaZFbP0YNGGxax3I1wMaYe1xouYRRwgenDzoFiGM6pTtlxzimfl2kqeASiRgqQV9xPFyu8FW+b/QEsY1w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id l10-20020a170903120a00b001d94e6aaae8si81885plh.281.2024.02.05.08.37.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:37:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-53024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=b1RMH9tz; arc=pass (i=1 spf=pass spfdomain=bootlin.com dkim=pass dkdomain=bootlin.com dmarc=pass fromdomain=bootlin.com); spf=pass (google.com: domain of linux-kernel+bounces-53024-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-53024-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8FDD4285277 for ; Mon, 5 Feb 2024 16:37:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE3F6446D7; Mon, 5 Feb 2024 16:35:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="b1RMH9tz" Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [217.70.183.200]) (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 D2BA844C68; Mon, 5 Feb 2024 16:35:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.70.183.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707150957; cv=none; b=OzNCMqkL1cz90hdApZ6o6PZ3Hn4bCdQMrpaE6eUH2RPs/KNCTFB9eT/hxSxjo5zxEK/LUsGYP8G119btSxL3Rrni/G8XyCK77XE0X42TwYikIHEXzFXOUmkxNGWn5Wj87cTjab932e6kgeoVZEWsQyAvxVzQIXuK6K+jXmlOWmU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707150957; c=relaxed/simple; bh=q50P4lGMt/9LVWTI3qIpeVb18lpaOUNXND5GHbwjdX0=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=WEaLpxgeU+5UVMCuW2HPaknY7CYZWp0Lb9iOVjf36zcP2q++pe95+Ixleer8tS4MyJMrbbH/ngUWPl2N0fTOFksAN7EyV5lmUl0V5elCJTY6OQPGoGSomoHLoTW374XlLDMsAdHBiVAMLpRwQ69h4GP+0heAYkXbuiw0vF+/AS0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=b1RMH9tz; arc=none smtp.client-ip=217.70.183.200 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 3C2DE2000C; Mon, 5 Feb 2024 16:35:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1707150952; 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=vq+7j5rxUfbX5WXgjjUMJLefHoCSzp73T0/QzZgsJQ0=; b=b1RMH9tzIEZtvIz/qE6IM+rZBJEFptCrP116L6aKsjBxZ484rRCOYnu6uxibhlNrchhW09 WkDDsVhsWh1GKP4Nznz6+g9CWjpcRCJxrNQhkOr5EOlwa71KLMrKjPqQ+Sdcz7ue+fiEqM qmx8CEztbG97ao52gOnkOnO2oKCzhekdwOEEkwkmz1LFKMydDrhLMeTEHIlH+c1/4qhMZz aoz6csxFiWLYE9CkM/1NncamijP3au1So3PepP7zh3+T6wTMb5s55Dul2asYDf0T73nQmD mS8qDH9dtHEH0IodS1uriDqd4ZPNF/dyV2ZcyRlsId4LhlwXWXTYsfrrTR7ggg== Date: Mon, 5 Feb 2024 17:35:50 +0100 From: Herve Codina To: Paolo Abeni Cc: Vadim Fedorenko , "David S. Miller" , Eric Dumazet , Jakub Kicinski , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, Andrew Lunn , Mark Brown , Christophe Leroy , Thomas Petazzoni Subject: Re: [PATCH v2 1/6] net: wan: Add support for QMC HDLC Message-ID: <20240205173550.2a6b8f20@bootlin.com> In-Reply-To: References: <20240130084035.115086-1-herve.codina@bootlin.com> <20240130084035.115086-2-herve.codina@bootlin.com> <20240205152208.73535549@bootlin.com> Organization: Bootlin X-Mailer: Claws Mail 4.2.0 (GTK 3.24.38; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-GND-Sasl: herve.codina@bootlin.com On Mon, 05 Feb 2024 16:49:33 +0100 Paolo Abeni wrote: [... > > > > > > In general is quite bad that the existing infra does not allow > > > leveraging NAPI. Have you considered expanding the QMC to accomodate > > > such user? > > > > I cannot mask/unmask the 'end of transfer' interrupt. > > Indeed, other streams use this interrupt among them audio streams and so > > masking the interrupt for HDLC data will also mask the interrupt for audio > > data. > > Uhm... I fear the above makes the available options list empty :( > > > At the HDLC driver level, the best I can to is to store a queue of complete > > HDLC skbs (queue filled on interrupts) and send them to the network stack > > when the napi poll() is called. > > > > I am not sure that this kind of queue (additional level between always > > enabled interrupts and the network stack) makes sense. > > > > Do you have any opinion about this additional queue management for NAPI > > support? > > With such idea in place, what HDLC-level data will be accessed by the > napi context? The RX interrupts will remain unmasked after the > interrupt and before the napi poll right? That would be > problematic/could cause drop if the ingress pkt/interrupt rate will be > higher that what the napi could process - and that in turn could bring > back old bad livelock times :( Indeed. So the best thing to do is to keep this driver without NAPI support. Best regards, Hervé