From: Tom Zanussi <tom.zanu...@intel.com>

Add a general-purpose feature for turning on DCA support (Intel Direct
Cache Access) and use it in igb/ixgbe features.

Signed-off-by: Tom Zanussi <tom.zanu...@intel.com>
---
 meta/cfg/kernel-cache/features/dca/dca.cfg     |    4 ++++
 meta/cfg/kernel-cache/features/dca/dca.scc     |    3 +++
 meta/cfg/kernel-cache/features/igb/igb.cfg     |   10 ++--------
 meta/cfg/kernel-cache/features/igb/igb.scc     |    3 +--
 meta/cfg/kernel-cache/features/ixgbe/ixgbe.cfg |    7 -------
 meta/cfg/kernel-cache/features/ixgbe/ixgbe.scc |    3 +--
 6 files changed, 11 insertions(+), 19 deletions(-)
 create mode 100644 meta/cfg/kernel-cache/features/dca/dca.cfg
 create mode 100644 meta/cfg/kernel-cache/features/dca/dca.scc

diff --git a/meta/cfg/kernel-cache/features/dca/dca.cfg 
b/meta/cfg/kernel-cache/features/dca/dca.cfg
new file mode 100644
index 0000000..f1591aa
--- /dev/null
+++ b/meta/cfg/kernel-cache/features/dca/dca.cfg
@@ -0,0 +1,4 @@
+CONFIG_INTEL_IOATDMA=m
+CONFIG_ASYNC_TX_DISABLE_PQ_VAL_DMA=y
+CONFIG_ASYNC_TX_DISABLE_XOR_VAL_DMA=y
+CONFIG_DCA=m
diff --git a/meta/cfg/kernel-cache/features/dca/dca.scc 
b/meta/cfg/kernel-cache/features/dca/dca.scc
new file mode 100644
index 0000000..6426739
--- /dev/null
+++ b/meta/cfg/kernel-cache/features/dca/dca.scc
@@ -0,0 +1,3 @@
+kconf hardware dca.cfg
+
+include features/dmaengine/dmaengine.scc
diff --git a/meta/cfg/kernel-cache/features/igb/igb.cfg 
b/meta/cfg/kernel-cache/features/igb/igb.cfg
index 92600b1..3978517 100644
--- a/meta/cfg/kernel-cache/features/igb/igb.cfg
+++ b/meta/cfg/kernel-cache/features/igb/igb.cfg
@@ -1,10 +1,4 @@
+CONFIG_IGB_DCA=y
+
 CONFIG_IGB=m
 CONFIG_IGBVF=m
-
-# needed for DCA
-CONFIG_INTEL_IOATDMA=m
-CONFIG_ASYNC_TX_DISABLE_PQ_VAL_DMA=y
-CONFIG_ASYNC_TX_DISABLE_XOR_VAL_DMA=y
-
-CONFIG_DCA=m
-CONFIG_IGB_DCA=y
diff --git a/meta/cfg/kernel-cache/features/igb/igb.scc 
b/meta/cfg/kernel-cache/features/igb/igb.scc
index 4426397..84bc67f 100644
--- a/meta/cfg/kernel-cache/features/igb/igb.scc
+++ b/meta/cfg/kernel-cache/features/igb/igb.scc
@@ -1,4 +1,3 @@
 kconf hardware igb.cfg
 
-# needed for DCA
-include features/dmaengine/dmaengine.scc
+include features/dca/dca.scc
diff --git a/meta/cfg/kernel-cache/features/ixgbe/ixgbe.cfg 
b/meta/cfg/kernel-cache/features/ixgbe/ixgbe.cfg
index eabbaa9..30e46ce 100644
--- a/meta/cfg/kernel-cache/features/ixgbe/ixgbe.cfg
+++ b/meta/cfg/kernel-cache/features/ixgbe/ixgbe.cfg
@@ -1,11 +1,4 @@
 CONFIG_IXGBE=m
-
-# needed for IXGBE_DCA
-CONFIG_INTEL_IOATDMA=m
-CONFIG_ASYNC_TX_DISABLE_PQ_VAL_DMA=y
-CONFIG_ASYNC_TX_DISABLE_XOR_VAL_DMA=y
-
-CONFIG_DCA=m
 CONFIG_IXGBE_DCA=y
 
 CONFIG_DCB=y
diff --git a/meta/cfg/kernel-cache/features/ixgbe/ixgbe.scc 
b/meta/cfg/kernel-cache/features/ixgbe/ixgbe.scc
index 247ce65..d22aa5c 100644
--- a/meta/cfg/kernel-cache/features/ixgbe/ixgbe.scc
+++ b/meta/cfg/kernel-cache/features/ixgbe/ixgbe.scc
@@ -1,4 +1,3 @@
 kconf hardware ixgbe.cfg
 
-# needed for DCA
-include features/dmaengine/dmaengine.scc
+include features/dca/dca.scc
-- 
1.7.0.4

_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to