Re: [PATCH] net/nfp: fix the initialization of physical representors

2023-10-12 Thread Ferruh Yigit
On 10/10/2023 7:03 AM, Chaoyong He wrote: > From: Zerun Fu > > The former logic of initializing the array of physical port > representors is according to 'nfp_idx', but referencing based > on 'port_id'. This is a potential bug and will cause segment > fault when these two values are not equal. Fi

[PATCH] net/nfp: fix the initialization of physical representors

2023-10-09 Thread Chaoyong He
From: Zerun Fu The former logic of initializing the array of physical port representors is according to 'nfp_idx', but referencing based on 'port_id'. This is a potential bug and will cause segment fault when these two values are not equal. Fix it by using the 'port_id' as index at all time. Fix