[qca-edma] Add support to configure number of CPU cores
Add support to configure RSS with lesser cores if one
or more cores are needed for any other functionality
Change-Id: I4cf0c506d8ea2c0b88ca8a6dc5cd2eea1aa3dab1
Signed-off-by: Rakesh Nair <ranair@codeaurora.org>
diff --git a/edma.h b/edma.h
index 749df9e..f58f7fe 100644
--- a/edma.h
+++ b/edma.h
@@ -182,6 +182,7 @@
extern int ssdk_rfs_ipct_rule_set(__be32 ip_src, __be32 ip_dst,
__be16 sport, __be16 dport,
uint8_t proto, u16 loadbalance, bool action);
+
struct edma_ethtool_statistics {
u64 tx_q0_pkt;
u64 tx_q1_pkt;
@@ -340,6 +341,7 @@
struct edma_hw hw; /* edma hw specific structure */
struct edma_per_cpu_queues_info edma_percpu_info[CONFIG_NR_CPUS]; /* per cpu information */
spinlock_t stats_lock; /* protect edma stats area for updation */
+ u32 num_cores;
};
/* transimit packet descriptor (tpd) ring */