nvethernet: update code to use new structure

Remove not required members of ifr_data structure.
Add structure in exported header file.
Add support in code to understand new data structure.

Bug 3704251

Change-Id: I495b34edaa6ac324933508c12a3612de4a52175b
Signed-off-by: Rakesh Goyal <rgoyal@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2782590
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Narayan Reddy <narayanr@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Bhadram Varka <vbhadram@nvidia.com>
Reviewed-by: Ashutosh Jha <ajha@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Rakesh Goyal
2022-09-26 17:06:35 +05:30
committed by Revanth Kumar Uppala
parent 36df82d64b
commit e7ff48aaad
3 changed files with 35 additions and 45 deletions

View File

@@ -55,4 +55,22 @@ struct ether_l2_filter {
/** Ethernet MAC address to be added */
nveu8_t mac_address[OSI_ETH_ALEN];
};
/**
* @brief struct ether_exported_ifr_data - Private data of struct ifreq
*/
struct ether_exported_ifr_data {
/** Flags used for specific ioctl - like enable/disable */
nveu32_t if_flags;
/** qinx: Queue index to be used for certain ioctls */
nveu32_t qinx;
/** The private ioctl command number */
nveu32_t ifcmd;
/** Used to query the connected link speed */
nveu32_t connected_speed;
/** The return value of IOCTL handler func */
nve32_t command_error;
/** IOCTL cmd specific structure pointer */
void *ptr;
};
#endif /* ETHER_EXPORT_H */