提交 99383f12 编写于 作者: A Antoine Tenart 提交者: Jakub Kicinski

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: NAntoine Tenart <atenart@kernel.org>
Signed-off-by: NJakub Kicinski <kuba@kernel.org>
上级 36c2ebce
...@@ -1663,7 +1663,6 @@ static int macsec_offload(int (* const func)(struct macsec_context *), ...@@ -1663,7 +1663,6 @@ static int macsec_offload(int (* const func)(struct macsec_context *),
if (ctx->offload == MACSEC_OFFLOAD_PHY) if (ctx->offload == MACSEC_OFFLOAD_PHY)
mutex_lock(&ctx->phydev->lock); mutex_lock(&ctx->phydev->lock);
ctx->prepare = false;
ret = (*func)(ctx); ret = (*func)(ctx);
if (ctx->offload == MACSEC_OFFLOAD_PHY) if (ctx->offload == MACSEC_OFFLOAD_PHY)
......
...@@ -271,8 +271,6 @@ struct macsec_context { ...@@ -271,8 +271,6 @@ struct macsec_context {
struct macsec_rx_sa_stats *rx_sa_stats; struct macsec_rx_sa_stats *rx_sa_stats;
struct macsec_dev_stats *dev_stats; struct macsec_dev_stats *dev_stats;
} stats; } stats;
u8 prepare:1;
}; };
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册