devlink: allow to fillup eswitch attrs even if mode_get op does not exist
authorJiri Pirko <jiri@mellanox.com>
Thu, 9 Feb 2017 14:54:36 +0000 (15:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 19:43:00 +0000 (14:43 -0500)
commit4456f61cfd2a589c4368fe0b9080b646b9bd470d
tree89ec0319f0c7cfa0bfcebae01f1bc04928fb1fbe
parent1a6aa36b6f92b1a2f2e6789f6785372d4d6ddca9
devlink: allow to fillup eswitch attrs even if mode_get op does not exist

Even when mode_get op is not present, other eswitch attrs need to be
filled-up.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c