]> git.itanic.dy.fi Git - linux-stable/commit
octeontx2-pf: Use default max_active works instead of one
authorSubbaraya Sundeep <sbhatta@marvell.com>
Mon, 18 Mar 2024 09:29:56 +0000 (14:59 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Mar 2024 10:49:07 +0000 (10:49 +0000)
commit7558ce0d974ced1dc07edc1197f750fe28c52e57
tree5fca47dc4777c2b5929fd0bae4c5c6caf4c13555
parentcbf2f24939a5dafce6de4dd4422e543ce8f610cf
octeontx2-pf: Use default max_active works instead of one

Only one execution context for the workqueue used for PF and
VFs mailbox communication is incorrect since multiple works are
queued simultaneously by all the VFs and PF link UP messages.
Hence use default number of execution contexts by passing zero
as max_active to alloc_workqueue function. With this fix in place,
modify UP messages also to wait until completion.

Fixes: d424b6c02415 ("octeontx2-pf: Enable SRIOV and added VF mbox handling")
Signed-off-by: Subbaraya Sundeep <sbhatta@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_pf.c