#
# Datapath Lib
#
menuconfig INTEL_DATAPATH
	bool "Datapath Manager/Core/LIB"
	default y
	depends on LTQ_CBM || INTEL_CBM
	---help---
	  Datapath Lib is to provide common rx/tx wrapper Lib without taking
	  care of much HW knowledge and also provide common interface for legacy
	  devices and different HW like to CBM or LRO.
	  Take note: All devices need to register to datapath Lib first

if INTEL_DATAPATH

config INTEL_DATAPATH_ACA_CSUM_WORKAROUND
	bool "ACA Checksum Workaround"
	default n
	depends on SOC_GRX500 && INTEL_DATAPATH
	---help---
	  It is to solve system bus hang hang issue in GRX500
	  Once there is SW-UMT, there is no need to enable it
	  in Facon-MX and later SOC, HW bug is fixed already
	  So it should be disabled

config INTEL_DATAPATH_MANUAL_PARSE
	bool "Datapath manual parse network protocol"
	depends on INTEL_DATAPATH
	default y
	---help---
	  Manual parse network protocol for tcp offloading
	  Only support limited tunnel yet
	  later need to enhance to support other tunnels
	  Also need to study to use network stack information

config INTEL_DATAPATH_COPY_LINEAR_BUF_ONLY
	bool "Datapath Copy linear buffer only for skb"
	default n
	depends on INTEL_DATAPATH
	---help---
	  Datapath Copy linear buffer only for skb if need to alloc new buffer.
	  For TSO/GSO case, it will not consider
	  Make sure TSO/GSO always with enough header room to insert pmac header
	  need to enhance in the future

config INTEL_DATAPATH_DBG
	bool "Datapath Debug Tool"
	default y
	depends on INTEL_DATAPATH
	---help---
	  Datapath Debug Tool is used to provide simple debug tool
	  All other debug tools is based on it
	  Once it is disabled, all other datapath debug tool disabled.
	  By default had better enable it

config INTEL_DATAPATH_DBG_PROTOCOL_PARSE
	bool "Datapath Debug Tool for hw checksum's protocol parsing"
	default n
	depends on INTEL_DATAPATH_DBG
	---help---
	  Datapath Debug Tool for hw checksum's protocol parsing
	  Only for debugging purpose
	  By default it should be disabled.

config INTEL_DATAPATH_EXTRA_DEBUG
	bool "extra debugging support"
	default n
	depends on  INTEL_DATAPATH_DBG
	---help---
	  This is to enable/disable extra strict debugging support.
	  This is useful during initial system bring up
	  It will affect performance
	  By default it should be disabled.

config INTEL_DATAPATH_SKB
	bool "Datapath Skb Hack"
	default n
	depends on  INTEL_DATAPATH
	---help---
	  For Ethernet OAM and MPE FW purpose testing purpose,
	  It needs to hack SKB

config INTEL_DATAPATH_ETH_OAM
	bool "ETH OAM SUPPORT"
	default n
	depends on  INTEL_DATAPATH_SKB
	---help---
	  Datapath Ethernet OAM support. Once it is enabled, it will add some fields in skb structure
	  in order to support MPE FAST HOOK. The reason is that some network driver is
	  pre-build out of this build system.
	  The testing code by default is not checked in.

config INTEL_DATAPATH_SWITCHDEV
	bool "Switchdev Support"
	default n
	depends on  INTEL_DATAPATH && NET_SWITCHDEV
	---help---
	  Switchdev support for different switch in datapath

config INTEL_DATAPATH_PTP1588
	bool "PTP1588 Support"
	default n
	depends on  INTEL_DATAPATH
	---help---
	  PTP1588 support in datapath

config INTEL_DATAPATH_PTP1588_SW_WORKAROUND
        bool "PTP1588 Software Workaround"
        default n
        depends on  INTEL_DATAPATH && INTEL_DATAPATH_PTP1588
        ---help---
          PTP1588 Software Workaround

config INTEL_DATAPATH_CPUFREQ
	bool "Datapath DFS(COC) support"
	depends on INTEL_DATAPATH && CPU_FREQ
	default n
	---help---
	  It is to support DFS(COC) in Datapath

config INTEL_DATAPATH_MIB
	bool "Datapath MIB support"
	depends on INTEL_DATAPATH
	---help---
	  It is to support MIB counter in Datapath

#
# Datapath Lib
#
config LTQ_DATAPATH
	bool
	default INTEL_DATAPATH

config LTQ_DATAPATH_ACA_CSUM_WORKAROUND
	bool
	default INTEL_DATAPATH_ACA_CSUM_WORKAROUND

config LTQ_DATAPATH_SKB
	bool
	default INTEL_DATAPATH_SKB

config LTQ_DATAPATH_CPUFREQ
	bool
	default INTEL_DATAPATH_CPUFREQ

source "drivers/net/datapath/dpm/gswip31/Kconfig"
source "drivers/net/datapath/dpm/gswip30/Kconfig"
endif

