nvethernet: fix 5.7 misra issues

- Fixed 5.7 misra issues

Bug 3697619
Bug 4449611

Change-Id: I18c3a974ecf01e6981e4f12cbfab040ef7cfa4ca
Signed-off-by: Hareesh Kesireddy <hkesireddy@nvidia.com>
(cherry picked from commit a39b7769b1392d3948160fdcb31ed8765e680882)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3074671
(cherry picked from commit c37e93314db10145238bd5784dfbfca10b60012f)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3081222
Reviewed-by: Narayana Reddy P <narayanr@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: Srinivas Ramachandran <srinivasra@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Tested-by: Bhadram Varka <vbhadram@nvidia.com>
This commit is contained in:
Hareesh
2024-01-04 05:59:58 +00:00
committed by mobile promotions
parent 1c517ab4d5
commit 5c21e5aafb
3 changed files with 12 additions and 15 deletions

View File

@@ -1,7 +1,5 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2019-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
*/
/* Copyright (c) 2019-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved */
#include "ether_linux.h"
@@ -587,8 +585,8 @@ static int ether_config_l2_filters(struct net_device *dev,
ioctl_data.l2_filter.oper_mode |= OSI_OPER_ADDR_DEL;
}
memcpy(ioctl_data.l2_filter.mac_address,
u_l2_filter.mac_address, ETH_ALEN);
memcpy(ioctl_data.l2_filter.mac_addr,
u_l2_filter.mac_addr, ETH_ALEN);
ioctl_data.l2_filter.dma_routing = OSI_ENABLE;
ioctl_data.l2_filter.addr_mask = OSI_DISABLE;
ioctl_data.l2_filter.dma_chan = osi_dma->dma_chans[0];