]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
bnxt_en: Configure UDP tunnel TPA
authorMichael Chan <michael.chan@broadcom.com>
Tue, 12 Dec 2023 00:51:18 +0000 (16:51 -0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Dec 2023 00:05:58 +0000 (16:05 -0800)
commit960096334417d841593f848323a35ff6c7dacffe
tree259b1f9d67a81598efe4c7310bd3827e05c5b023
parent77b0fff55dcd34b41d879ab20d3c13cfc9672179
bnxt_en: Configure UDP tunnel TPA

On the new P7 chips, TPA for tunnel packets can be independently
enabled for each VNIC.  The default TPA configuration should not
include UDP tunnels because the UDP ports for these tunnels are not
known yet.  The chip should not aggregate these UDP tunneled packets
using default UDP ports until the ports are known.

Add a new function bnxt_hwrm_vnic_update_tunl_tpa() to enable VXLAN
and Geneve TPA if the corresponding UDP ports are known.

Reviewed-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://lore.kernel.org/r/20231212005122.2401-10-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h