mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
netdevsim: Change nsim_devlink_setup to return error to caller
Change nsim_devlink_setup to return any error back to the caller and update nsim_init to handle it. Requested-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David Ahern <dsa@cumulusnetworks.com> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
6851cf28db
commit
ef81710258
@@ -117,7 +117,7 @@ enum nsim_resource_id {
|
||||
NSIM_RESOURCE_IPV6_FIB_RULES,
|
||||
};
|
||||
|
||||
void nsim_devlink_setup(struct netdevsim *ns);
|
||||
int nsim_devlink_setup(struct netdevsim *ns);
|
||||
void nsim_devlink_teardown(struct netdevsim *ns);
|
||||
|
||||
int nsim_devlink_init(void);
|
||||
@@ -128,8 +128,9 @@ void nsim_fib_exit(void);
|
||||
u64 nsim_fib_get_val(struct net *net, enum nsim_resource_id res_id, bool max);
|
||||
int nsim_fib_set_max(struct net *net, enum nsim_resource_id res_id, u64 val);
|
||||
#else
|
||||
static inline void nsim_devlink_setup(struct netdevsim *ns)
|
||||
static inline int nsim_devlink_setup(struct netdevsim *ns)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void nsim_devlink_teardown(struct netdevsim *ns)
|
||||
|
||||
Reference in New Issue
Block a user