octeon_ep: Clear VF info at PF when VF driver is removed
Subsystems (3)
Sathesh B Edara
maintainerPATCH v2 1/1 octeon_ep: Clear VF info at PF when VF driver is removed
When a VF (Virtual Function) driver is removed, the PF (Physical Function) driver continues to retain stale VF-specific information. This can lead to inconsistencies or unexpected behavior when the VF is re-initialized or reassigned.
This patch ensures that the PF driver clears the corresponding VF info when the VF driver is removed, maintaining a clean state and preventing potential issues.
---
Changes:
V2:
- Commit header format corrected.
drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.c +2 -0
@@ -205,6 +205,8 @@ static void octep_pfvf_dev_remove(struct octep_device *oct, u32 vf_id, {int err; +/* Reset VF-specific information maintained by the PF */ +memset (&oct->vf_info[vf_id],0 ,sizeof (struct octep_pfvf_info )); err =octep_ctrl_net_dev_remove (oct, vf_id);if (err) { rsp->s.type =OCTEP_PFVF_MBOX_TYPE_RSP_NACK ;
Signature · 1 line
2.36.0
Simon Horman
reviewerQuoted 9 lines · Sathesh B Edara
When a VF (Virtual Function) driver is removed, the PF (Physical Function) driver continues to retain stale VF-specific information. This can lead to inconsistencies or unexpected behavior when the VF is re-initialized or reassigned.
This patch ensures that the PF driver clears the corresponding VF info when the VF driver is removed, maintaining a clean state and preventing potential issues.
Quoted 6 lines
Fixes cde29af9e68e ("octeon_ep: add PF-VF mailbox communication")Signed-off-by Sathesh B Edara <[email protected]>---
Changes:
V2:
- Commit header format corrected.
Hi,
I feel that I must be missing something terribly obvious. But this patch seems to be a subset of the one at the link below.
* [net PATCH v2] octeon_ep: fix VF MAC address lifecycle handling
https://lore.kernel.org/netdev/[email protected]/
Quoted 21 lines
drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.c | 2 ++ 1 file changed, 2 insertions(+)drivers/net/ethernet/marvell/octeon_ep/octep_pfvf_mbox.c +2
-0@@ -205,6 +205,8 @@ static void octep_pfvf_dev_remove(struct octep_device *oct, u32 vf_id, {int err; +/* Reset VF-specific information maintained by the PF */ +memset (&oct->vf_info[vf_id],0 ,sizeof (struct octep_pfvf_info )); err =octep_ctrl_net_dev_remove (oct, vf_id);if (err) { rsp->s.type =OCTEP_PFVF_MBOX_TYPE_RSP_NACK ;Signature · 1 line
2.36.0
Sathesh B Edara
maintainerQuoted 18 lines · Sathesh B Edara
Quoted 9 lines
When a VF (Virtual Function) driver is removed, the PF (Physical Function) driver continues to retain stale VF-specific information. This can lead to inconsistencies or unexpected behavior when the VF is re-initialized or reassigned.
This patch ensures that the PF driver clears the corresponding VF info when the VF driver is removed, maintaining a clean state and preventing potential issues.
Quoted 6 lines
Fixes cde29af9e68e ("octeon_ep: add PF-VF mailbox communication")Signed-off-by Sathesh B Edara <[email protected]>---
Changes:
V2:
- Commit header format corrected.
Quoted 5 lines
Hi,
I feel that I must be missing something terribly obvious. But this patch seems to be a subset of the one at the link below.
You're absolutely right — apologies for the confusion. I mistakenly sent the wrong patch and so marked its state as 'Not Applicable'.
Please disregard this patch.
Simon Horman
reviewerQuoted 18 lines · Sathesh B Edara
Quoted 18 lines · Sathesh B Edara
Quoted 15 lines
When a VF (Virtual Function) driver is removed, the PF (Physical Function) driver continues to retain stale VF-specific information. This can lead to inconsistencies or unexpected behavior when the VF is re-initialized or reassigned.
This patch ensures that the PF driver clears the corresponding VF info when the VF driver is removed, maintaining a clean state and preventing potential issues.
Fixes cde29af9e68e ("octeon_ep: add PF-VF mailbox communication")Signed-off-by Sathesh B Edara <[email protected]>---
Changes:
V2:
- Commit header format corrected.
Quoted 7 lines
Quoted 5 lines
Hi,
I feel that I must be missing something terribly obvious. But this patch seems to be a subset of the one at the link below.
You're absolutely right — apologies for the confusion. I mistakenly sent the wrong patch and so marked its state as 'Not Applicable'.
Please disregard this patch.
Thanks, understood.