Message ID | a446ae81ec70b992df81860c22a8c4057c39f39d.1667204360.git.sd@queasysnail.net (mailing list archive) |
---|---|
State | Accepted |
Commit | 80df4706357a5a06bbbc70273bf2611df1ceee04 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | macsec: offload-related fixes | expand |
diff --git a/drivers/net/macsec.c b/drivers/net/macsec.c index 1b4d856f4bd7..700a8f96c6c2 100644 --- a/drivers/net/macsec.c +++ b/drivers/net/macsec.c @@ -2571,7 +2571,7 @@ static bool macsec_is_configured(struct macsec_dev *macsec) struct macsec_tx_sc *tx_sc = &secy->tx_sc; int i; - if (secy->n_rx_sc > 0) + if (secy->rx_sc) return true; for (i = 0; i < MACSEC_NUM_AN; i++)