Rework config.

Signed-off-by: yucai <yucai.yu@intel.com>