- 
                Notifications
    
You must be signed in to change notification settings  - Fork 4
 
[PWCI] "mlx5: remove useless constants" #297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
The constant MLX5_VDPA_DEFAULT_TIMER_DELAY_US is not used anymore. Fixes: 99f9d79 ("vdpa/mlx5: improve interrupt management") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Signed-off-by: 0-day Robot <robot@bytheb.org>
The constant MLX5_CRYPTO_LOG_NAME was never used. The constant MLX5_CRYPTO_MAX_SEGS was not used after the fix below. Fixes: ba707cd ("crypto/mlx5: fix queue size configuration") Fixes: a7c8688 ("crypto/mlx5: introduce Mellanox crypto driver") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Signed-off-by: 0-day Robot <robot@bytheb.org>
All these constants were unused since their introduction: - MLX5_REGEX_WQE_CTRL_OFFSET - MLX5_REGEX_RXP_ROF2_LINE_LEN - MLX5_RXP_BF4_ROF_VERSION_STRING - MLX5_RXP_CTRL_TYPE_* - MLX5_RXP_CTRL_JOB_DESC_FLAGS - MLX5_RXP_CTRL_VALID - MLX5_RXP_INITIALIZATION_TIMEOUT This constant became unused after supporting combined rule file: - MLX5_RXP_POLL_CSR_FOR_VALUE_TIMEOUT All these constants became unused after removing DB and register R/W: - MLX5_RXP_MAX_ENGINES - MLX5_RXP_EM_COUNT - MLX5_RXP_DB_NOT_ASSIGNED - MLX5_RXP_CSR_NUM_ENTRIES - MLX5_RXP_CSR_CTRL_DISABLE_L2C Fixes: 4d4e245 ("regex/mlx5: support enqueue") Fixes: f324162 ("regex/mlx5: support combined rule file") Fixes: ab74680 ("regex/mlx5: support combined ROF file") Fixes: b34d816 ("regex/mlx5: support rules import") Fixes: ab2e0b0 ("regex/mlx5: remove register read/write") Fixes: 9fa82d2 ("regex/mlx5: move RXP to CrSpace") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Signed-off-by: 0-day Robot <robot@bytheb.org>
All these constants were unused since their introduction: - MLX5_DRV_PROBE_AGAIN - MLX5_NL_BUF_SIZE - MLX5DV_FLOW_TABLE_TYPE_RDMA_RX - IB_QPT_RAW_PACKET Fixes: ad435d3 ("common/mlx5: add bus-agnostic layer") Fixes: ccdcba5 ("net/mlx5: use Netlink to add/remove MAC addresses") Fixes: 03e1f7f ("net/mlx5: create flow matcher object on Windows") Fixes: 358fbb0 ("net/mlx5: support multi-packet Rx queue on Windows") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Signed-off-by: 0-day Robot <robot@bytheb.org>
- MLX5_VEC_TX_CKSUM_OFFLOAD_CAP became unused when Tx metadata moved to a dynamic field. - MLX5_ALARM_TIMEOUT_US became unused when reworking link status wait. - MLX5_FLOW_SFT_HLIST_ARRAY_SIZE was never used in hash list handling. - MLX5_FLOW_MIN_ID_POOL_SIZE and MLX5_ID_GENERATION_ARRAY_FACTOR became unused when the flow ID generator was replaced by ipool. - IS_BATCH_CNT became unused when removing a flow counter container. - MLX5_RSSQ_DEFAULT_NUM was used in the old per-thread flow workspace. - MLX5_FLOW_TABLE_HWS_POLICY became unused because meter is not supported in HWS. - IPPROTO_MPLS became unused because MPLS over IP is not supported. - MLX5_L4_RSS_TYPES has never been used. - MLX5_ETHER_TYPE_FROM_HEADER was used in the first integrity item check. - ETH_TYPE_IPV4/V6_VXLAN were never used in HWS. - PCI_DRV_FLAGS became unused when migrating to bus-agnostic probing. - ERRNO_SAFE was used in the old logging macros. Fixes: 9bf26e1 ("ethdev: move egress metadata to dynamic field") Fixes: cfee947 ("net/mlx5: fix link status to use wait to complete") Fixes: f3020a3 ("net/mlx5: optimize hash list table allocate on demand") Fixes: 4ae8825 ("net/mlx5: use indexed pool as id generator") Fixes: 994829e ("net/mlx5: remove single counter container") Fixes: dc7c5e0 ("net/mlx5: fix flow workspace destruction") Fixes: 645f240 ("net/mlx5: remove unsupported flow meter action in HWS") Fixes: 14ad99d ("net/mlx5: remove unsupported flow item MPLS over IP") Fixes: ae67e3c ("net/mlx5: support RSS expansion in non-template HWS setup") Fixes: 23b0a8b ("net/mlx5: fix integrity item validation and translation") Fixes: c55c2bf ("net/mlx5/hws: add definer layer") Fixes: a7f3498 ("net/mlx5: migrate to bus-agnostic common interface") Fixes: a170a30 ("net/mlx5: use dynamic logging") Cc: stable@dpdk.org Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Signed-off-by: 0-day Robot <robot@bytheb.org>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
          
WalkthroughThis pull request removes multiple unused macro definitions across MLX5 driver files spanning common, network, crypto, regex, and vdpa subsystems. No new functionality is introduced; the changes consist entirely of macro deletions including flow table constants, timeout values, checksum offload capabilities, and various configuration flags. Changes
 Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes 
 Poem
 Pre-merge checks and finishing touches❌ Failed checks (1 warning)
 ✅ Passed checks (2 passed)
 ✨ Finishing touches
 🧪 Generate unit tests (beta)
 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (16)
 💤 Files with no reviewable changes (16)
 Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment   | 
    
Auto-submission for "http://patchwork.dpdk.org/project/dpdk/list/?series=36543"
Summary by CodeRabbit
Release Notes