X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=drivers%2Fcommon%2Focteontx2%2Fotx2_io_generic.h;h=3436a6c3d5b474149ef365bbbc7e563b6f608536;hb=9dfc2d6fdac7a82b7aa55dcd59d41a5d6c3ffca3;hp=b1d754008909a7aba3cf73b13eebf1e5a0e8d0ed;hpb=8a4f835971f5041b86969d150f9e56f49a50375a;p=dpdk.git diff --git a/drivers/common/octeontx2/otx2_io_generic.h b/drivers/common/octeontx2/otx2_io_generic.h index b1d7540089..3436a6c3d5 100644 --- a/drivers/common/octeontx2/otx2_io_generic.h +++ b/drivers/common/octeontx2/otx2_io_generic.h @@ -5,6 +5,8 @@ #ifndef _OTX2_IO_GENERIC_H_ #define _OTX2_IO_GENERIC_H_ +#include + #define otx2_load_pair(val0, val1, addr) \ do { \ val0 = rte_read64_relaxed((void *)(addr)); \ @@ -45,12 +47,22 @@ otx2_lmt_submit(uint64_t io_address) return 0; } +static inline int64_t +otx2_lmt_submit_release(uint64_t io_address) +{ + RTE_SET_USED(io_address); + + return 0; +} + static __rte_always_inline void otx2_lmt_mov(void *out, const void *in, const uint32_t lmtext) { - RTE_SET_USED(out); - RTE_SET_USED(in); - RTE_SET_USED(lmtext); + /* Copy four words if lmtext = 0 + * six words if lmtext = 1 + * eight words if lmtext =2 + */ + memcpy(out, in, (4 + (2 * lmtext)) * sizeof(uint64_t)); } static __rte_always_inline void