The branch main has been updated by mw:

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

commit a831466830de6ab55fc03170290b313157196e81
Author:     Artur Rojek <a...@semihalf.com>
AuthorDate: 2021-08-12 08:34:28 +0000
Commit:     Marcin Wojtas <m...@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 */
 
_______________________________________________
dev-commits-src-main@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main
To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"

Reply via email to