summaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>2023-12-19 16:53:27 +0200
committerDavid S. Miller <davem@davemloft.net>2023-12-27 13:08:09 +0000
commitb1c036e835b67320316e20e562cc3b4daf8fa08b (patch)
treeb1a95969f407ea4af305cda0e2a7fc666d8cebdd /include/net
parentb34ab3527b9622ca4910df24ff5beed5aa66c6b5 (diff)
net: macsec: move sci_to_cpu to macsec header
Move sci_to_cpu to the MACsec header to use it in drivers. Signed-off-by: Radu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/macsec.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/macsec.h b/include/net/macsec.h
index ebf9bc54036a..a5665e9623f2 100644
--- a/include/net/macsec.h
+++ b/include/net/macsec.h
@@ -325,4 +325,9 @@ static inline void *macsec_netdev_priv(const struct net_device *dev)
return netdev_priv(dev);
}
+static inline u64 sci_to_cpu(sci_t sci)
+{
+ return be64_to_cpu((__force __be64)sci);
+}
+
#endif /* _NET_MACSEC_H_ */