fman_if_get_fdoff(), fman_if_discard_rx_errors() and
netcfg_release() have no caller. The netcfg teardown path frees the
configuration directly.

Signed-off-by: Stephen Hemminger <[email protected]>
---
 drivers/bus/dpaa/base/fman/fman_hw.c      | 34 -----------------------
 drivers/bus/dpaa/base/fman/netcfg_layer.c | 11 --------
 drivers/bus/dpaa/include/fsl_fman.h       |  2 --
 drivers/bus/dpaa/include/netcfg.h         |  1 -
 4 files changed, 48 deletions(-)

diff --git a/drivers/bus/dpaa/base/fman/fman_hw.c 
b/drivers/bus/dpaa/base/fman/fman_hw.c
index 3aa502c6e1..42e4f677a4 100644
--- a/drivers/bus/dpaa/base/fman/fman_hw.c
+++ b/drivers/bus/dpaa/base/fman/fman_hw.c
@@ -572,23 +572,6 @@ fman_if_set_fc_quanta(struct fman_if *fm_if, u16 
pause_quanta)
        return 0;
 }
 
-int
-fman_if_get_fdoff(struct fman_if *fm_if)
-{
-       u32 fmbm_rebm;
-       int fdoff;
-
-       struct __fman_if *__if = container_of(fm_if, struct __fman_if, __if);
-
-       assert(fman_ccsr_map_fd != -1);
-
-       fmbm_rebm = in_be32(&((struct rx_bmi_regs 
*)__if->rx_bmi_map)->fmbm_rebm);
-
-       fdoff = (fmbm_rebm >> FMAN_SP_EXT_BUF_MARG_START_SHIFT) & 0x1ff;
-
-       return fdoff;
-}
-
 void
 fman_if_set_err_fqid(struct fman_if *fm_if, uint32_t err_fqid)
 {
@@ -747,23 +730,6 @@ fman_if_set_dnia(struct fman_if *fm_if, uint32_t nia)
        out_be32(fmqm_pndn, nia);
 }
 
-void
-fman_if_discard_rx_errors(struct fman_if *fm_if)
-{
-       struct __fman_if *__if = container_of(fm_if, struct __fman_if, __if);
-       unsigned int *fmbm_rfsdm, *fmbm_rfsem;
-
-       fmbm_rfsem = &((struct rx_bmi_regs *)__if->rx_bmi_map)->fmbm_rfsem;
-       out_be32(fmbm_rfsem, 0);
-
-       /* Configure the discard mask to discard the error packets which have
-        * DMA errors, Frame size error, Header error etc. The mask 0x010EE3F0
-        * is to configured discard all the errors which come in the FD[STATUS]
-        */
-       fmbm_rfsdm = &((struct rx_bmi_regs *)__if->rx_bmi_map)->fmbm_rfsdm;
-       out_be32(fmbm_rfsdm, 0x010EE3F0);
-}
-
 void
 fman_if_receive_rx_errors(struct fman_if *fm_if,
        unsigned int err_eq)
diff --git a/drivers/bus/dpaa/base/fman/netcfg_layer.c 
b/drivers/bus/dpaa/base/fman/netcfg_layer.c
index 9bc4447dd0..3ac9f103f9 100644
--- a/drivers/bus/dpaa/base/fman/netcfg_layer.c
+++ b/drivers/bus/dpaa/base/fman/netcfg_layer.c
@@ -146,14 +146,3 @@ netcfg_acquire(void)
 
        return NULL;
 }
-
-void
-netcfg_release(struct netcfg_info *cfg_ptr)
-{
-       rte_free(cfg_ptr);
-       /* Close socket for shared interfaces */
-       if (skfd >= 0) {
-               close(skfd);
-               skfd = -1;
-       }
-}
diff --git a/drivers/bus/dpaa/include/fsl_fman.h 
b/drivers/bus/dpaa/include/fsl_fman.h
index a4f6eb59fc..86869320ca 100644
--- a/drivers/bus/dpaa/include/fsl_fman.h
+++ b/drivers/bus/dpaa/include/fsl_fman.h
@@ -133,7 +133,6 @@ int fman_if_set_ic_params(struct fman_if *fm_if,
                          const struct fman_if_ic_params *icp);
 
 /* Get interface fd->offset value */
-int fman_if_get_fdoff(struct fman_if *fm_if);
 
 /* Set interface fd->offset value */
 __rte_internal
@@ -159,7 +158,6 @@ void fman_if_set_maxfrm(struct fman_if *fm_if, uint16_t 
max_frm);
 void fman_if_set_dnia(struct fman_if *fm_if, uint32_t nia);
 
 /* discard error packets on rx */
-void fman_if_discard_rx_errors(struct fman_if *fm_if);
 
 __rte_internal
 void fman_if_receive_rx_errors(struct fman_if *fm_if,
diff --git a/drivers/bus/dpaa/include/netcfg.h 
b/drivers/bus/dpaa/include/netcfg.h
index 842ce95d92..c69a9464da 100644
--- a/drivers/bus/dpaa/include/netcfg.h
+++ b/drivers/bus/dpaa/include/netcfg.h
@@ -38,7 +38,6 @@ struct netcfg_info *netcfg_acquire(void);
 /* cfg_ptr: configuration information pointer.
  * Frees the resources allocated by the configuration layer.
  */
-void netcfg_release(struct netcfg_info *cfg_ptr);
 
 #ifdef RTE_LIBRTE_DPAA_DEBUG_DRIVER
 /* cfg_ptr: configuration information pointer.
-- 
2.53.0

Reply via email to