]> 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)
commit816e6a8787bef9e63c3519e0584664fc910cc0f9
treecb4d402693234893fd85e15a59fac9bbbd6a0cf6
parent5bb12076951a74dbfecd6836e49adc547c46e465
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: 4841425dc515 ("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