summaryrefslogtreecommitdiff
path: root/drivers/raw
AgeCommit message (Collapse)Author
2019-03-12eal/linux: rename linuxapp to linuxBruce Richardson
The term "linuxapp" is a legacy one, but just calling the subdirectory "linux" is just clearer for all concerned. Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2019-01-19raw/ifpga: fix memory leakAndy Pei
When ifpga_rawdev_create() allocate memory for a new rawdev, the original code allocate redundant memory for adapter, which is a member of the rawdev. What is actually necessary is the adapter to be initialized, not memory allocated. Fixes: ef1e8ede3da5 ("raw/ifpga: add Intel FPGA bus rawdev driver") Cc: stable@dpdk.org Signed-off-by: Andy Pei <andy.pei@intel.com> Acked-by: Tianfei Zhang <tianfei.zhang@intel.com> Acked-by: Rosen Xu <rosen.xu@intel.com>
2019-01-14drivers: fix sprintf with snprintfPallantla Poornima
sprintf function is not secure as it doesn't check the length of string. More secure function snprintf is used Fixes: 828d51d8fc ("bus/fslmc: refactor scan and probe functions") Fixes: c22fab9a6c ("raw/dpaa2_qdma: support configuration APIs") Fixes: e5cbdfc537 ("crypto/dpaa2_sec: add basic operations") Fixes: b23d4e898a ("crypto/dpaa2_sec: add per dev mempool to store FLE") Fixes: 623326dded ("crypto/dpaa2_sec: introduce poll mode driver") Fixes: e7a45f3cc2 ("crypto/caam_jr: add UIO specific operations") Fixes: f44bccadd8 ("crypto/caam_jr: add device basic operations") Fixes: 7e3e2954e0 ("crypto/dpaa_sec: move mempool allocation to config") Fixes: c3e85bdcc6 ("crypto/dpaa_sec: add crypto driver for NXP DPAA platform") Cc: stable@dpdk.org Signed-off-by: Pallantla Poornima <pallantlax.poornima@intel.com> Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
2018-10-29drivers: prefix global variables with module nameFerruh Yigit
Some global variables are defined with generic names, add component name as prefix to variables to prevent collusion with application variables. Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com> Acked-by: Tianfei Zhang <tianfei.zhang@intel.com>
2018-10-29add missing static keyword to globalsFerruh Yigit
Some global variables can indeed be static, add static keyword to them. Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com> Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-10-26raw/ifpga: check probing errorRosen Xu
Fixes not checking rte_eal_hotplug_add() return value issue. Coverity issue: 323508 Fixes: ef1e8ede3da5 ("raw/ifpga: add Intel FPGA bus rawdev driver") Cc: stable@dpdk.org Signed-off-by: Rosen Xu <rosen.xu@intel.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-10-25raw/skeleton: fix memory leak on test failureShreyansh Jain
In skeleton_rawdev unit tests, a malloc'd memory was leaking in case the next sequential test fails. This fix moves the free of the malloc'd memory above the failing test. Coverity issue: 260402 Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases") Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-10-16bus/fslmc: upgrade mc FW APIs to 10.10.0Hemant Agrawal
This patch add the support for new Management Complex Firmware version to 10.1x.x. One of the main changes in the APIs ordered queue. The fslmc bus lib ABI will need to be bumped to reflect the MC FW API and structure changes. This will also result in bumping of ABI verion of all dependent libs as they internally use the MC FW APIs and structures. Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
2018-10-16fslmc: enable dpaax libraryShreyansh Jain
With this patch, fslmc bus and ethernet devices on this bus would start using the physical-virtual library interfaces. This patch impacts mempool/dpaa2, event/dpaa2, net/dpaa2, raw/dpaa2_cmdif and raw/dpaa2_qdma as they are dependent on the bus/fslmc and thus impact linkage of libraries. Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-09-17raw/ifpga: use -Wno-error=format-security for mesonLuca Boccassi
This PMD is built with -Wno-format, which means GCC errors out if -Wformat-security is used. Fixes: 56bb54ea1bdf ("raw/ifpga/base: add Intel FPGA OPAE share code") Cc: stable@dpdk.org Signed-off-by: Luca Boccassi <bluca@debian.org> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
2018-08-01raw/skeleton: implement queue count APIShreyansh Jain
Use the rte_rawdev_queue_count API in skeleton and add its unit test case. Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-07-26rawdev: remove experimental tagShreyansh Jain
Besides the librawdev, removing experimental from skeleton_rawdev dummy driver as well. Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
2018-07-26build: fix meson build on FreeBSDBruce Richardson
A number of drivers have dependencies on libraries which are only built on Linux, and so they need to be disabled on FreeBSD. Rather than basing the disabling on OS, in each case we base the building of the library on the presence of the required dependency. Fixes: 50385c106021 ("net/ifc: add to meson build") Fixes: 4e9c73e96e83 ("net/netvsc: add Hyper-V network device") Fixes: 5936aa3a39b9 ("net/vhost: add to meson build") Fixes: 3298fa4853b8 ("raw/dpaa2_cmdif: introduce DPAA2 command interface driver") Fixes: b1ee472fed58 ("raw/dpaa2_qdma: introduce the DPAA2 QDMA driver") Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
2018-07-12raw/dpaa2_qdma: fix IOVA as VA flagHemant Agrawal
Fixes: b1ee472fed58 ("raw/dpaa2_qdma: introduce the DPAA2 QDMA driver") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
2018-07-12drivers: support function name in NXP logsHemant Agrawal
Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-07-12remove useless constructor headersThomas Monjalon
A constructor is usually declared with RTE_INIT* macros. As it is a static function, no need to declare before its definition. The macro is used directly in the function definition. Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
2018-05-21raw/ifpga/base: fix an error returnTianfei Zhang
fix a return error value by DPDK Coverity static code analysis Coverity issue: 279448 Fixes: 56bb54ea1bdf ("raw/ifpga/base: add Intel FPGA OPAE share code") Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
2018-05-21raw/ifpga: fix ARM build with clangGavin Hu
The patch fixes the compile issue with clang on ARM64, as well as clang + X86 builing hosts. Newly introduced #pragma pack(1) in the header file caused compiling issues for the files who included it. In file included from drivers/raw/ifpga_rawdev/base/ifpga_fme_dperf.c:5: In file included from drivers/raw/ifpga_rawdev/base/ifpga_feature_dev.h:8: drivers/raw/ifpga_rawdev/base/ifpga_hw.h:8:10: error: the current #pragma pack alignment value is modified in the included file The fix is to change the #pragma pack alignment locally and not have effect on other files who included this header file. Fixes: 56bb54ea1bdf ("raw/ifpga/base: add Intel FPGA OPAE share code") Signed-off-by: Gavin Hu <gavin.hu@arm.com> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com> Reviewed-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
2018-05-14raw/ifpga/base: fix build with iccTianfei Zhang
fix compile error on icc compiler Fixes: 56bb54ea1bdf ("raw/ifpga/base: add Intel FPGA OPAE share code") Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com> Tested-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
2018-05-14raw/skeleton: remove dead codeShreyansh Jain
Coverity Issue: 260411 Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases") Cc: stable@dpdk.org Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-05-14raw/skeleton: fix resource leak in testShreyansh Jain
Coverity issue: 260402 Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases") Cc: stable@dpdk.org Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-05-11raw/ifpga: add Intel FPGA bus rawdev driverRosen Xu
Add Intel FPGA BUS Rawdev Driver which is based on librte_rawdev library. Signed-off-by: Rosen Xu <rosen.xu@intel.com> Signed-off-by: Yanglong Wu <yanglong.wu@intel.com> Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com> Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
2018-05-11raw/ifpga/base: add Intel FPGA OPAE share codeTianfei Zhang
This patch adds Intel FPGA Open Programmable Acceleration Engine (OPAE)[1] base driver code, in order to support Intel FPGA devices under DPDK. The base code currently supports Intel FPGA solutions including integrated solution (Intel(R) Xeon(R) CPU with FPGAs) and discrete solution (Intel(R) Programmable Acceleration Card with Intel(R) Arria(R) 10 FPGA) and it could be extended to support more FPGA devices in the future. Please refer to [1][2] for more introduction on OPAE and Intel FPGAs. [1] https://01.org/OPAE [2] https://www.altera.com/solutions/acceleration-hub/overview.html Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com> Signed-off-by: Hao Wu <hao.wu@intel.com> Signed-off-by: Yilun Xu <yilun.xu@intel.com> Reviewed-by: Qi Zhang <qi.z.zhang@intel.com>
2018-05-08raw/dpaa2_cmdif: support enqueue/dequeue operationsNipun Gupta
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-05-08raw/dpaa2_cmdif: add attribute get functionalityNipun Gupta
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-05-08raw/dpaa2_cmdif: introduce DPAA2 command interface driverNipun Gupta
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-05-08raw/dpaa2_qdma: support enqueue/dequeue operationsNipun Gupta
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-05-08raw/dpaa2_qdma: support configuration APIsNipun Gupta
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-05-08raw/dpaa2_qdma: introduce the DPAA2 QDMA driverNipun Gupta
DPAA2 QDMA driver uses MC DPDMAI object. This driver enables the user (app) to perform data DMA without involving CPU in the DMA process Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com> Acked-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-05-08drivers/raw: support meson buildNipun Gupta
Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com> Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
2018-02-06raw/skeleton: fix device start testShreyansh Jain
Device can only be started if firmware is loaded, as per Skeleton rawdev driver semantics. This patch fixes original implementation which attempted to start the device without loading firmware. Fixes: 55ca1b0f2151 ("raw/skeleton: add test cases") Cc: shreyansh.jain@nxp.com Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-01-31raw/skeleton: add test casesShreyansh Jain
Patch introduces rawdev unit testcase for validation against the Skeleton rawdev dummy PMD implementation. Test cases are added along with the skeleton driver implementation. It can be enabled by using vdev argument to any DPDK binary: --vdev="rawdev_skeleton,self_test=1" In case 'self_test=1' is not provided, autotest doesn't execute the test cases but the vdev is still available for application use. Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>
2018-01-31raw/skeleton: introduce skeleton rawdev driverShreyansh Jain
Skeleton rawdevice driver, on the lines of eventdev skeleton, is for showcasing the rawdev library. This driver implements some of the operations of the library based on which a test module can be developed. Design of skeleton involves a virtual device which is plugged into VDEV bus on initialization. Also, enable compilation of rawdev skeleton driver. Signed-off-by: Shreyansh Jain <shreyansh.jain@nxp.com>