net/octeontx_ep: Remove otx2 common dependency
Subsystems (2)
PATCH 1/1 net/octeontx_ep: Remove otx2 common dependency
octeontx_ep driver's dependency on octeontx2 common code is removed as going forward ep driver will include files from its own path.
Signed-off-by Pradeep Nalla <[email protected]>
--- drivers/net/octeontx_ep/meson.build | 2 - drivers/net/octeontx_ep/otx2_ep_vf.c | 13 +-- drivers/net/octeontx_ep/otx2_ep_vf.h | 112 ++++++++++++++++++++++++ drivers/net/octeontx_ep/otx_ep_common.h | 3 + drivers/net/octeontx_ep/otx_ep_ethdev.c | 1 - 5 files changed, 122 insertions(+), 9 deletions(-)
drivers/net/octeontx_ep/meson.build +0 -2
@@ -2,7 +2,6 @@ # Copyright(C) 2021 Marvell. # -deps += ['common_octeontx2'] sources = files( 'otx_ep_ethdev.c', 'otx_ep_rxtx.c',
@@ -10,4 +9,3 @@ sources = files( 'otx2_ep_vf.c', ) -includes += include_directories('../../common/octeontx2')
drivers/net/octeontx_ep/otx2_ep_vf.c +7 -6
@@ -2,7 +2,8 @@* Copyright(C) 2021 Marvell. */ -#include "otx2_common.h" +#include <rte_common.h> +#include <rte_cycles.h> #include "otx_ep_common.h" #include "otx2_ep_vf.h"
@@ -215,7 +216,7 @@ otx2_vf_enable_iq(struct otx_ep_device *otx_ep, uint32_t q_no)otx2_write64 (reg_val, otx_ep->hw_addr +SDP_VF_R_IN_ENABLE (q_no)); -otx2_info ("IQ[%d] enable done" , q_no); +otx_ep_info ("IQ[%d] enable done" , q_no);return 0 ; }
@@ -229,7 +230,7 @@ otx2_vf_enable_oq(struct otx_ep_device *otx_ep, uint32_t q_no) reg_val |=0x1ull ;otx2_write64 (reg_val, otx_ep->hw_addr +SDP_VF_R_OUT_ENABLE (q_no)); -otx2_info ("OQ[%d] enable done" , q_no); +otx_ep_info ("OQ[%d] enable done" , q_no);return 0 ; }
@@ -326,10 +327,10 @@ otx2_ep_vf_setup_device(struct otx_ep_device *otx_ep)if (otx_ep->conf ==NULL ) { otx_ep->conf =otx2_ep_get_defconf (otx_ep);if (otx_ep->conf ==NULL ) { -otx2_err ("SDP VF default config not found" ); +otx_ep_err ("SDP VF default config not found" );return -ENOENT ; } -otx2_info ("Default config is used" ); +otx_ep_info ("Default config is used" ); }/* Get IOQs (RPVF] count */
@@ -338,7 +339,7 @@ otx2_ep_vf_setup_device(struct otx_ep_device *otx_ep) otx_ep->sriov_info.rings_per_vf = ((reg_val >>SDP_VF_R_IN_CTL_RPVF_POS ) &SDP_VF_R_IN_CTL_RPVF_MASK ); -otx2_info ("SDP RPVF: %d" , otx_ep->sriov_info.rings_per_vf); +otx_ep_info ("SDP RPVF: %d" , otx_ep->sriov_info.rings_per_vf); otx_ep->fn_list.setup_iq_regs = otx2_vf_setup_iq_regs; otx_ep->fn_list.setup_oq_regs = otx2_vf_setup_oq_regs;
drivers/net/octeontx_ep/otx2_ep_vf.h +112 -0
118 lines not on this page · raw message
drivers/net/octeontx_ep/otx_ep_common.h +3 -0
@@ -504,5 +504,8 @@ struct otx_ep_buf_free_info {#define OTX_EP_CLEAR_SLIST_DBELL 0xFFFFFFFF#define OTX_EP_CLEAR_SDP_OUT_PKT_CNT 0xFFFFFFFFF +/* PCI IDs */ +#define PCI_VENDOR_ID_CAVIUM 0x177D +extern int otx_net_ep_logtype;#endif /* _OTX_EP_COMMON_H_ */
drivers/net/octeontx_ep/otx_ep_ethdev.c +0 -1
@@ -4,7 +4,6 @@#include <ethdev_pci.h> -#include "otx2_common.h" #include "otx_ep_common.h" #include "otx_ep_vf.h" #include "otx2_ep_vf.h"
Signature · 1 line
2.17.1