|
Revision tags: v22.03, v22.03-rc4, v22.03-rc3, v22.03-rc2, v22.03-rc1 |
|
| #
bcd9f098 |
| 03-Feb-2022 |
Kumara Parameshwaran <[email protected]> |
drivers/net: use internal function to get ethdev struct
Make changes in PMDs to use the new function where rte_eth_dev_get_port_by_name is used to get port_id to access rte_eth_devices
Signed-off-b
drivers/net: use internal function to get ethdev struct
Make changes in PMDs to use the new function where rte_eth_dev_get_port_by_name is used to get port_id to access rte_eth_devices
Signed-off-by: Kumara Parameshwaran <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]>
show more ...
|
| #
7be78d02 |
| 29-Nov-2021 |
Josh Soref <[email protected]> |
fix spelling in comments and strings
The tool comes from https://github.com/jsoref
Signed-off-by: Josh Soref <[email protected]> Signed-off-by: Thomas Monjalon <[email protected]>
|
|
Revision tags: v21.11, v21.11-rc4, v21.11-rc3, v21.11-rc2, v21.11-rc1, v21.08, v21.08-rc4, v21.08-rc3, v21.08-rc2, v21.08-rc1, v21.05, v21.05-rc4, v21.05-rc3, v21.05-rc2 |
|
| #
eeded204 |
| 26-Apr-2021 |
David Marchand <[email protected]> |
log: register with standardized names
Let's try to enforce the convention where most drivers use a pmd. logtype with their class reflected in it, and libraries use a lib. logtype.
Introduce two new
log: register with standardized names
Let's try to enforce the convention where most drivers use a pmd. logtype with their class reflected in it, and libraries use a lib. logtype.
Introduce two new macros: - RTE_LOG_REGISTER_DEFAULT can be used when a single logtype is used in a component. It is associated to the default name provided by the build system, - RTE_LOG_REGISTER_SUFFIX can be used when multiple logtypes are used, and then the passed name is appended to the default name,
RTE_LOG_REGISTER is left untouched for existing external users and for components that do not comply with the convention.
There is a new Meson variable log_prefix to adapt the default name for baseband (pmd.bb.), bus (no pmd.) and mempool (no pmd.) classes.
Note: achieved with below commands + reverted change on net/bonding + edits on crypto/virtio, compress/mlx5, regex/mlx5
$ git grep -l RTE_LOG_REGISTER drivers/ | while read file; do pattern=${file##drivers/}; class=${pattern%%/*}; pattern=${pattern#$class/}; drv=${pattern%%/*}; case "$class" in baseband) pattern=pmd.bb.$drv;; bus) pattern=bus.$drv;; mempool) pattern=mempool.$drv;; *) pattern=pmd.$class.$drv;; esac sed -i -e 's/RTE_LOG_REGISTER(\(.*\), '$pattern',/RTE_LOG_REGISTER_DEFAULT(\1,/' $file; sed -i -e 's/RTE_LOG_REGISTER(\(.*\), '$pattern'\.\(.*\),/RTE_LOG_REGISTER_SUFFIX(\1, \2,/' $file; done
$ git grep -l RTE_LOG_REGISTER lib/ | while read file; do pattern=${file##lib/}; pattern=lib.${pattern%%/*}; sed -i -e 's/RTE_LOG_REGISTER(\(.*\), '$pattern',/RTE_LOG_REGISTER_DEFAULT(\1,/' $file; sed -i -e 's/RTE_LOG_REGISTER(\(.*\), '$pattern'\.\(.*\),/RTE_LOG_REGISTER_SUFFIX(\1, \2,/' $file; done
Signed-off-by: David Marchand <[email protected]> Signed-off-by: Thomas Monjalon <[email protected]> Acked-by: Bruce Richardson <[email protected]>
show more ...
|
|
Revision tags: v21.05-rc1 |
|
| #
b1641987 |
| 06-Apr-2021 |
Thomas Monjalon <[email protected]> |
drivers: align log names
The log levels are configured by using the name of the logs. Some drivers are aligned to follow a common log name standard: pmd.class.driver[.sub] Some "common" drivers ski
drivers: align log names
The log levels are configured by using the name of the logs. Some drivers are aligned to follow a common log name standard: pmd.class.driver[.sub] Some "common" drivers skip the "class" part: pmd.driver.sub
Signed-off-by: Thomas Monjalon <[email protected]> Acked-by: Bruce Richardson <[email protected]> Acked-by: Rosen Xu <[email protected]> Acked-by: Xiao Wang <[email protected]> Acked-by: Hemant Agrawal <[email protected]> Acked-by: Ajit Khaparde <[email protected]> Acked-by: Min Hu (Connor) <[email protected]>
show more ...
|
|
Revision tags: v21.02, v21.02-rc4, v21.02-rc3, v21.02-rc2 |
|
| #
df96fd0d |
| 29-Jan-2021 |
Bruce Richardson <[email protected]> |
ethdev: make driver-only headers private
The rte_ethdev_driver.h, rte_ethdev_vdev.h and rte_ethdev_pci.h files are for drivers only and should be a private to DPDK and not installed.
Signed-off-by:
ethdev: make driver-only headers private
The rte_ethdev_driver.h, rte_ethdev_vdev.h and rte_ethdev_pci.h files are for drivers only and should be a private to DPDK and not installed.
Signed-off-by: Bruce Richardson <[email protected]> Reviewed-by: Maxime Coquelin <[email protected]> Acked-by: Thomas Monjalon <[email protected]> Acked-by: Steven Webster <[email protected]>
show more ...
|
|
Revision tags: v21.02-rc1, v20.11, v20.11-rc5, v20.11-rc4, v20.11-rc3, v20.11-rc2, v20.11-rc1 |
|
| #
68f578bf |
| 28-Sep-2020 |
Thomas Monjalon <[email protected]> |
drivers/net: accept removing device without any port
The ports can be closed (i.e. completely released) before removing the whole device. Such case was wrongly considered an error by some drivers.
drivers/net: accept removing device without any port
The ports can be closed (i.e. completely released) before removing the whole device. Such case was wrongly considered an error by some drivers.
If the device supports only one port, there is nothing much to free after the port is closed.
Signed-off-by: Thomas Monjalon <[email protected]> Reviewed-by: Ferruh Yigit <[email protected]> Reviewed-by: Rosen Xu <[email protected]> Reviewed-by: Sachin Saxena <[email protected]> Acked-by: Stephen Hemminger <[email protected]>
show more ...
|
|
Revision tags: v20.08, v20.08-rc4, v20.08-rc3, v20.08-rc2, v20.08-rc1 |
|
| #
9c99878a |
| 01-Jul-2020 |
Jerin Jacob <[email protected]> |
log: introduce logtype register macro
Introduce the RTE_LOG_REGISTER macro to avoid the code duplication in the logtype registration process.
It is a wrapper macro for declaring the logtype, regist
log: introduce logtype register macro
Introduce the RTE_LOG_REGISTER macro to avoid the code duplication in the logtype registration process.
It is a wrapper macro for declaring the logtype, registering it and setting its level in the constructor context.
Signed-off-by: Jerin Jacob <[email protected]> Acked-by: Adam Dybkowski <[email protected]> Acked-by: Sachin Saxena <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
|
Revision tags: v20.05, v20.05-rc4, v20.05-rc3, v20.05-rc2, v20.05-rc1, v20.02, v20.02-rc4, v20.02-rc3, v20.02-rc2, v20.02-rc1, v19.11, v19.11-rc4, v19.11-rc3 |
|
| #
8418c928 |
| 14-Nov-2019 |
Rosen Xu <[email protected]> |
net/ipn3ke: remove configuration for i40e port bonding
The ipn3ke board FPGA and i40e BDF scan has added in ifpga_rawdev, so it doesn't need to provide configuration for i40e port bonding.
Signed-o
net/ipn3ke: remove configuration for i40e port bonding
The ipn3ke board FPGA and i40e BDF scan has added in ifpga_rawdev, so it doesn't need to provide configuration for i40e port bonding.
Signed-off-by: Rosen Xu <[email protected]> Signed-off-by: Andy Pei <[email protected]>
show more ...
|
|
Revision tags: v19.11-rc2 |
|
| #
d28ae28e |
| 06-Nov-2019 |
Kevin Traynor <[email protected]> |
net/ipn3ke: remove useless if statement
Coverity complains that this statement is not needed as the goto label is on the next line anyway. Remove the if statement.
653 ret = ipn3ke_cfg_parse
net/ipn3ke: remove useless if statement
Coverity complains that this statement is not needed as the goto label is on the next line anyway. Remove the if statement.
653 ret = ipn3ke_cfg_parse_i40e_pf_ethdev(afu_name, pf_name); CID 337930 (#1 of 1): Identical code for different branches (IDENTICAL_BRANCHES)identical_branches: The same code is executed when the condition ret is true or false, because the code in the if-then branch and after the if statement is identical. Should the if statement be removed? 654 if (ret) 655 goto end; implicit_else: The code from the above if-then branch is identical to the code after the if statement. 656end:
Coverity issue: 337930 Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver") Cc: [email protected]
Signed-off-by: Kevin Traynor <[email protected]> Reviewed-by: David Marchand <[email protected]> Reviewed-by: Rosen Xu <[email protected]>
show more ...
|
|
Revision tags: v19.11-rc1 |
|
| #
82a8f138 |
| 04-Sep-2019 |
Andy Pei <[email protected]> |
net/ipn3ke: setup MTU during HW init
Set up MTU to the minimum among Tx MTU, Rx MTU and IPN3KE_MAC_FRAME_SIZE_MAX.
Signed-off-by: Andy Pei <[email protected]> Reviewed-by: Xiaolong Ye <xiaolong.ye
net/ipn3ke: setup MTU during HW init
Set up MTU to the minimum among Tx MTU, Rx MTU and IPN3KE_MAC_FRAME_SIZE_MAX.
Signed-off-by: Andy Pei <[email protected]> Reviewed-by: Xiaolong Ye <[email protected]> Acked-by: Rosen Xu <[email protected]>
show more ...
|
|
Revision tags: v19.08, v19.08-rc4, v19.08-rc3, v19.08-rc2, v19.08-rc1 |
|
| #
2171c38e |
| 01-Jul-2019 |
Andy Pei <[email protected]> |
net/ipn3ke: add stats register and clearing
ipn3ke can work on 10G mode and 25G mode. 10G mode and 25G mode has different MAC register address for statistics. This patch implements statistics regist
net/ipn3ke: add stats register and clearing
ipn3ke can work on 10G mode and 25G mode. 10G mode and 25G mode has different MAC register address for statistics. This patch implements statistics registers for 10G mode and 25G mode.
Also implements different stats clearing per mode.
Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver") Cc: [email protected]
Signed-off-by: Andy Pei <[email protected]> Acked-by: Rosen Xu <[email protected]>
show more ...
|
| #
b15ad79c |
| 01-Jul-2019 |
Andy Pei <[email protected]> |
net/ipn3ke: delete MAC register address mask
Original code is compatible with older device, whose mac register address is no more than 10 bits. Now we have mac register address longer than 10 bits,
net/ipn3ke: delete MAC register address mask
Original code is compatible with older device, whose mac register address is no more than 10 bits. Now we have mac register address longer than 10 bits, so we just delete the mask here.
Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver") Cc: [email protected]
Signed-off-by: Andy Pei <[email protected]> Acked-by: Rosen Xu <[email protected]>
show more ...
|
| #
aa6ff928 |
| 22-Jun-2019 |
Dan Wei <[email protected]> |
net/ipn3ke: modify AFU configurations
Modify AFU configurations for new BBS (Blue Bitstream) of A10 on N3000 card: - AFU register access: RTL changes the UPL (User Programmable Logic which is the co
net/ipn3ke: modify AFU configurations
Modify AFU configurations for new BBS (Blue Bitstream) of A10 on N3000 card: - AFU register access: RTL changes the UPL (User Programmable Logic which is the container of vBNG IP) base address and the read/write commands of register indirect access. - Poll the INIT_STS register to wait for the vBNG IP and DDR reset completion. - Refine log for debug: print UPL_version not only for vBNG bit stream, but also for other bit streams.
Fixes: c01c748e4ae6 ("net/ipn3ke: add new driver") Cc: [email protected]
Signed-off-by: Dan Wei <[email protected]> Acked-by: Rosen Xu <[email protected]>
show more ...
|
|
Revision tags: v19.05, v19.05-rc4, v19.05-rc3, v19.05-rc2 |
|
| #
6ad943ff |
| 16-Apr-2019 |
Rosen Xu <[email protected]> |
net/ipn3ke: support flow API
Add Intel FPGA Acceleration NIC IPN3KE Flow of PMD driver.
Signed-off-by: Rosen Xu <[email protected]> Signed-off-by: Andy Pei <[email protected]> Signed-off-by: Dan
net/ipn3ke: support flow API
Add Intel FPGA Acceleration NIC IPN3KE Flow of PMD driver.
Signed-off-by: Rosen Xu <[email protected]> Signed-off-by: Andy Pei <[email protected]> Signed-off-by: Dan Wei <[email protected]>
show more ...
|
| #
c820468a |
| 16-Apr-2019 |
Rosen Xu <[email protected]> |
net/ipn3ke: support TM
Add Intel FPGA Acceleration NIC IPN3KE TM of PMD driver.
Signed-off-by: Rosen Xu <[email protected]> Signed-off-by: Andy Pei <[email protected]> Signed-off-by: Dan Wei <dan
net/ipn3ke: support TM
Add Intel FPGA Acceleration NIC IPN3KE TM of PMD driver.
Signed-off-by: Rosen Xu <[email protected]> Signed-off-by: Andy Pei <[email protected]> Signed-off-by: Dan Wei <[email protected]>
show more ...
|
| #
70d6b7f5 |
| 16-Apr-2019 |
Rosen Xu <[email protected]> |
net/ipn3ke: add representor
Add Intel FPGA Acceleration NIC IPN3KE representor of PMD driver.
Signed-off-by: Rosen Xu <[email protected]> Signed-off-by: Andy Pei <[email protected]> Signed-off-by
net/ipn3ke: add representor
Add Intel FPGA Acceleration NIC IPN3KE representor of PMD driver.
Signed-off-by: Rosen Xu <[email protected]> Signed-off-by: Andy Pei <[email protected]> Signed-off-by: Dan Wei <[email protected]>
show more ...
|
| #
c01c748e |
| 16-Apr-2019 |
Rosen Xu <[email protected]> |
net/ipn3ke: add new driver
Add Intel FPGA Acceleration NIC IPN3KE ethdev PMD driver.
Signed-off-by: Rosen Xu <[email protected]> Signed-off-by: Andy Pei <[email protected]> Signed-off-by: Dan Wei
net/ipn3ke: add new driver
Add Intel FPGA Acceleration NIC IPN3KE ethdev PMD driver.
Signed-off-by: Rosen Xu <[email protected]> Signed-off-by: Andy Pei <[email protected]> Signed-off-by: Dan Wei <[email protected]>
show more ...
|