Message ID | 20240603212219.1037656-3-tariqt@nvidia.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 70bd03b89f20b9bbe51a7f73c4950565a17a45f7 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | net/mlx5e: SHAMPO, Enable HW GRO once more | expand |
On Tue, 4 Jun 2024 00:22:07 +0300 Tariq Toukan wrote:
> Fixes: 6f5742846053 ("net/mlx5e: RX, Enable skb page recycling through the page_pool")
Why is this still here?! If the bad code path cannot be hit without
applying patches later in the series, it's not a fix. Let me remove
this for you when applying so y'all don't descend on me for "hating
vendors" :|
On 06/06/2024 6:20, Jakub Kicinski wrote: > On Tue, 4 Jun 2024 00:22:07 +0300 Tariq Toukan wrote: >> Fixes: 6f5742846053 ("net/mlx5e: RX, Enable skb page recycling through the page_pool") > > Why is this still here?! It shouldn't, I planned to remove it, but missed it eventually. > If the bad code path cannot be hit without > applying patches later in the series, it's not a fix. Let me remove > this for you when applying Yes please. Thanks. > so y'all don't descend on me for "hating > vendors" :|
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c index 369d101bf03c..1ddfa00f923f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rx.c @@ -2369,7 +2369,8 @@ static void mlx5e_handle_rx_cqe_mpwrq_shampo(struct mlx5e_rq *rq, struct mlx5_cq if (flush) mlx5e_shampo_flush_skb(rq, cqe, match); free_hd_entry: - mlx5e_free_rx_shampo_hd_entry(rq, header_index); + if (likely(head_size)) + mlx5e_free_rx_shampo_hd_entry(rq, header_index); mpwrq_cqe_out: if (likely(wi->consumed_strides < rq->mpwqe.num_strides)) return;