sched: act: ife: move encode/decode check to init
authorAlexander Aring <aring@mojatatu.com>
Wed, 11 Oct 2017 21:16:06 +0000 (17:16 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 Oct 2017 05:23:02 +0000 (22:23 -0700)
commit734534e9a8e537d33d3598fa03b98eb089819961
tree4d29f24caa08e84ece3a34a9a2ac1e8a915a6311
parented7f26223bb65d421cf3932de0d94c1cec4e1543
sched: act: ife: move encode/decode check to init

This patch adds the check of the two possible ife handlings encode
and decode to the init callback. The decode value is for usability
aspect and used in userspace code only. The current code offers encode
else decode only. This patch avoids any other option than this.

Signed-off-by: Alexander Aring <aring@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ife.c