Re: [PATCH net] sctp: fix double EPs display in sctp_diag

2016-05-25 Thread David Miller
From: Xin Long Date: Thu, 26 May 2016 03:09:23 +0800 > We have this situation: that EP hash table, contains only the EPs > that are listening, while the transports one, has the opposite. > We have to traverse both to dump all. > > But when we traverse the transports one we will also get EPs that

Re: [PATCH net] sctp: fix double EPs display in sctp_diag

2016-05-25 Thread Marcelo Ricardo Leitner
On Thu, May 26, 2016 at 03:09:23AM +0800, Xin Long wrote: > We have this situation: that EP hash table, contains only the EPs > that are listening, while the transports one, has the opposite. > We have to traverse both to dump all. > > But when we traverse the transports one we will also get EPs t

[PATCH net] sctp: fix double EPs display in sctp_diag

2016-05-25 Thread Xin Long
We have this situation: that EP hash table, contains only the EPs that are listening, while the transports one, has the opposite. We have to traverse both to dump all. But when we traverse the transports one we will also get EPs that are in the EP hash if they are listening. In this case, the EP i