]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'macsec-key-length'
authorDavid S. Miller <davem@davemloft.net>
Thu, 24 Jun 2021 19:41:13 +0000 (12:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Jun 2021 19:41:13 +0000 (12:41 -0700)
commit922c73835558fd71afb266f25dbc0c22f335b1d7
treec7466d702d0f11a6794c53e5dc986dd08ea4ad4f
parentca65733e6388b9c6cd6e4267b93290dc6de6ab05
parent933112d057f2f2c33bbaa9cd7765d3f442360fa2
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 <davem@davemloft.net>