mempool/octeontx: move mbox from event to mempool
authorSantosh Shukla <santosh.shukla@caviumnetworks.com>
Mon, 16 Oct 2017 13:42:46 +0000 (13:42 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 23 Oct 2017 14:51:00 +0000 (16:51 +0200)
commit89ee1e94bc2d97ccb1ee00c834d81b1a895d0241
tree47bdc41b5ffd06186e18922f55d173a932918bbe
parent1513fc302300f309a3a14d3d88ebafc223d54057
mempool/octeontx: move mbox from event to mempool

Octeontx mempool pmd need mailbox for pool setup.
That mailbox was defined at drivers/event/octeontx.
So mempool has dependency on event/octeontx driver and
commit:8700239f7767 has added make rule which makes sure event/*
get build before mempool, but this rule introduces
cyclic dependency and may create problem to future
feature addition in drivers/Makefile.

Same problem noticed and reported in below thread:
http://dpdk.org/ml/archives/dev/2017-October/079187.html

The patch solves problem by moving mbox definition from
drivers/event/octeontx to drivers/mempool/octeontx.
Moving mbox files involves below changes:

* Renamed ssovf_mbox.[ch] --> octeontx_mbox.[ch]
* Renamed ssovf_probe.c  --> octeontx_ssovf.c
* Introduced pool logger file.
* Moved API from rte_pmd_octeontx_ssovf_version.map to
  rte_mempool_octeontx_version.map.
* Respective Makefile changes done in
  drivers/event/octeontx/Makefile and drivers/mempool/octeontx/Makefile.

Fixes: 8700239f7767 ("mempool/octeontx: add build and log infrastructure")

Reported-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Signed-off-by: Santosh Shukla <santosh.shukla@caviumnetworks.com>
Tested-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Reviewed-by: Pavan Nikhilesh <pbhagavatula@caviumnetworks.com>
22 files changed:
drivers/Makefile
drivers/event/Makefile
drivers/event/octeontx/Makefile
drivers/event/octeontx/rte_pmd_octeontx_ssovf.h [deleted file]
drivers/event/octeontx/rte_pmd_octeontx_ssovf_version.map
drivers/event/octeontx/ssovf_evdev.h
drivers/event/octeontx/ssovf_mbox.c [deleted file]
drivers/event/octeontx/ssovf_probe.c [deleted file]
drivers/event/octeontx/ssovf_worker.h
drivers/mempool/Makefile
drivers/mempool/octeontx/Makefile
drivers/mempool/octeontx/octeontx_fpavf.c
drivers/mempool/octeontx/octeontx_fpavf.h
drivers/mempool/octeontx/octeontx_mbox.c [new file with mode: 0644]
drivers/mempool/octeontx/octeontx_mbox.h [new file with mode: 0644]
drivers/mempool/octeontx/octeontx_pool_logs.h [new file with mode: 0644]
drivers/mempool/octeontx/octeontx_ssovf.c [new file with mode: 0644]
drivers/mempool/octeontx/rte_mempool_octeontx_version.map
drivers/net/Makefile
drivers/net/octeontx/Makefile
drivers/net/octeontx/base/octeontx_bgx.h
drivers/net/octeontx/base/octeontx_pkivf.h