summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHeng Qi <hengqi@linux.alibaba.com>2024-06-21 12:13:49 +0200
committerJakub Kicinski <kuba@kernel.org>2024-06-26 02:15:06 +0200
commit0e942053e4dc42a760f48c1981f3239825430f15 (patch)
tree3a63f77362774f4a8a0225adec9d0f544abaeb71 /include
parentMerge branch 'ravb-add-mii-support-for-r-car-v4m' (diff)
downloadlinux-0e942053e4dc42a760f48c1981f3239825430f15.tar.xz
linux-0e942053e4dc42a760f48c1981f3239825430f15.zip
linux/dim: move useful macros to .h file
Useful macros will be used effectively elsewhere. These will be utilized in subsequent patches. Signed-off-by: Heng Qi <hengqi@linux.alibaba.com> Reviewed-by: Simon Horman <horms@kernel.org> Link: https://patch.msgid.link/20240621101353.107425-2-hengqi@linux.alibaba.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/dim.h7
1 files changed, 7 insertions, 0 deletions
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 <linux/types.h>
#include <linux/workqueue.h>
+/* 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.