mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-27 03:30:53 +07:00
team: allow read/write-only options
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
596e2024c4
commit
f82b959d26
@ -346,6 +346,8 @@ static int team_option_get(struct team *team,
|
||||
struct team_option_inst *opt_inst,
|
||||
struct team_gsetter_ctx *ctx)
|
||||
{
|
||||
if (!opt_inst->option->getter)
|
||||
return -EOPNOTSUPP;
|
||||
return opt_inst->option->getter(team, ctx);
|
||||
}
|
||||
|
||||
@ -355,6 +357,8 @@ static int team_option_set(struct team *team,
|
||||
{
|
||||
int err;
|
||||
|
||||
if (!opt_inst->option->setter)
|
||||
return -EOPNOTSUPP;
|
||||
err = opt_inst->option->setter(team, ctx);
|
||||
if (err)
|
||||
return err;
|
||||
|
Loading…
Reference in New Issue
Block a user