Message ID | 20200310150342.1701-4-irusskikh@marvell.com |
---|---|
State | New |
Headers | show |
Series | [RFC,v2,01/16] net: introduce the MACSEC netdev feature | expand |
diff --git a/include/net/macsec.h b/include/net/macsec.h index 92e43db8b566..5ccdb2bc84df 100644 --- a/include/net/macsec.h +++ b/include/net/macsec.h @@ -178,7 +178,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;