This counter was removed when the commit
56cd20cb53 ("BUG/MEDIUM: sock:
Remove FD_POLL_HUP during connect() if FD_POLL_ERR is not set") was
backported because the debug counters were not backported yet to the
3.0. Now de debug counters are available in 3.0, this counter can also be
added.
This commit is 3.0-specific. There is no upstream ID.
* - https://www.spinics.net/lists/netdev/msg876470.html
*/
if (unlikely((fdtab[fd].state & (FD_POLL_HUP|FD_POLL_ERR)) == FD_POLL_HUP)) {
+ COUNT_IF(1, "Removing FD_POLL_HUP if no FD_POLL_ERR to let connect() decide");
fdtab[fd].state &= ~FD_POLL_HUP;
}