nvethernetrm: take exported ioctl related header out

Issue: SW needs to support IOCTL on safety builds and
these header should be exposed to user

Fix: Create new header file which is exposed externally
     Fix Coverity issues
     Enable TSN and FRP for safety build
     Optimize the code between eqos and mgbe

Bug 3704251

Change-Id: I2807f8283a296de1f96d3f902cb4ad5a4781be50
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/kernel/nvethernetrm/+/2759333
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: Krishna Thota <kthota@nvidia.com>
This commit is contained in:
Rakesh Goyal
2022-08-11 06:33:53 +05:30
committed by Bhadram Varka
parent c9487962a2
commit baba0efe36
17 changed files with 2216 additions and 2529 deletions

View File

@@ -35,6 +35,14 @@
*/
#define MAX_ARGS 10
/*
*@brief All Stats
*/
struct osi_stats {
struct osi_mmc_counters mmc_s;
struct osi_tsn_stats tsn_s;
};
/**
* @brief IVC commands between OSD & OSI.
*/
@@ -135,10 +143,8 @@ typedef struct ivc_msg_common {
union {
/** IVC argument structure */
ivc_args args;
#ifndef OSI_STRIPPED_LIB
/** avb algorithm structure */
struct osi_core_avb_algorithm avb_algo;
#endif
/** OSI filter structure */
struct osi_filter filter;
/** OSI HW features */
@@ -149,6 +155,8 @@ typedef struct ivc_msg_common {
ivc_core_args init_args;
/** ioctl command structure */
struct osi_ioctl ioctl_data;
/** All stats */
struct osi_stats eth_stats;
#ifdef MACSEC_SUPPORT
/** lut config */
struct osi_macsec_lut_config lut_config;