devlink: Move size validation to core
authorArkadi Sharshevsky <arkadis@mellanox.com>
Tue, 20 Feb 2018 07:44:20 +0000 (08:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Feb 2018 18:38:53 +0000 (13:38 -0500)
commitcc944ead839a28b07cea4f90878f2b7e0cb71a02
treee119957725ff512935733cd9e4f7298540a741b9
parentb99fe0e28fe0ba7d6e17e234e1150f1d9e197632
devlink: Move size validation to core

Currently the size validation is done via a cb, which is unneeded. The
size validation can be moved to core. The next patch will perform cleanup.

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