net/mlx5: rework parameters parsing
authorShahaf Shuler <shahafs@mellanox.com>
Tue, 18 Apr 2017 10:22:27 +0000 (13:22 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 19 Apr 2017 13:37:37 +0000 (15:37 +0200)
commit50b244a1791074aa9b7168155106f0c2cf5a745f
treed4ea2a7501623898c9e31ed17e7531a5538d1b8a
parent7492d0f5a1525ca2909f201c1932bc4025fa1a83
net/mlx5: rework parameters parsing

Currently the argument process is done without indication which
parameter was forced by the application and which one is on it
default value.
This becomes problematic when different features requires different
defaults. For example, Enhanced multi packet send and TSO.

This commit modifies the argument process, enabling to differ
which parameter was forced by the application.

Signed-off-by: Shahaf Shuler <shahafs@mellanox.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
drivers/net/mlx5/mlx5.c