mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 20:33:58 -04:00
net: add a reference to MACsec ops in net_device
This patch adds a reference to MACsec ops to the net_device structure, allowing net device drivers to implement offloading operations for MACsec. Change-Id: Iedaffed5dbf005a89a5b79030d1165f1019dd33f Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com> Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com> Signed-off-by: Igor Russkikh <irusskikh@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net> Git-commit: 30e9bb8472f4454d0544020574bb03d96ffa0e52 Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git [quic_adamodar@quicinc.com: Fix trivial merge conflicts] Signed-off-by: Akshaya Damodaran <quic_adamodar@quicinc.com>
This commit is contained in:
parent
d6a2023cd2
commit
dc4956515d
1 changed files with 9 additions and 0 deletions
|
|
@ -54,6 +54,8 @@ struct netpoll_info;
|
|||
struct device;
|
||||
struct phy_device;
|
||||
struct dsa_port;
|
||||
struct macsec_context;
|
||||
struct macsec_ops;
|
||||
|
||||
struct sfp_bus;
|
||||
/* 802.11 specific */
|
||||
|
|
@ -1809,6 +1811,8 @@ enum netdev_priv_flags {
|
|||
*
|
||||
* @wol_enabled: Wake-on-LAN is enabled
|
||||
*
|
||||
* @macsec_ops: MACsec offloading ops
|
||||
*
|
||||
* FIXME: cleanup struct net_device such that network protocol info
|
||||
* moves out.
|
||||
*/
|
||||
|
|
@ -2100,6 +2104,11 @@ struct net_device {
|
|||
bool proto_down;
|
||||
unsigned wol_enabled:1;
|
||||
|
||||
#if IS_ENABLED(CONFIG_MACSEC)
|
||||
/* MACsec management functions */
|
||||
const struct macsec_ops *macsec_ops;
|
||||
#endif
|
||||
|
||||
ANDROID_KABI_RESERVE(1);
|
||||
ANDROID_KABI_RESERVE(2);
|
||||
ANDROID_KABI_RESERVE(3);
|
||||
|
|
|
|||
Loading…
Reference in a new issue