config  RA_HW_NAT_V07
        tristate "Ralink HW NAT v0.7"
		depends on RA_HW_NAT_V0_7

choice
        prompt "Binding Method"
	depends on RA_HW_NAT_V07
	default RA_HW_NAT_AUTO_BIND_V07

config  RA_HW_NAT_AUTO_BIND_V07
        bool "Auto"
	depends on RA_HW_NAT_V07
	help
	Let HNAT module judge which flow should be accelerated by hardware.

config  RA_HW_NAT_SEMIAUTO_BIND_V07
        bool "Semi-Auto"
	depends on RA_HW_NAT_V07
	help
	you have to judge which flow need to be accelerated by hardware.

config  RA_HW_NAT_MANUAL_BIND_V07
        bool "Manual"
	depends on RA_HW_NAT_V07
	help
	FoE table are totally controlled by you.

endchoice


config  RA_HW_NAT_BINDING_THRESHOLD_V07
        int "Binding Threshold (Unit:Packet Per Second)"
	depends on RA_HW_NAT_V07
	default 30
	help
	When flow rate > Binding Threshold  (# Packets Per Second),
	the state will change to bind state

config  RA_HW_NAT_QURT_LMT_V07
        int "Max entries allowed build when Free Entries>3/4 (MUST <16384)"
	depends on RA_HW_NAT_V07
	default 100
	help
	Free entries > 3/4

config  RA_HW_NAT_HALF_LMT_V07
        int "Max entries allowed build when Free Entries>1/2 (MUST <16384)"
	depends on RA_HW_NAT_V07
	default 50
	help
	1/2 < Free entries < 3/4


config  RA_HW_NAT_FULL_LMT_V07
        int "Max entries allowed build when Free Entries<1/2 (MUST <16384)"
	depends on RA_HW_NAT_V07
	default 25
	help
	Free entries < 1/2

choice
        prompt "Foe Table Size"
	depends on RA_HW_NAT_V07
	default RA_HW_NAT_TBL_4K_V07
	help
	Number of entries in FoE Table

config  RA_HW_NAT_TBL_1K_V07
        bool "1K"
	depends on RA_HW_NAT_V07

config  RA_HW_NAT_TBL_2K_V07
        bool "2K"
	depends on RA_HW_NAT_V07

config  RA_HW_NAT_TBL_4K_V07
        bool "4K"
	depends on RA_HW_NAT_V07

config  RA_HW_NAT_TBL_8K_V07
        bool "8K"
	depends on RA_HW_NAT_V07

config  RA_HW_NAT_TBL_16K_V07
        bool "16K"
	depends on RA_HW_NAT_V07
	
endchoice


choice
	prompt "Hash Algorithm"
	depends on RA_HW_NAT_V07
	default RA_HW_NAT_HASH1_V07
	
config  RA_HW_NAT_HASH0_V07
        bool "Hash0-Simple"
	depends on RA_HW_NAT_V07

config  RA_HW_NAT_HASH1_V07
        bool "Hash1-Complex"
	depends on RA_HW_NAT_V07

endchoice


config  RA_HW_NAT_PRE_ACL_SIZE_V07
        int "Pre ACL Table Size"
	depends on RA_HW_NAT_V07
	default 383
	help
	Pre ACL + Pre/Post MTR + Pre/Post AC Must less than 512

config  RA_HW_NAT_PRE_MTR_SIZE_V07
        int "Pre Meter Table Size"
	depends on RA_HW_NAT_V07
	default 32
	help
	Pre ACL + Pre/Post MTR + Pre/Post AC Must less than 512

config  RA_HW_NAT_PRE_AC_SIZE_V07
        int "Pre AC Table Size"
	depends on RA_HW_NAT_V07
	default 32
	help
	Pre ACL + Pre/Post MTR + Pre/Post AC Must less than 512

config  RA_HW_NAT_POST_MTR_SIZE_V07
        int "Post Meter Table Size"
	depends on RA_HW_NAT_V07
	default 32
	help
	Pre ACL + Pre/Post MTR + Pre/Post AC Must less than 512

config  RA_HW_NAT_POST_AC_SIZE_V07
        int "Post AC Table Size"
	depends on RA_HW_NAT_V07
	default 32
	help
	Pre ACL + Pre/Post MTR + Pre/Post AC Must less than 512


config  RA_HW_NAT_TCP_KA_V07
        int "TCP KeepAlive Interval(Unit:1Sec)"
	depends on RA_HW_NAT_TBL_1K_V07
	default 5
	help
	HW will duplicate one TCP packet from tcp bind flow to CPU
	in order to refresh Linux conntrack table.

config  RA_HW_NAT_UDP_KA_V07
        int "UDP KeepAlive Interval(Unit:1Sec)"
	depends on RA_HW_NAT_TBL_1K_V07
	default 5
	help
	HW will duplicate one UDP packet from tcp bind flow to CPU
	in order to refresh Linux conntrack table.

config  RA_HW_NAT_TCP_KA_V07
        int "TCP KeepAlive Interval(Unit:2Sec)"
	depends on RA_HW_NAT_TBL_2K_V07
	default 3
	help
	HW will duplicate one TCP packet from tcp bind flow to CPU
	in order to refresh Linux conntrack table.



config  RA_HW_NAT_UDP_KA_V07
        int "UDP KeepAlive Interval(Unit:2Sec)"
	depends on RA_HW_NAT_TBL_2K_V07
	default 3
	help
	HW will duplicate one UDP packet from tcp bind flow to CPU
	in order to refresh Linux conntrack table.


config  RA_HW_NAT_TCP_KA_V07
        int "TCP KeepAlive Interval(Unit:4Sec)"
	depends on RA_HW_NAT_TBL_4K_V07
	default 1
	help
	HW will duplicate one TCP packet from tcp bind flow to CPU
	in order to refresh Linux conntrack table.



config  RA_HW_NAT_UDP_KA_V07
        int "UDP KeepAlive Interval(Unit:4Sec)"
	depends on RA_HW_NAT_TBL_4K_V07
	default 1
	help
	HW will duplicate one UDP packet from tcp bind flow to CPU
	in order to refresh Linux conntrack table.


config  RA_HW_NAT_TCP_KA_V07
        int "TCP KeepAlive Interval(Unit:8Sec)"
	depends on RA_HW_NAT_TBL_8K_V07
	default 1
	help
	HW will duplicate one TCP packet from tcp bind flow to CPU
	in order to refresh Linux conntrack table.


config  RA_HW_NAT_UDP_KA_V07
        int "UDP KeepAlive Interval(Unit:8Sec)"
	depends on RA_HW_NAT_TBL_8K_V07
	default 1
	help
	HW will duplicate one UDP packet from tcp bind flow to CPU
	in order to refresh Linux conntrack table.


config  RA_HW_NAT_TCP_KA_V07
        int "TCP KeepAlive Interval(Unit:16Sec)"
	depends on RA_HW_NAT_TBL_16K_V07
	default 1
	help
	HW will duplicate one TCP packet from tcp bind flow to CPU
	in order to refresh Linux conntrack table.


config  RA_HW_NAT_UDP_KA_V07
        int "UDP KeepAlive Interval(Unit:16Sec)"
	depends on RA_HW_NAT_TBL_16K_V07
	default 1
	help
	HW will duplicate one UDP packet from tcp bind flow to CPU
	in order to refresh Linux conntrack table.


config  RA_HW_NAT_ACL_DLTA_V07
        int "Life time of ACL link to FOE entry(Unit:1Sec)"
	depends on RA_HW_NAT_V07
	default 3
	help
	Set ageout time for ACL link to FoE entry 

config  RA_HW_NAT_UNB_DLTA_V07
        int "Life time of Unbind entry (Unit:1Sec)"
	depends on RA_HW_NAT_V07
	default 3
	help
	set ageout time for bind Unbind entry

config  RA_HW_NAT_UNB_MNP_V07
        int "Min threshold for unbind state(Pkt count)"
	depends on RA_HW_NAT_V07
	default 1000
	help
	An unbind flow whose pkt counts < Min threshold and idle time > Life time 
	=> This unbind entry would be aged out
	[Notes: Idle time = current time - last packet receive time]

config  RA_HW_NAT_UDP_DLTA_V07
        int "Life time of Bind UDP entry (Unit:1Sec)"
	depends on RA_HW_NAT_V07
	default 5
	help
	Set ageout time for bind UDP entry

config  RA_HW_NAT_TCP_DLTA_V07
        int "Life time of Bind TCP entry (Unit:1Sec)"
	depends on RA_HW_NAT_V07
	default 5
	help
	Set ageout time for bind TCP entry

config  RA_HW_NAT_FIN_DLTA_V07
        int "Life time of Bind FIN entry (Unit:1Sec)"
	depends on RA_HW_NAT_V07
	default 5
	help
	Set ageout time for FIN entry
	
config  RA_HW_NAT_IPV6_V07
        bool "IPv6 Routing"
	depends on RA_HW_NAT_V07 && !(RALINK_RT2880 || RALINK_RT3052)
	default n
	help
	"ipv6 routing accelerated by HNAT"

choice
        prompt "Marker Rule"
	depends on RA_HW_NAT_V07
	default RA_HW_NAT_NONE2UP_V07

config  RA_HW_NAT_ACL2UP_HELPER_V07
        bool "Acl Remark Helper"
	depends on RA_HW_NAT_V07
	help
	"use FoE UP to remark VPRI value"

config  RA_HW_NAT_DSCP2UP_HELPER_V07
        bool "DSCP Remark Helper"
	depends on RA_HW_NAT_V07
	help
	"use FoE UP to remark DSCP value"

config  RA_HW_NAT_NONE2UP_V07
	bool "No Remark Helper"

endchoice
