From patchwork Thu Apr 25 16:59:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heng Qi X-Patchwork-Id: 13643555 X-Patchwork-Delegate: kuba@kernel.org Received: from out30-111.freemail.mail.aliyun.com (out30-111.freemail.mail.aliyun.com [115.124.30.111]) (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 AA40214D6E5; Thu, 25 Apr 2024 16:59:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=115.124.30.111 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714064399; cv=none; b=CUjj3+Q6bnHKbIqebf8MEWbutoCXdI8PisK4IcrNja3QhL0zagRXBC9BiJ+1EWtv1yRA6aZC79cuOZTN/x5vBcB6mCBfHFAs+/72NzfbJp/89RpN1+I6ef5e1dw/yS/VntcYXS9aDFMcPjlP0oaxpltfGPMuVvKr+wA6AS/81mQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714064399; c=relaxed/simple; bh=6rJQgGazq0MxChNaQ4nbOaHIPuqZ8ZyTflKccpLlbRE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=n2eviKBK4Cg2b9ivw8CgEFMf5Zoiu3WZHXclap8ncZ4Yq1UXL6TPe8I107m5cQEoAsmhRBfrFWg+3o12eb9IhLakgE5joJ8V+QwGuWXAq8cnCxf/tAUguOby9cwNL4HmoAThoTRd7IyUBtIWlB5enuTMm7OGbqMocgi7PteEuGE= 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=WwLl43Mr; arc=none smtp.client-ip=115.124.30.111 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="WwLl43Mr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.alibaba.com; s=default; t=1714064394; h=From:To:Subject:Date:Message-Id:MIME-Version; bh=YMOky6wjROeChW2gGiwYbzSNM5F/ZEDz2+PT8bliH4A=; b=WwLl43Mr0eyxtTIdwbyoHE9hb8ZaYP0e/eGakzpjv7IOo7GBGUJA21eackmbFcLZK3Bf3rwrBq6UyTFm/OyLHLvGZNFUMPSrls9nEplqEh2vVe5Lbgok0/MvLgad09esbttORv9xtq+Hi6FrGJRDZ+Mg7HOIjV8JXE7uvv3FHoU= X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R341e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=maildocker-contentspam033022160150;MF=hengqi@linux.alibaba.com;NM=1;PH=DS;RN=23;SR=0;TI=SMTPD_---0W5G09o0_1714064390; Received: from localhost(mailfrom:hengqi@linux.alibaba.com fp:SMTPD_---0W5G09o0_1714064390) by smtp.aliyun-inc.com; Fri, 26 Apr 2024 00:59:51 +0800 From: Heng Qi To: netdev@vger.kernel.org, virtualization@lists.linux.dev, Jakub Kicinski Cc: "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" Subject: [PATCH net-next v10 1/4] linux/dim: move useful macros to .h file Date: Fri, 26 Apr 2024 00:59:45 +0800 Message-Id: <20240425165948.111269-2-hengqi@linux.alibaba.com> X-Mailer: git-send-email 2.32.0.3.g01195cf9f In-Reply-To: <20240425165948.111269-1-hengqi@linux.alibaba.com> References: <20240425165948.111269-1-hengqi@linux.alibaba.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Useful macros will be used effectively elsewhere. These will be utilized in subsequent patches. Signed-off-by: Heng Qi --- include/linux/dim.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/linux/dim.h b/include/linux/dim.h index f343bc9aa2ec..43398f5eade2 100644 --- a/include/linux/dim.h +++ b/include/linux/dim.h @@ -10,6 +10,13 @@ #include #include +/* Number of DIM profiles and period mode. */ +#define NET_DIM_PARAMS_NUM_PROFILES 5 +#define NET_DIM_DEFAULT_RX_CQ_PKTS_FROM_EQE 256 +#define NET_DIM_DEFAULT_TX_CQ_PKTS_FROM_EQE 128 +#define NET_DIM_DEF_PROFILE_CQE 1 +#define NET_DIM_DEF_PROFILE_EQE 1 + /* * Number of events between DIM iterations. * Causes a moderation of the algorithm run.