Skip to content

Commit

Permalink
linux/ena: Fix XDP redirection error on c6gn machines
Browse files Browse the repository at this point in the history
This patch removes the redundant meta descriptor validity check for c6gn
machines. Since the descriptor can be all zeroes, annotating that the
meta is valid doesn't have much of an effect.

Change-Id: Ia3a60af61ff538dde48422619ae957fd330bb6a3
Signed-off-by: Shay Agroskin <[email protected]>
  • Loading branch information
ShayAgros committed Oct 5, 2021
1 parent 4ac653d commit b952df8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions kernel/linux/common/ena_com/ena_eth_com.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,6 @@ static int ena_com_create_and_store_tx_meta_desc(struct ena_com_io_sq *io_sq,
* compare it to the stored version, just create the meta
*/
if (io_sq->disable_meta_caching) {
if (unlikely(!ena_tx_ctx->meta_valid))
return -EINVAL;

*have_meta = true;
return ena_com_create_meta(io_sq, ena_meta);
}
Expand Down

0 comments on commit b952df8

Please sign in to comment.