Skip to content

Commit

Permalink
net: macsec: remove the prepare flag from the MACsec offloading context
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Antoine Tenart authored and Jakub Kicinski committed Sep 23, 2022
1 parent 36c2ebc commit 99383f1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion drivers/net/macsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions include/net/macsec.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

/**
Expand Down

0 comments on commit 99383f1

Please sign in to comment.