]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita51b86387570643757d876db6d14adfb1a9c7970
tree4d29f24caa08e84ece3a34a9a2ac1e8a915a6311
parentc3eee83b39a18b41ee6aa0b963e847a116fec0a2
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