bnxt_en: Implement .ndo_features_check().
authorMichael Chan <michael.chan@broadcom.com>
Sun, 25 Apr 2021 17:45:27 +0000 (13:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2021 01:37:39 +0000 (18:37 -0700)
commit1698d600b361915fbe5eda63a613da55c435bd34
tree7ec35dff47e8f61cd14cf140de0a4e8b9980f527
parentdade5e15fade59a789c30bc47abfe926ddd856d6
bnxt_en: Implement .ndo_features_check().

For UDP encapsultions, we only support the offloaded Vxlan port and
Geneve port.  All other ports included FOU and GUE are not supported so
we need to turn off TSO and checksum features.

v2: Reverse the check for supported UDP ports to be more straight forward.

Reviewed-by: Sriharsha Basavapatna <sriharsha.basavapatna@broadcom.com>
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h