From: Michael Chan <michael.chan@broadcom.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org,
Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Subject: [PATCH net-next 5/9] bnxt_en: Set MASTER flag during driver registration.
Date: Mon, 18 Nov 2019 03:56:39 -0500 [thread overview]
Message-ID: <1574067403-4344-6-git-send-email-michael.chan@broadcom.com> (raw)
In-Reply-To: <1574067403-4344-1-git-send-email-michael.chan@broadcom.com>
From: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
The Linux driver is capable of being the master function to handle
resets, so we set the flag to let firmware know. Some other
drivers, such as DPDK, is not capable and will not set the flag.
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
---
drivers/net/ethernet/broadcom/bnxt/bnxt.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt.c b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
index b081a55..178490c 100644
--- a/drivers/net/ethernet/broadcom/bnxt/bnxt.c
+++ b/drivers/net/ethernet/broadcom/bnxt/bnxt.c
@@ -4441,7 +4441,8 @@ static int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp)
flags = FUNC_DRV_RGTR_REQ_FLAGS_16BIT_VER_MODE |
FUNC_DRV_RGTR_REQ_FLAGS_HOT_RESET_SUPPORT;
if (bp->fw_cap & BNXT_FW_CAP_ERROR_RECOVERY)
- flags |= FUNC_DRV_RGTR_REQ_FLAGS_ERROR_RECOVERY_SUPPORT;
+ flags |= FUNC_DRV_RGTR_REQ_FLAGS_ERROR_RECOVERY_SUPPORT |
+ FUNC_DRV_RGTR_REQ_FLAGS_MASTER_SUPPORT;
req.flags = cpu_to_le32(flags);
req.ver_maj_8b = DRV_VER_MAJ;
req.ver_min_8b = DRV_VER_MIN;
--
2.5.1
next prev parent reply other threads:[~2019-11-18 8:57 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-18 8:56 [PATCH net-next 0/9] bnxt_en: Updates Michael Chan
2019-11-18 8:56 ` [PATCH net-next 1/9] bnxt_en: Update firmware interface spec to 1.10.1.12 Michael Chan
2019-11-18 8:56 ` [PATCH net-next 2/9] bnxt_en: Improve RX buffer error handling Michael Chan
2019-11-18 8:56 ` [PATCH net-next 3/9] bnxt_en: Increase firmware response timeout for coredump commands Michael Chan
2019-11-18 8:56 ` [PATCH net-next 4/9] bnxt_en: Extend ETHTOOL_RESET to hot reset driver Michael Chan
2019-11-18 8:56 ` Michael Chan [this message]
2019-11-18 8:56 ` [PATCH net-next 6/9] bnxt_en: Report health status update after reset is done Michael Chan
2019-11-18 8:56 ` [PATCH net-next 7/9] bnxt_en: Return proper error code for non-existent NVM variable Michael Chan
2019-11-18 8:56 ` [PATCH net-next 8/9] bnxt_en: Add a warning message for driver initiated reset Michael Chan
2019-11-18 8:56 ` [PATCH net-next 9/9] bnxt_en: Abort waiting for firmware response if there is no heartbeat Michael Chan
2019-11-18 22:09 ` [PATCH net-next 0/9] bnxt_en: Updates Jakub Kicinski
2019-11-19 1:15 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1574067403-4344-6-git-send-email-michael.chan@broadcom.com \
--to=michael.chan@broadcom.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
--cc=vasundhara-v.volam@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).