]> www.infradead.org Git - users/dwmw2/linux.git/commit
fbnic: Pull fbnic_fw_xmit_cap_msg use out of interrupt context
authorAlexander Duyck <alexanderduyck@fb.com>
Tue, 6 May 2025 16:00:18 +0000 (09:00 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 8 May 2025 09:33:30 +0000 (11:33 +0200)
commit1b34d1c1dc8384884febd83140c9afbc7c4b9eb8
tree4a921596a9df5af5269c8478044ee9bd75537c58
parentab064f6005973d456f95ae99cd9ea0d8ab676cce
fbnic: Pull fbnic_fw_xmit_cap_msg use out of interrupt context

This change pulls the call to fbnic_fw_xmit_cap_msg out of
fbnic_mbx_init_desc_ring and instead places it in the polling function for
getting the Tx ready. Doing that we can avoid the potential issue with an
interrupt coming in later from the firmware that causes it to get fired in
interrupt context.

Fixes: 20d2e88cc746 ("eth: fbnic: Add initial messaging to notify FW of our presence")
Signed-off-by: Alexander Duyck <alexanderduyck@fb.com>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Link: https://patch.msgid.link/174654721876.499179.9839651602256668493.stgit@ahduyck-xeon-server.home.arpa
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/meta/fbnic/fbnic_fw.c