git: a831466830de - main - ena: Disable meta descriptor caching for netmap

Marcin Wojtas mw at FreeBSD.org
Wed Sep 1 23:07:40 UTC 2021


The branch main has been updated by mw:

URL: https://cgit.FreeBSD.org/src/commit/?id=a831466830de6ab55fc03170290b313157196e81

commit a831466830de6ab55fc03170290b313157196e81
Author:     Artur Rojek <ar at semihalf.com>
AuthorDate: 2021-08-12 08:34:28 +0000
Commit:     Marcin Wojtas <mw at FreeBSD.org>
CommitDate: 2021-09-01 23:06:31 +0000

    ena: Disable meta descriptor caching for netmap
    
    If LLQ is being used, `ena_tx_ctx.meta_valid` must stay enabled. This
    fixes netmap support on latest generation ENA HW and aligns it with the
    core driver behavior.
    
    As netmap doesn't support any csum offloads, the
    `adapter->disable_meta_caching` value can be simply passed to the HW.
    
    Obtained from: Semihalf
    MFC after: 2 weeks
    Sponsored by: Amazon, Inc.
---
 sys/dev/ena/ena_netmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/ena/ena_netmap.c b/sys/dev/ena/ena_netmap.c
index 7e07b0a8c555..74cdea6c34fa 100644
--- a/sys/dev/ena/ena_netmap.c
+++ b/sys/dev/ena/ena_netmap.c
@@ -426,6 +426,7 @@ ena_netmap_tx_frame(struct ena_netmap_ctx *ctx)
 	ena_tx_ctx.num_bufs = tx_info->num_of_bufs;
 	ena_tx_ctx.req_id = req_id;
 	ena_tx_ctx.header_len = header_len;
+	ena_tx_ctx.meta_valid = adapter->disable_meta_caching;
 
 	/* There are no any offloads, as the netmap doesn't support them */
 


More information about the dev-commits-src-all mailing list