summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/toshiba/ps3_gelic_net.c
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2021-09-05 21:10:58 +0300
committerDavid S. Miller <davem@davemloft.net>2021-09-05 22:43:04 +0300
commit7ae9dc356f247ad9f9634b3da61a45eb72968b2e (patch)
tree9f1700ed4ea45004e4049b78df5a4f985864b636 /drivers/net/ethernet/toshiba/ps3_gelic_net.c
parent6fdab8a3ade2adc123bbf5c4fdec3394560b1fb1 (diff)
downloadlinux-7ae9dc356f247ad9f9634b3da61a45eb72968b2e.tar.xz
bnxt_en: Fix UDP tunnel logic
The current logic assumes that when the driver sends the message to the firmware to add the VXLAN or Geneve port, the firmware will never fail the operation. The UDP ports are always stored and are used to check the tunnel packets in .ndo_features_check(). These tunnnel packets will fail to offload on the transmit side if firmware fails the call to add the UDP ports. To fix the problem, bp->vxlan_port and bp->nge_port will only be set to the offloaded ports when the HWRM_TUNNEL_DST_PORT_ALLOC firmware call succeeds. When deleting a UDP port, we check that the port was previously added successfuly first by checking the FW ID. Fixes: 1698d600b361 ("bnxt_en: Implement .ndo_features_check().") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/toshiba/ps3_gelic_net.c')
0 files changed, 0 insertions, 0 deletions