Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Radu Pirea (NXP OSS) and committed by
David S. Miller
b1c036e8 b34ab352

+5 -5
-5
drivers/net/netdevsim/macsec.c
··· 3 3 #include <net/macsec.h> 4 4 #include "netdevsim.h" 5 5 6 - static inline u64 sci_to_cpu(sci_t sci) 7 - { 8 - return be64_to_cpu((__force __be64)sci); 9 - } 10 - 11 6 static int nsim_macsec_find_secy(struct netdevsim *ns, sci_t sci) 12 7 { 13 8 int i;
+5
include/net/macsec.h
··· 325 325 return netdev_priv(dev); 326 326 } 327 327 328 + static inline u64 sci_to_cpu(sci_t sci) 329 + { 330 + return be64_to_cpu((__force __be64)sci); 331 + } 332 + 328 333 #endif /* _NET_MACSEC_H_ */