]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: macsec: remove the prepare flag from the MACsec offloading context
authorAntoine Tenart <atenart@kernel.org>
Wed, 21 Sep 2022 13:51:18 +0000 (15:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 13:56:08 +0000 (06:56 -0700)
Now that the MACsec offloading preparation phase was removed from the
MACsec core implementation as well as from drivers implementing it, we
can safely remove the flag representing it.

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

index 160976929dfed0e5f0938a5e47e91fd089f25c78..8193ab39206f3afed4944ddbc1d55b7eaf7e9785 100644 (file)
@@ -1663,7 +1663,6 @@ static int macsec_offload(int (* const func)(struct macsec_context *),
        if (ctx->offload == MACSEC_OFFLOAD_PHY)
                mutex_lock(&ctx->phydev->lock);
 
-       ctx->prepare = false;
        ret = (*func)(ctx);
 
        if (ctx->offload == MACSEC_OFFLOAD_PHY)
index 871599b11707fe010c4f71ac86e7927f58da9316..5b9c61c4d3a625d1596b24b805cc5975d5844e8a 100644 (file)
@@ -271,8 +271,6 @@ struct macsec_context {
                struct macsec_rx_sa_stats *rx_sa_stats;
                struct macsec_dev_stats  *dev_stats;
        } stats;
-
-       u8 prepare:1;
 };
 
 /**