[RFC net-next v1 1/5] net: macsec: declare macsec_pn_wrapped shim
From: Radu Pirea (NXP OSS)
Date: Fri Aug 11 2023 - 11:33:51 EST
Declare macsec_pn_wrapped shim if CONFIG_MACSEC=N to allow the drivers
to build the macsec support.
Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@xxxxxxxxxxx>
---
include/net/macsec.h | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/include/net/macsec.h b/include/net/macsec.h
index 441ed8fd4b5f..33dc7f2aa42e 100644
--- a/include/net/macsec.h
+++ b/include/net/macsec.h
@@ -304,7 +304,14 @@ struct macsec_ops {
int (*mdo_get_rx_sa_stats)(struct macsec_context *ctx);
};
+#if IS_ENABLED(CONFIG_MACSEC)
void macsec_pn_wrapped(struct macsec_secy *secy, struct macsec_tx_sa *tx_sa);
+#else
+static inline void macsec_pn_wrapped(struct macsec_secy *secy,
+ struct macsec_tx_sa *tx_sa)
+{
+}
+#endif
static inline bool macsec_send_sci(const struct macsec_secy *secy)
{
const struct macsec_tx_sc *tx_sc = &secy->tx_sc;
--
2.34.1