diff options
author | Emeel Hakim <ehakim@nvidia.com> | 2022-11-21 18:16:58 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2023-07-26 10:05:58 +0200 |
commit | e966209178fe73297fc3461f903d6622b5d1417a (patch) | |
tree | 85af0b1f73c65f4319765fdaac2e5f0ab956618f /lib/route/link/macsec.c | |
parent | c7d473fd7ba21bd17433136c331c7821bc694cfd (diff) | |
download | libnl-e966209178fe73297fc3461f903d6622b5d1417a.tar.gz |
macsec: Drop offload capability validation check
Currently, rtnl_link_macsec_set_offload rejects any value
greater than 1 limiting the MACSEC_ATTR_OFFLOAD attribute
to the values 0 and 1 where other values are also legal.
Drop such a check since it is redundant, eventually the user
will send the netlink message to kernel, and whether the
message is valid depends on kernel.
Fixes: b6cc13d76b29 ('Supporting Hardware offload capability for MACsec')
Signed-off-by: Emeel Hakim <ehakim@nvidia.com>
http://lists.infradead.org/pipermail/libnl/2023-February/002417.html
http://lists.infradead.org/pipermail/libnl/2023-February/002420.html
http://lists.infradead.org/pipermail/libnl/2023-February/002424.html
https://github.com/thom311/libnl/pull/336
https://github.com/thom311/libnl/pull/341
Diffstat (limited to 'lib/route/link/macsec.c')
-rw-r--r-- | lib/route/link/macsec.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/route/link/macsec.c b/lib/route/link/macsec.c index 16b65b04..e8879ab0 100644 --- a/lib/route/link/macsec.c +++ b/lib/route/link/macsec.c @@ -652,9 +652,6 @@ int rtnl_link_macsec_set_offload(struct rtnl_link *link, uint8_t offload) IS_MACSEC_LINK_ASSERT(link); - if (offload > 1) - return -NLE_INVAL; - info->offload = offload; info->ce_mask |= MACSEC_ATTR_OFFLOAD; |