Re: [PATCH] net/sfc: invalidate switch port entry on representor unplug

2023-03-13 Thread Ferruh Yigit
On 3/12/2023 7:28 AM, Andrew Rybchenko wrote: > On 3/10/23 20:07, Ivan Malov wrote: >> Once allocated, a switch port list entry always stays there, >> even after unplugging the ethdev that created it. Currently, >> the entry's ethdev ID is not cleared on unplug. Referencing >> the ethdev ID of a de

Re: [PATCH] net/sfc: invalidate switch port entry on representor unplug

2023-03-11 Thread Andrew Rybchenko
On 3/10/23 20:07, Ivan Malov wrote: Once allocated, a switch port list entry always stays there, even after unplugging the ethdev that created it. Currently, the entry's ethdev ID is not cleared on unplug. Referencing the ethdev ID of a detached representor from a flow rule is going to succeed, w

[PATCH] net/sfc: invalidate switch port entry on representor unplug

2023-03-10 Thread Ivan Malov
Once allocated, a switch port list entry always stays there, even after unplugging the ethdev that created it. Currently, the entry's ethdev ID is not cleared on unplug. Referencing the ethdev ID of a detached representor from a flow rule is going to succeed, which is a bug. Also, if the user unplu