Commit b1c036e8 authored by Radu Pirea (NXP OSS)'s avatar Radu Pirea (NXP OSS) Committed by David S. Miller
Browse files

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: default avatarRadu Pirea (NXP OSS) <radu-nicolae.pirea@oss.nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b34ab352
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -3,11 +3,6 @@
#include <net/macsec.h>
#include "netdevsim.h"

static inline u64 sci_to_cpu(sci_t sci)
{
	return be64_to_cpu((__force __be64)sci);
}

static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci)
{
	int i;
+5 −0
Original line number Diff line number Diff line
@@ -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_ */