diff --git a/include/net/macsec.h b/include/net/macsec.h index 45e274e39f08..52874cdfe226 100644 --- a/include/net/macsec.h +++ b/include/net/macsec.h @@ -231,7 +231,10 @@ struct macsec_secy { * struct macsec_context - MACsec context for hardware offloading */ struct macsec_context { - struct phy_device *phydev; + union { + struct net_device *netdev; + struct phy_device *phydev; + }; enum macsec_offload offload; struct macsec_secy *secy;