Received: from out30-110.freemail.mail.aliyun.com (out30-110.freemail.mail.aliyun.com [115.124.30.110]) (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 2CC90382 for ; Fri, 21 Jun 2024 06:33:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.110 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718951590; cv=none; b=TjG3DY5vu5Pg0p3PlMN/WsPiVp9ndD11SFLGqwzfdUg19r26PzzD78A1q9ryeiylSax+Zt5fJ8E8bzztFIX+E+K9GZjIuko5DlENOOmVzGWD8VbgwLtl7UYHEn1sXWxHFkjeTi9blp5UZGt1XWxIH/OhOdhl23GNGW4Jq859pgA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718951590; c=relaxed/simple; bh=4pzyRHT73Q7GiPsI890QMwhId8ur1gzjRUjj9cW5f74=; h=Message-ID:Subject:Date:From:To:Cc:References:In-Reply-To; b=atuObtbSWTfzsjbtEZRQq1Tmr2sdpRCJBTtG8fJYaQAt29fA3fkdLRsXqJpL31MNyZklTAiDh6kLgHLPATvCmnTNabcY1SozLnFx8zTURW+ktbsn73ehgpNEMLtuGs91bhlI0bYzZIHFRdCSSfnJzZbSaCAcsG7rrzSf7cjIPvY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com; spf=pass smtp.mailfrom=linux.alibaba.com; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b=HDw5sRv7; arc=none smtp.client-ip=115.124.30.110 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.alibaba.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.alibaba.com header.i=@linux.alibaba.com header.b="HDw5sRv7" DKIM-Signature:v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1718951584; h=Message-ID:Subject:Date:From:To; bh=HQzBAHQmzzdOD9opnF/vKbMd3fqbLQ9N71S3Ajm7tHA=; b=HDw5sRv7nKaqBL0XKUDQRVH2cs4RuPAz30yxX1GNqLZOvV1wImY+16e7EFCcwBpUbdVyuU/AgW1Cc1GGUCeQhT+aGhn/alsxvvK4eRHyYHH1w0IMOVCC4DD9qXny5nkBkCW6uCSSgbUoJ2+Gk8u+g5YoExz545uOKMHoJDWA5kw= X-Alimail-AntiSpam:AC=PASS;BC=-1|-1;BR=01201311R131e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033037067112;MF=hengqi@linux.alibaba.com;NM=1;PH=DS;RN=31;SR=0;TI=SMTPD_---0W8vIaOZ_1718951582; Received: from localhost(mailfrom:hengqi@linux.alibaba.com fp:SMTPD_---0W8vIaOZ_1718951582) by smtp.aliyun-inc.com; Fri, 21 Jun 2024 14:33:02 +0800 Message-ID: <1718951303.3419425-15-hengqi@linux.alibaba.com> Subject: Re: [PATCH RESEND net-next v14 3/5] ethtool: provide customized dim profile management Date: Fri, 21 Jun 2024 14:28:23 +0800 From: Heng Qi To: Jakub Kicinski Cc: netdev@vger.kernel.org, virtualization@lists.linux.dev, "David S . Miller" , Paolo Abeni , Eric Dumazet , Jason Wang , "Michael S . Tsirkin" , Brett Creeley , Ratheesh Kannoth , Alexander Lobakin , Xuan Zhuo , Tal Gilboa , Jonathan Corbet , linux-doc@vger.kernel.org, Maxime Chevallier , Jiri Pirko , Paul Greenwalt , Ahmed Zaki , Vladimir Oltean , Kory Maincent , Andrew Lunn , justinstitt@google.com, donald.hunter@gmail.com, =?utf-8?q?Eugenio_P=C3=A9rez?= , Andrew Morton , Dragos Tatulea , Rahul Rameshbabu , Heiner Kallweit , Przemek Kitszel , awel Dembicki References: <20240618025644.25754-1-hengqi@linux.alibaba.com> <20240618025644.25754-4-hengqi@linux.alibaba.com> <20240620203918.407185c9@kernel.org> In-Reply-To: <20240620203918.407185c9@kernel.org> Precedence: bulk X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: On Thu, 20 Jun 2024 20:39:18 -0700, Jakub Kicinski wrote: > On Tue, 18 Jun 2024 10:56:42 +0800 Heng Qi wrote: > > + if (dev->irq_moder && dev->irq_moder->profile_flags & DIM_PROFILE_RX) { > > + ret = ethnl_update_profile(dev, &dev->irq_moder->rx_profile, > > + tb[ETHTOOL_A_COALESCE_RX_PROFILE], > > + info->extack); > > + if (ret < 0) > > + return ret; > > + } > > + > > + if (dev->irq_moder && dev->irq_moder->profile_flags & DIM_PROFILE_TX) { > > + ret = ethnl_update_profile(dev, &dev->irq_moder->tx_profile, > > + tb[ETHTOOL_A_COALESCE_TX_PROFILE], > > + info->extack); > > + if (ret < 0) > > + return ret; > > + } > > One last thing - you're missing updating the &mod bit. > When any of the settings were change mod should be set > to true so that we send a notification to user space, > that the settings have been modified. Oh, I didn't modify the mod bit in the past because the profile list modification does not require the dual_change behavior, ignoring the passing of ret = 0/1. Will modify. Thanks.