Thread (20 messages) 20 messages, 4 authors, 2023-08-17

[RFC net-next v1 1/5] net: macsec: declare macsec_pn_wrapped shim

flat view
STALE1161d SUPERSEDED

From: Radu Pirea (NXP OSS) <hidden>
Date: 2023-08-11 15:33:51
Also in: lkml
Subsystem: networking [general], networking [macsec], the rest · Maintainers: "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Sabrina Dubroca, Linus Torvalds

Revision v1 of 9 in this series.

Revisions (9)
  1. v1 current
  2. v2 [diff vs current]
  3. v3 [diff vs current]
  4. v4 [diff vs current]
  5. v5 [diff vs current]
  6. v6 [diff vs current]
  7. v7 [diff vs current]
  8. v8 [diff vs current]
  9. v9 [diff vs current]
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) <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help