]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix and simplify XDP transmit path
authorMichael Chan <michael.chan@broadcom.com>
Tue, 12 Jul 2022 02:26:17 +0000 (22:26 -0400)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jul 2022 03:35:55 +0000 (20:35 -0700)
commite0bb99f376fba200b3e419cdc0c4e16fe5c9c910
treecb4d402693234893fd85e15a59fac9bbbd6a0cf6
parent219f14cdc61945f75994616eb0d66f6ed1c561cb
bnxt_en: Fix and simplify XDP transmit path

Fix the missing length hint in the TX BD for the XDP transmit path.  The
length hint is required on legacy chips.

Also, simplify the code by eliminating the first_buf local variable.
tx_buf contains the same value.  The opaque value only needs to be set
on the first BD.  Fix this also for correctness.

Fixes: c286284ed114 ("bnxt: support transmit and free of aggregation buffers")
Reviewed-by: Andy Gospodarek <andrew.gospodarek@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c