net/mlx5e: Remove overzealous validations in netlink EEPROM query
authorGal Pressman <gal@nvidia.com>
Wed, 26 Jan 2022 14:28:23 +0000 (16:28 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Fri, 11 Mar 2022 07:38:25 +0000 (23:38 -0800)
commit970adfb76095fa719778d70a6b86030d2feb88dd
treec404643fae944be80183938b1aba19d4f32907c8
parentfcb610a86c53dfcfbb2aa62e704481112752f367
net/mlx5e: Remove overzealous validations in netlink EEPROM query

Unlike the legacy EEPROM callbacks, when using the netlink EEPROM query
(get_module_eeprom_by_page) the driver should not try to validate the
query parameters, but just perform the read requested by the userspace.

Recent discussion in the mailing list:
https://lore.kernel.org/netdev/20220120093051.70845141@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net/

Signed-off-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Maxim Mikityanskiy <maximmi@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/port.c