Commit 99383f12 authored by Antoine Tenart's avatar Antoine Tenart Committed by Jakub Kicinski
Browse files

net: macsec: remove the prepare flag from the MACsec offloading context



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: default avatarAntoine Tenart <atenart@kernel.org>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 36c2ebce
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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)
+0 −2
Original line number Diff line number Diff line
@@ -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;
};

/**