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>
This commit is contained in:
parent
b34ab3527b
commit
b1c036e835
@ -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;
|
||||
|
@ -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_ */
|
||||
|
Loading…
Reference in New Issue
Block a user