]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: only set dev->queue_mgmt_ops if supported by FW
authorDavid Wei <dw@davidwei.uk>
Thu, 8 Aug 2024 05:15:18 +0000 (22:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Aug 2024 12:48:02 +0000 (13:48 +0100)
commit97cbf3d0accce0f29db0be3ac1b50d9d561d3206
treeebbe506d9b8fe651ac16ad734933ed07555ad0b2
parentb9d2956e869c78bb356a71dd0a75346da9fd191f
bnxt_en: only set dev->queue_mgmt_ops if supported by FW

The queue API calls bnxt_hwrm_vnic_update() to stop/start the flow of
packets, which can only properly flush the pipeline if FW indicates
support.

Add a macro BNXT_SUPPORTS_QUEUE_API that checks for the required flags
and only set queue_mgmt_ops if true.

Signed-off-by: David Wei <dw@davidwei.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h