mirror of
git://nv-tegra.nvidia.com/kernel/nvethernetrm.git
synced 2025-12-24 10:34:24 +03:00
macsec: get next PN and IRQ stats cmd with server
Some of the commands such as get next PN and irq stats are not working if thernet server is enabled, fixed the same. And also moved HKEY generation to OSD, to avoid dependency on Crypto libs on LK. devmemr/w can read/write to macsec addresses Bug 3522740 Change-Id: Id3b328cfd83aa976ef5bde8adc057588bb6fed38 Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2652212 Reviewed-by: Mahesh Patil <maheshp@nvidia.com> Reviewed-by: Gaurav Asati <gasati@nvidia.com> Reviewed-by: Krishna Thota <kthota@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
97d5787a79
commit
65a9cb659e
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2020-2021, NVIDIA CORPORATION. All rights reserved.
|
||||
* Copyright (c) 2020-2022, NVIDIA CORPORATION. All rights reserved.
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a
|
||||
* copy of this software and associated documentation files (the "Software"),
|
||||
@@ -57,6 +57,7 @@ typedef enum ivc_cmd {
|
||||
read_mmc_macsec,
|
||||
dbg_buf_config_macsec,
|
||||
dbg_events_config_macsec,
|
||||
macsec_get_sc_lut_key_index,
|
||||
}ivc_cmd;
|
||||
|
||||
/**
|
||||
@@ -110,6 +111,10 @@ typedef struct macsec_config {
|
||||
unsigned short ctlr;
|
||||
/** MACsec KT index */
|
||||
unsigned short kt_idx;
|
||||
/** MACsec KT index */
|
||||
nve32_t key_index;
|
||||
/** MACsec SCI */
|
||||
nveu8_t sci[OSI_SCI_LEN];
|
||||
} macsec_config;
|
||||
#endif
|
||||
|
||||
@@ -157,6 +162,8 @@ typedef struct ivc_msg_common {
|
||||
macsec_config macsec_cfg;
|
||||
/** macsec mmc counters */
|
||||
struct osi_macsec_mmc_counters macsec_mmc;
|
||||
/** macsec IRQ stats */
|
||||
struct osi_macsec_irq_stats macsec_irq_stats;
|
||||
#endif
|
||||
}data;
|
||||
} ivc_msg_common_t;
|
||||
|
||||
Reference in New Issue
Block a user