Skip to content

Commit

Permalink
[PKT_SCHED]: Make TEXTSEARCH* options only selected.
Browse files Browse the repository at this point in the history
Do not present these confusing new options to the user
unless he picked some facility that makes use of it,
such as NET_EMATCH_TEXT.

Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
davem330 committed Jun 25, 2005
1 parent b3e112b commit f770434
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 24 deletions.
28 changes: 6 additions & 22 deletions lib/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -63,32 +63,16 @@ config REED_SOLOMON_ENC16
config REED_SOLOMON_DEC16
boolean

#
# Textsearch support is select'ed if needed
#
config TEXTSEARCH
boolean "Textsearch infrastructure"
default y
help
Say Y here if you want to provide a textsearch infrastructure
to other subsystems.
boolean

config TEXTSEARCH_KMP
depends on TEXTSEARCH
tristate "Knuth-Morris-Pratt"
help
Say Y here if you want to be able to search text using the
Knuth-Morris-Pratt textsearch algorithm.

To compile this code as a module, choose M here: the
module will be called ts_kmp.
tristate

config TEXTSEARCH_FSM
depends on TEXTSEARCH
tristate "Finite state machine"
help
Say Y here if you want to be able to search text using a
naive finite state machine approach implementing a subset
of regular expressions.

To compile this code as a module, choose M here: the
module will be called ts_fsm.
tristate

endmenu
5 changes: 3 additions & 2 deletions net/sched/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,11 @@ config NET_EMATCH_TEXT
tristate "Textsearch"
depends on NET_EMATCH
select TEXTSEARCH
select TEXTSEARCH_KMP
select TEXTSEARCH_FSM
---help---
Say Y here if you want to be ablt to classify packets based on
textsearch comparisons. Please select the appropriate textsearch
algorithms in the Library section.
textsearch comparisons.

To compile this code as a module, choose M here: the
module will be called em_text.
Expand Down

0 comments on commit f770434

Please sign in to comment.