Skip to content

Commit 4ab138c

Browse files
davidarinzonkuba-moo
authored andcommitted
net: ena: Fix XDP redirection error
When sending TX packets, the meta descriptor can be all zeroes as no meta information is required (as in XDP). This patch removes the validity check, as when `disable_meta_caching` is enabled, such TX packets will be dropped otherwise. Fixes: 0e3a3f6 ("net: ena: support new LLQ acceleration mode") Signed-off-by: Shay Agroskin <[email protected]> Signed-off-by: David Arinzon <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent d760117 commit 4ab138c

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/net/ethernet/amazon/ena/ena_eth_com.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,6 @@ static int ena_com_create_and_store_tx_meta_desc(struct ena_com_io_sq *io_sq,
328328
* compare it to the stored version, just create the meta
329329
*/
330330
if (io_sq->disable_meta_caching) {
331-
if (unlikely(!ena_tx_ctx->meta_valid))
332-
return -EINVAL;
333-
334331
*have_meta = true;
335332
return ena_com_create_meta(io_sq, ena_meta);
336333
}

0 commit comments

Comments
 (0)