ipvlan: fix return error code for rtnl_link_ipvlan_get_mode()
rtnl_link_ipvlan_get_mode() was just introduced as new API. Fix the error code to return -NLE_INVAL instead of -NLE_OPNOTSUPP. http://lists.infradead.org/pipermail/libnl/2015-June/001921.html
This commit is contained in:
parent
e29c979e88
commit
d21790bf96
1 changed files with 1 additions and 1 deletions
|
@ -235,7 +235,7 @@ int rtnl_link_ipvlan_get_mode(struct rtnl_link *link, uint16_t *out_mode)
|
|||
IS_IPVLAN_LINK_ASSERT(link);
|
||||
|
||||
if (!(ipi->ipi_mask & IPVLAN_HAS_MODE))
|
||||
return -NLE_OPNOTSUPP;
|
||||
return -NLE_INVAL;
|
||||
*out_mode = ipi->ipi_mode;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue