mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
nvethernet:macsec:Related change to OSI misra fix
Fixed MISRA 15.5 and 2.5 errors in OSI hence these are the dependednt changes in Linux OSD Bug 3691236 Change-Id: Ie590082025235c48abb1588550121e80b92db487 Signed-off-by: Sanath Kumar Gampa <sgampa@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2735586 Reviewed-by: svcacv <svcacv@nvidia.com> Reviewed-by: svc_kernel_abi <svc_kernel_abi@nvidia.com> Reviewed-by: Mahesh Patil <maheshp@nvidia.com> Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com> Reviewed-by: svc-mobile-cert <svc-mobile-cert@nvidia.com> Reviewed-by: Narayan Reddy <narayanr@nvidia.com> Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
c7376b2390
commit
6104d5e348
@@ -1018,7 +1018,7 @@ static void dump_dbg_buffers(char **buf_p, unsigned short ctlr_sel,
|
||||
}
|
||||
for (i = 0; i < idx_max; i++) {
|
||||
memset(&dbg_buf_config, OSI_NONE, sizeof(dbg_buf_config));
|
||||
dbg_buf_config.rw = OSI_DBG_TBL_READ;
|
||||
dbg_buf_config.rw = OSI_LUT_READ;
|
||||
dbg_buf_config.ctlr_sel = ctlr_sel;
|
||||
dbg_buf_config.index = i;
|
||||
if (osi_macsec_config_dbg_buf(osi_core, &dbg_buf_config) < 0) {
|
||||
@@ -1037,7 +1037,7 @@ static void dump_dbg_buffers(char **buf_p, unsigned short ctlr_sel,
|
||||
/* reset debug buffer after buf read */
|
||||
for (i = 0; i < idx_max; i++) {
|
||||
memset(&dbg_buf_config, OSI_NONE, sizeof(dbg_buf_config));
|
||||
dbg_buf_config.rw = OSI_DBG_TBL_WRITE;
|
||||
dbg_buf_config.rw = OSI_LUT_WRITE;
|
||||
dbg_buf_config.ctlr_sel = ctlr_sel;
|
||||
dbg_buf_config.index = i;
|
||||
if (osi_macsec_config_dbg_buf(osi_core, &dbg_buf_config) < 0) {
|
||||
@@ -1131,7 +1131,7 @@ static ssize_t macsec_dbg_events_store(struct device *dev,
|
||||
}
|
||||
}
|
||||
dbg_buf_config.ctlr_sel = controller;
|
||||
dbg_buf_config.rw = OSI_DBG_TBL_WRITE;
|
||||
dbg_buf_config.rw = OSI_LUT_WRITE;
|
||||
|
||||
if (osi_macsec_dbg_events_config(osi_core, &dbg_buf_config) < 0) {
|
||||
dev_err(dev, "%s: Failed to config dbg trigger events\n", __func__);
|
||||
@@ -1672,7 +1672,7 @@ static ssize_t macsec_sc_state_lut_store(struct device *dev,
|
||||
|
||||
if ((index > OSI_SC_LUT_MAX_INDEX) ||
|
||||
(ctlr != OSI_CTLR_SEL_TX && ctlr != OSI_CTLR_SEL_RX) ||
|
||||
(curr_an > OSI_CURR_AN_MAX)) {
|
||||
(curr_an >= OSI_MAX_NUM_SA)) {
|
||||
dev_err(pdata->dev, "%s:Invalid inputs", __func__);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user