]> git.baikalelectronics.ru Git - kernel.git/commit
net: macsec: remove the prepare phase when offloading
authorAntoine Tenart <atenart@kernel.org>
Wed, 21 Sep 2022 13:51:14 +0000 (15:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 13:56:08 +0000 (06:56 -0700)
commit8e54f8c74be56749f0083e2cfcea781502cc91cd
treecee75e22ce4ce2761a73f7a47e85293d50f70472
parentfb5a4dbe5142a372fbe8c4a9294557824928d8d9
net: macsec: remove the prepare phase when offloading

The hardware offloading in MACsec was initially supported using 2 phases.
This was proposed in the RFC as this could have allowed easier fallback
to the software implementation if the hardware did not support a feature
or had enough entries already. But this fallback wasn't implemented and
might not be a good idea after all. In addition it turned out this logic
didn't mapped well the hardware logic and device drivers were mostly
ignoring the preparation phase.

Let's remove this as it does not offer any advantage and is ignored by
drivers.

Signed-off-by: Antoine Tenart <atenart@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/macsec.c