From: David S. Miller Date: Thu, 24 Jun 2021 19:41:13 +0000 (-0700) Subject: Merge branch 'macsec-key-length' X-Git-Tag: howlett/maple/20220722_2~2597^2^2~8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=d9b6d26f6569d3ff748f6ba7a9ea3929abe5a17e;p=users%2Fjedix%2Flinux-maple.git Merge branch 'macsec-key-length' Antoine Tenart says: ==================== net: macsec: fix key length when offloading The key length used to copy the key to offloading drivers and to store it is wrong and was working by chance as it matched the default key length. But using a different key length fails. Fix it by using instead the max length accepted in uAPI to store the key and the actual key length when copying it. This was tested on the MSCC PHY driver but not on the Atlantic MAC (looking at the code it looks ok, but testing would be appreciated). ==================== Signed-off-by: David S. Miller --- d9b6d26f6569d3ff748f6ba7a9ea3929abe5a17e