[dpdk-dev] [PATCH v2 1/2] net/mlx5: move getter functions from net to common

Raslan Darawsheh rasland at mellanox.com
Mon Jun 22 17:07:51 CEST 2020


Hi,

> -----Original Message-----
> From: Ori Kam <orika at mellanox.com>
> Sent: Friday, June 19, 2020 10:30 AM
> To: Matan Azrad <matan at mellanox.com>; Slava Ovsiienko
> <viacheslavo at mellanox.com>; Shahaf Shuler <shahafs at mellanox.com>
> Cc: dev at dpdk.org; Ori Kam <orika at mellanox.com>; Raslan Darawsheh
> <rasland at mellanox.com>; Ophir Munk <ophirmu at mellanox.com>
> Subject: [PATCH v2 1/2] net/mlx5: move getter functions from net to
> common
> 
> From: Ophir Munk <ophirmu at mellanox.com>
> 
> Getter functions such as: 'mlx5_os_get_ctx_device_name',
> 'mlx5_os_get_ctx_device_path', 'mlx5_os_get_dev_device_name',
> 'mlx5_os_get_umem_id' are implemented under net directory. To enable
> additional devices (e.g. regex, vdpa) to access these getter functions
> they are moved under common directory.
> 
> As part of this commit string sizes DEV_SYSFS_NAME_MAX and
> DEV_SYSFS_PATH_MAX are increased by 1 to make sure that the destination
> string size in strncpy() function is bigger than the source string size.
> This update will avoid GCC version 8 error -Werror=stringop-truncation.
> 
> Signed-off-by: Ophir Munk <ophirmu at mellanox.com>
> Acked-by: Matan Azrad <matan at mellanox.com>
> ---
> v2:
> * avoid GCC version 8 error.
> ---



Series rebased and applied to next-net-mlx,

Kindest regards,
Raslan Darawsheh


More information about the dev mailing list