OSDN Git Service

bnxt_en: Support IFF_SUPP_NOFCS feature to transmit without ethernet FCS.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 25 Apr 2021 17:45:26 +0000 (13:45 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Apr 2021 01:37:39 +0000 (18:37 -0700)
commitdade5e15fade59a789c30bc47abfe926ddd856d6
tree408082e30e2ed48055fe008671db0af6097f541f
parent7fbf359bb2c19c824cbb1954020680824f6ee5a5
bnxt_en: Support IFF_SUPP_NOFCS feature to transmit without ethernet FCS.

If firmware is capable, set the IFF_SUPP_NOFCS flag to support the
sockets option to transmit packets without FCS.  This is mainly used
for testing.

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