teamd: config: allow to iterate over array indexes

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: add teamd_config_path_exists function

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: config: fix array index parsing in json path

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: hash_func: convert to use config getters

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: config: introduce TEAMD_CONFIG_PATH_MAXLEN define

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: config: introduce path cookies

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: config: introduce array check

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: lw: convert to use teamd config getters

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
teamd: move state related stuff into separate header

Signed-off-by: Jiri Pirko <jiri@resnulli.us>