]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
net: liquidio: Remove unused validate_cn23xx_pf_config_info()
authorDr. David Alan Gilbert <linux@treblig.org>
Sat, 14 Jun 2025 23:49:41 +0000 (00:49 +0100)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Jun 2025 23:01:33 +0000 (16:01 -0700)
[Note, I'm wondering if actually this is a case of a missing call;
the other similar function is called in __verify_octeon_config_info(),
but I don't have or know the hardware.]

validate_cn23xx_pf_config_info() was added in 2016 by
commit 72c0091293c0 ("liquidio: CN23XX device init and sriov config")

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://patch.msgid.link/20250614234941.61769-1-linux@treblig.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.c
drivers/net/ethernet/cavium/liquidio/cn23xx_pf_device.h

index ff8f2f9f9cae11cb0053cf078b8948ffd4e6c14e..75f22f74774cb24199f49c96b628243b09935689 100644 (file)
@@ -1208,45 +1208,6 @@ int setup_cn23xx_octeon_pf_device(struct octeon_device *oct)
 }
 EXPORT_SYMBOL_GPL(setup_cn23xx_octeon_pf_device);
 
-int validate_cn23xx_pf_config_info(struct octeon_device *oct,
-                                  struct octeon_config *conf23xx)
-{
-       if (CFG_GET_IQ_MAX_Q(conf23xx) > CN23XX_MAX_INPUT_QUEUES) {
-               dev_err(&oct->pci_dev->dev, "%s: Num IQ (%d) exceeds Max (%d)\n",
-                       __func__, CFG_GET_IQ_MAX_Q(conf23xx),
-                       CN23XX_MAX_INPUT_QUEUES);
-               return 1;
-       }
-
-       if (CFG_GET_OQ_MAX_Q(conf23xx) > CN23XX_MAX_OUTPUT_QUEUES) {
-               dev_err(&oct->pci_dev->dev, "%s: Num OQ (%d) exceeds Max (%d)\n",
-                       __func__, CFG_GET_OQ_MAX_Q(conf23xx),
-                       CN23XX_MAX_OUTPUT_QUEUES);
-               return 1;
-       }
-
-       if (CFG_GET_IQ_INSTR_TYPE(conf23xx) != OCTEON_32BYTE_INSTR &&
-           CFG_GET_IQ_INSTR_TYPE(conf23xx) != OCTEON_64BYTE_INSTR) {
-               dev_err(&oct->pci_dev->dev, "%s: Invalid instr type for IQ\n",
-                       __func__);
-               return 1;
-       }
-
-       if (!CFG_GET_OQ_REFILL_THRESHOLD(conf23xx)) {
-               dev_err(&oct->pci_dev->dev, "%s: Invalid parameter for OQ\n",
-                       __func__);
-               return 1;
-       }
-
-       if (!(CFG_GET_OQ_INTR_TIME(conf23xx))) {
-               dev_err(&oct->pci_dev->dev, "%s: Invalid parameter for OQ\n",
-                       __func__);
-               return 1;
-       }
-
-       return 0;
-}
-
 int cn23xx_fw_loaded(struct octeon_device *oct)
 {
        u64 val;
index 234b96b4f48870d5fbf671ff11cc2cb18c38d754..bbe9f3133b07be8215f33296d96eba49fe446009 100644 (file)
@@ -54,9 +54,6 @@ struct oct_vf_stats {
 
 int setup_cn23xx_octeon_pf_device(struct octeon_device *oct);
 
-int validate_cn23xx_pf_config_info(struct octeon_device *oct,
-                                  struct octeon_config *conf23xx);
-
 u32 cn23xx_pf_get_oq_ticks(struct octeon_device *oct, u32 time_intr_in_us);
 
 int cn23xx_sriov_config(struct octeon_device *oct);