| 64fcadea | 03-May-2022 |
Thomas Monjalon <[email protected]> |
avoid AltiVec keyword vector
The AltiVec header file is defining "vector", except in C++ build. The keyword "vector" may conflict easily. As a rule, it is better to use the alternative keyword "__ve
avoid AltiVec keyword vector
The AltiVec header file is defining "vector", except in C++ build. The keyword "vector" may conflict easily. As a rule, it is better to use the alternative keyword "__vector", so we will be able to #undef vector after including AltiVec header.
Later it may become possible to #undef vector in rte_altivec.h with a compatibility breakage.
Signed-off-by: Thomas Monjalon <[email protected]> Reviewed-by: David Christensen <[email protected]>
show more ...
|
| 18ca4a4e | 12-May-2022 |
Raja Zidane <[email protected]> |
net/mlx5: support ESP SPI match and RSS hash
In packets with ESP header, the inner IP will be encrypted, and its fields cannot be used for RSS hashing. So, ESP packets can be hashed only by the oute
net/mlx5: support ESP SPI match and RSS hash
In packets with ESP header, the inner IP will be encrypted, and its fields cannot be used for RSS hashing. So, ESP packets can be hashed only by the outer IP layer. So, when using RSS on ESP packets, hashing may not be efficient, because the fields used by the hash functions are only the outer IPs, causing all traffic belonging to all tunnels between a given pair of GWs to land on one core. Adding the SPI hash field can extend the spreading of IPsec packets.
Signed-off-by: Raja Zidane <[email protected]> Acked-by: Matan Azrad <[email protected]>
show more ...
|
| fc721109 | 14-Apr-2022 |
Shun Hao <[email protected]> |
net/mlx5: fix no-green metering with RSS
When a meter with RSS action being used, there might be several sub-flows using different sub-policies in the flow splitting stage. If there's no green actio
net/mlx5: fix no-green metering with RSS
When a meter with RSS action being used, there might be several sub-flows using different sub-policies in the flow splitting stage. If there's no green action, there's an error that will always use the same sub-policy for all sub-flows, some resources will be overwritten and cannot be released, leading assert during port close.
This patch fixes this issue by checking both green and yellow queue index during getting a blank sub-policy, to avoid the incorrect resource overwrite.
Fixes: b38a12272b3a ("net/mlx5: split meter color policy handling") Cc: [email protected]
Signed-off-by: Shun Hao <[email protected]> Acked-by: Matan Azrad <[email protected]>
show more ...
|
| b758e000 | 27-Apr-2022 |
Somnath Kotur <[email protected]> |
net/bnxt: skip wait for link up on port start
Invoking bnxt_link_update_op() with wait_for_completion set would result in the driver waiting for 10s in case the port link is down to complete port in
net/bnxt: skip wait for link up on port start
Invoking bnxt_link_update_op() with wait_for_completion set would result in the driver waiting for 10s in case the port link is down to complete port initialization (dev_start_op()). Change it by not waiting for the completion when invoking it in dev_start_op()
Signed-off-by: Somnath Kotur <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]>
show more ...
|
| 2df7dfff | 27-Apr-2022 |
Somnath Kotur <[email protected]> |
net/bnxt: fix freeing VNIC filters
In bnxt_free_all_filters(), all the filters attached to a vnic are removed. But each of these filters hold a backreference ptr to the vnic and they need to be rese
net/bnxt: fix freeing VNIC filters
In bnxt_free_all_filters(), all the filters attached to a vnic are removed. But each of these filters hold a backreference ptr to the vnic and they need to be reset to NULL now. Otherwise, during a normal testpmd quit, as part of dev_close_op(), first bnxt_free_all_filters() is invoked in dev_stop, followed by bnxt_free_filter_mem() from bnxt_uninit_resources(), which finds a filter with a vnic back reference ptr and now bnxt_hwrm_clean_up_l2_filter() also tries to remove the filter from the vnic's filter list which was already done as part of bnxt_free_all_filters().
Fixes: f0f6b5e6cf94 ("net/bnxt: fix reusing L2 filter") Cc: [email protected]
Signed-off-by: Somnath Kotur <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]>
show more ...
|
| 5591bb92 | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: recheck FW readiness if in reset process
If Firmware is still in reset process and returns the error HWRM_ERR_CODE_HOT_RESET_PROGRESS, retry VER_GET command. We have to do it in bnxt_handl
net/bnxt: recheck FW readiness if in reset process
If Firmware is still in reset process and returns the error HWRM_ERR_CODE_HOT_RESET_PROGRESS, retry VER_GET command. We have to do it in bnxt_handle_if_change_status().
Fixes: 0b533591238f ("net/bnxt: inform firmware about IF state changes") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Somnath Kotur <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]>
show more ...
|
| 7b6eba88 | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: fix link status when port is stopped
Driver forces link down during port stop. But device is not obliged link down in certain scenarios, even when forced. In that case, subsequent link que
net/bnxt: fix link status when port is stopped
Driver forces link down during port stop. But device is not obliged link down in certain scenarios, even when forced. In that case, subsequent link queries returns link as up. Fixed to return link status as down when port is stopped. Driver is already doing that for VF/NPAR/MH functions.
Fixes: c09f57b49c13 ("net/bnxt: add start/stop/link update operations") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Somnath Kotur <[email protected]>
show more ...
|
| 9c1410be | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: force PHY update on certain configurations
Device is not obliged link down in certain scenarios, even when forced. When FW does not allow any user other than the BMC to shutdown the port,
net/bnxt: force PHY update on certain configurations
Device is not obliged link down in certain scenarios, even when forced. When FW does not allow any user other than the BMC to shutdown the port, bnxt_get_hwrm_link_config() call always returns link up. Force phy update always in that case, else user configuration for speed/autoneg would not get applied correctly.
Fixes: 7bc8e9a227cc ("net/bnxt: support async link notification") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Somnath Kotur <[email protected]>
show more ...
|
| 34a07594 | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: fix speed autonegotiation
The "active_fec_signal_mode" in HWRM_PORT_PHY_QCFG response does not return correct value till the link is up. Driver cannot rely on active_fec_signal_mode while
net/bnxt: fix speed autonegotiation
The "active_fec_signal_mode" in HWRM_PORT_PHY_QCFG response does not return correct value till the link is up. Driver cannot rely on active_fec_signal_mode while setting autoneg speed.
While setting autoneg speed, driver is currently checking only "auto_link_speed_mask". Fixed to check "auto_pam4_link_speed_mask" as well. Also, while setting auto mode and setting speed mask, driver will have to set both NRZ and PAM4 mask.
Fixes: c23f9ded0391 ("net/bnxt: support 200G PAM4 link") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Somnath Kotur <[email protected]>
show more ...
|
| 85998205 | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: avoid unnecessary endianness conversion
The "active_fec_signal_mode" in HWRM_PORT_PHY_QCFG response is uint8_t. So no need of endianness conversion while parsing response. Also, signal_mod
net/bnxt: avoid unnecessary endianness conversion
The "active_fec_signal_mode" in HWRM_PORT_PHY_QCFG response is uint8_t. So no need of endianness conversion while parsing response. Also, signal_mode is the first 4bits of "active_fec_signal_mode".
Fixes: c23f9ded0391 ("net/bnxt: support 200G PAM4 link") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Somnath Kotur <[email protected]>
show more ...
|
| 962a5212 | 27-Apr-2022 |
Somnath Kotur <[email protected]> |
net/bnxt: handle queue stop during RSS flow create
The programming of the RSS table was not taking into account if any of the queues in the set were stopped prior to the flow creation, hence leading
net/bnxt: handle queue stop during RSS flow create
The programming of the RSS table was not taking into account if any of the queues in the set were stopped prior to the flow creation, hence leading to a vnic RSS config cmd failure thrown by the FW. Fix by programming only the active queues in the RSS action queue set.
Fixes: 239695f754cb ("net/bnxt: enhance RSS action support") Cc: [email protected]
Signed-off-by: Somnath Kotur <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Kalesh AP <[email protected]>
show more ...
|
| 447a0721 | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: check duplicate queue IDs
Currently driver does not have a check for duplicate queue ids. User must either specify all Rx queues created or no queues in the flow create command. Repeating
net/bnxt: check duplicate queue IDs
Currently driver does not have a check for duplicate queue ids. User must either specify all Rx queues created or no queues in the flow create command. Repeating the queue index is invalid.
Also, moved the check for invalid queue to the beginning of the function.
Fixes: 239695f754cb ("net/bnxt: enhance RSS action support") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Somnath Kotur <[email protected]>
show more ...
|
| 1b27f824 | 27-Apr-2022 |
Somnath Kotur <[email protected]> |
net/bnxt: fix ring group on Rx restart
When an Rx queue is stopped and restarted, as part of that workflow, for cards that have ring groups, we free and reallocate the ring group. This new ring grou
net/bnxt: fix ring group on Rx restart
When an Rx queue is stopped and restarted, as part of that workflow, for cards that have ring groups, we free and reallocate the ring group. This new ring group is not communicated to the VNIC though via HWRM_VNIC_CFG cmd. Fix to issue HWRM_VNIC_CFG cmd on all adapters now in this scenario.
Fixes: ed0ae3502fc9 ("net/bnxt: update ring group after ring stop start") Cc: [email protected]
Signed-off-by: Somnath Kotur <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Kalesh AP <[email protected]>
show more ...
|
| 202a1711 | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: fix RSS action
Specifying a subset of Rx queues created by the application in the "flow create" command is invalid. User must either specify all Rx queues created or no queues.
Also remov
net/bnxt: fix RSS action
Specifying a subset of Rx queues created by the application in the "flow create" command is invalid. User must either specify all Rx queues created or no queues.
Also removed a wrong comment as RSS action will not be supported if user or application specifies MARK or COUNT action.
Fixes: 239695f754cb ("net/bnxt: enhance RSS action support") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Somnath Kotur <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]>
show more ...
|
| 441fd426 | 27-Apr-2022 |
Somnath Kotur <[email protected]> |
net/bnxt: remove count action support
'Count' action was never really implemented in the legacy/AFM model. But there was some place holder code, remove it so that the user will see a failure when a
net/bnxt: remove count action support
'Count' action was never really implemented in the legacy/AFM model. But there was some place holder code, remove it so that the user will see a failure when a flow with 'count' action is being created.
Signed-off-by: Somnath Kotur <[email protected]> Reviewed-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]>
show more ...
|
| c0278f6e | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: fix tunnel stateless offloads
The HW only supports tunnel header parsing globally for supported tunnel types. When a function uses one default VNIC to receive both the tunnel and non-tunne
net/bnxt: fix tunnel stateless offloads
The HW only supports tunnel header parsing globally for supported tunnel types. When a function uses one default VNIC to receive both the tunnel and non-tunnel packets, applying the same stateless offload operation to both tunnel and non-tunnel packets can cause problems in certain scenarios. To workaround these problems, the firmware advertises no tunnel header parsing capabilities to the driver using the HWRM_FUNC_QCAPS. The driver must check this flag setting and accordingly not advertise tunnel packet stateless offload capabilities to the stack.
If the device supports VXLAN, GRE, IPIP and GENEVE tunnel parsing, then reports RX_OFFLOAD_OUTER_IPV4_CKSUM, RX_OFFLOAD_OUTER_UDP_CKSUM and TX_OFFLOAD_OUTER_IPV4_CKSUM in the Rx/Tx offload capabilities of the device. Also, advertise tunnel TSO capabilities based on FW support.
Fixes: 0a6d2a720078 ("net/bnxt: get device infos") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Somnath Kotur <[email protected]>
show more ...
|
| 0a90c56e | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: fix Rx configuration
We are currently not handling RX/RSS modes correctly. After launching testpmd with multiple RXQs, if the user tries to set the number of RXQs to 1, driver is not updat
net/bnxt: fix Rx configuration
We are currently not handling RX/RSS modes correctly. After launching testpmd with multiple RXQs, if the user tries to set the number of RXQs to 1, driver is not updating the "hash_type" and "hash_mode" values of the VNICs. As a result, driver issues bnxt_vnic_rss_configure() unnecessarily and the FW command fails.
Fixed bnxt_mq_rx_configure() to update VNIC RSS fields unconditionally.
Fixes: 4191bc8f79a8 ("net/bnxt: handle multi queue mode properly") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Somnath Kotur <[email protected]>
show more ...
|
| c29aa80f | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: remove unused macro
BNXT_FLAG_UPDATE_HASH is redundant now, remove it.
Fixes: 1ebb765090a6 ("net/bnxt: fix config RSS update") Cc: [email protected]
Signed-off-by: Kalesh AP <kalesh-anakku
net/bnxt: remove unused macro
BNXT_FLAG_UPDATE_HASH is redundant now, remove it.
Fixes: 1ebb765090a6 ("net/bnxt: fix config RSS update") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Somnath Kotur <[email protected]>
show more ...
|
| 47a956a8 | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: fix device capability reporting
1. Added two functions bnxt_get_tx_port_offloads() and bnxt_get_rx_port_offloads() to report the device tx/rx offload capabilities to the application.
net/bnxt: fix device capability reporting
1. Added two functions bnxt_get_tx_port_offloads() and bnxt_get_rx_port_offloads() to report the device tx/rx offload capabilities to the application. 2. This avoids few duplicate code in the driver and make VF-rep capability the same as VF. 3. This will help in selectively reporting offload capabilities based on FW support.
Fixes: 0a6d2a720078 ("net/bnxt: get device infos") Cc: [email protected]
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Somnath Kotur <[email protected]>
show more ...
|
| 26469260 | 27-Apr-2022 |
Kalesh AP <[email protected]> |
net/bnxt: update HWRM structures
Brought in the latest hsi_struct_def_dpdk.h. HWRM API is now updated to version "1.10.2.83".
Signed-off-by: Kalesh AP <[email protected]> Reviewed
net/bnxt: update HWRM structures
Brought in the latest hsi_struct_def_dpdk.h. HWRM API is now updated to version "1.10.2.83".
Signed-off-by: Kalesh AP <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]> Reviewed-by: Somnath Kotur <[email protected]>
show more ...
|
| e7f2effc | 13-Apr-2022 |
Ruifeng Wang <[email protected]> |
net/bnxt: fix reordering in NEON Rx
Rx descriptor contains a valid bit which indicates readiness of the rest of descriptor words. Hence, the word contains valid bit must be read prior to other words
net/bnxt: fix reordering in NEON Rx
Rx descriptor contains a valid bit which indicates readiness of the rest of descriptor words. Hence, the word contains valid bit must be read prior to other words.
In NEON vector path, two contiguous 8B descriptor are loaded to a single NEON register. Given vector load ensures no 16B atomicity, read of the word that includes valid bit could be reordered after read of other words. In this case, data could be invalid.
Reloaded lower 64b after read barrier. This ensures what fetched is correct.
Also fixed comments that not pertains to Arm platform architecture.
Fixes: deae85145c64 ("net/bnxt: handle multiple packets per loop in vector Rx") Cc: [email protected]
Signed-off-by: Ruifeng Wang <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]>
show more ...
|
| 761edd4b | 13-Apr-2022 |
Ruifeng Wang <[email protected]> |
net/bnxt: remove redundant ifdefs
NEON vector path is built only when Arm platform is 64-bit. The ifdefs in NEON path are of no use, hence remove.
Signed-off-by: Ruifeng Wang <[email protected]>
net/bnxt: remove redundant ifdefs
NEON vector path is built only when Arm platform is 64-bit. The ifdefs in NEON path are of no use, hence remove.
Signed-off-by: Ruifeng Wang <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]>
show more ...
|
| 331d7696 | 13-Apr-2022 |
Ruifeng Wang <[email protected]> |
net/bnxt: defer completion index update
When no packet is received, there is no need to update completion raw cons. Moved update down to remove unnecessary store in this case.
Signed-off-by: Ruifen
net/bnxt: defer completion index update
When no packet is received, there is no need to update completion raw cons. Moved update down to remove unnecessary store in this case.
Signed-off-by: Ruifeng Wang <[email protected]> Reviewed-by: Ajit Khaparde <[email protected]>
show more ...
|
| 3c100e0e | 08-May-2022 |
Nithin Dabilpuram <[email protected]> |
common/cnxk: support per-port RQ in inline device
Add support for per port RQ in inline device thereby using Aura/Pool attributes from that port specific first RQ. When inline device is used with ch
common/cnxk: support per-port RQ in inline device
Add support for per port RQ in inline device thereby using Aura/Pool attributes from that port specific first RQ. When inline device is used with channel masking, it will fallback to single RQ for all ethdev ports.
Also remove clamping up of CQ size for LBK ethdev when inline inbound is enabled as now backpressure is supported even on LBK ethdevs.
Signed-off-by: Nithin Dabilpuram <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|
| 14124e48 | 08-May-2022 |
Nithin Dabilpuram <[email protected]> |
net/cnxk: fix hotplug detach for first device
Fix hotplug detach sequence to handle case where first PCI device that is hosting NPA LF is being destroyed while in use.
Fixes: 5a4341c84979 ("net/cnx
net/cnxk: fix hotplug detach for first device
Fix hotplug detach sequence to handle case where first PCI device that is hosting NPA LF is being destroyed while in use.
Fixes: 5a4341c84979 ("net/cnxk: add platform specific probe and remove") Cc: [email protected]
Signed-off-by: Nithin Dabilpuram <[email protected]> Acked-by: Jerin Jacob <[email protected]>
show more ...
|