]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net/mana: fix warning in the writer of client oob
authorKonstantin Taranov <kotaranov@microsoft.com>
Mon, 20 Jan 2025 17:27:14 +0000 (09:27 -0800)
committerLeon Romanovsky <leon@kernel.org>
Tue, 4 Feb 2025 13:27:03 +0000 (08:27 -0500)
Do not warn on missing pad_data when oob is in sgl.

Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com>
Link: https://patch.msgid.link/1737394039-28772-9-git-send-email-kotaranov@linux.microsoft.com
Reviewed-by: Shiraz Saleem <shirazsaleem@microsoft.com>
Reviewed-by: Long Li <longli@microsoft.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/net/ethernet/microsoft/mana/gdma_main.c

index 4e71987bbf2cd856cc774197beb6719858998c49..4701bcaa7808707eaf3e5805896e7d8bc3a545ae 100644 (file)
@@ -1042,7 +1042,7 @@ static u32 mana_gd_write_client_oob(const struct gdma_wqe_request *wqe_req,
        header->inline_oob_size_div4 = client_oob_size / sizeof(u32);
 
        if (oob_in_sgl) {
-               WARN_ON_ONCE(!pad_data || wqe_req->num_sge < 2);
+               WARN_ON_ONCE(wqe_req->num_sge < 2);
 
                header->client_oob_in_sgl = 1;