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)
commit53f8c2d37efb5b03b9527ad04332df3bb889f0fa
treecb4d402693234893fd85e15a59fac9bbbd6a0cf6
parent619b9b1622c283cc5ca86f4c487db266a8f55dab
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: a7559bc8c17c ("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