ethdev: validate input in module EEPROM dump
authorChengchang Tang <tangchengchang@huawei.com>
Fri, 2 Apr 2021 02:58:48 +0000 (10:58 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 7 Apr 2021 22:26:39 +0000 (00:26 +0200)
commite2bd08d569d9821131d8e245446d24eaed145f21
treebd28fb6fd617231f6c7c65ae32b21301032e2e6e
parent23abee9dea8b7469559389bea67af1b68e5a9b81
ethdev: validate input in module EEPROM dump

The validity verification of input parameters should be performed at
API layer, not in the PMD.

Fixes: 3a18c44b45df ("ethdev: add access to EEPROM")
Fixes: 40ff8b305ab8 ("net/e1000: add module EEPROM callbacks for e1000")
Fixes: f2088e785cca ("net/i40e: fix dereference before check when getting EEPROM")
Fixes: b74d0cd43e37 ("net/ixgbe: add module EEPROM callbacks for ixgbe")
Fixes: 8a6a09f853a0 ("net/mlx5: support reading module EEPROM data")
Fixes: 58f6f93c34c1 ("net/octeontx2: add module EEPROM dump")
Cc: stable@dpdk.org
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/e1000/igb_ethdev.c
drivers/net/i40e/i40e_ethdev.c
drivers/net/ixgbe/ixgbe_ethdev.c
drivers/net/mlx5/linux/mlx5_ethdev_os.c
drivers/net/octeontx2/otx2_ethdev_ops.c
lib/librte_ethdev/rte_ethdev.c
lib/librte_ethdev/rte_ethdev.h