]> git.baikalelectronics.ru Git - kernel.git/commit
devlink: fix the name of eswitch commands
authorJiri Pirko <jiri@mellanox.com>
Thu, 9 Feb 2017 14:54:33 +0000 (15:54 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 10 Feb 2017 19:43:00 +0000 (14:43 -0500)
commit676568f4694838a2a0d45f2c7f9e26c62e97414e
tree17248214781b48ed61a320815f876351aadea61d
parente60226983045f5a4e9b7547dbf987d92d0f66b3b
devlink: fix the name of eswitch commands

The eswitch_[gs]et command is supposed to be similar to port_[gs]et
command - for multiple eswitch attributes. However, when it was introduced
by 86c2d76cd17c ("net/devlink: Add E-Switch mode control") it was wrongly
named with the word "mode" in it. So fix this now, make the oririnal
enum value existing but obsolete.

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