Thread (34 messages) 34 messages, 7 authors, 2023-09-01

Re: [RFC net-next v2 3/5] net: phy: nxp-c45-tja11xx add MACsec support

From: Radu Pirea (OSS) <hidden>
Date: 2023-08-25 13:45:13
Also in: lkml


On 25.08.2023 16:29, Andrew Lunn wrote:
quoted
quoted
+static bool nxp_c45_rx_sc_valid(struct nxp_c45_secy *phy_secy,
+				struct macsec_rx_sc *rx_sc)
+{
+	u16 port =  (__force u64)rx_sc->sci >> (ETH_ALEN * 8);
u64 sci = be64_to_cpu((__force __be64)rx_sc->sci);
why is the __force needed? What happens with a normal cast?
Sparse will print warnings if __force is missing.
     Andrew
-- 
Radu P.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help