summaryrefslogtreecommitdiffstats
path: root/ipc/compat.c
diff options
context:
space:
mode:
authorVasundhara Volam <vasundhara.volam@emulex.com>2014-04-14 16:12:40 +0530
committerDavid S. Miller <davem@davemloft.net>2014-04-14 13:41:37 -0400
commit1a3d0717f68345730ae939b74b952200fb165f45 (patch)
tree2fba736b42cf43321f3e2db63fe1e7fd7a454ba2 /ipc/compat.c
parente1a5ddc5069a0c7589a139e0422200672d965581 (diff)
downloadlinux-1a3d0717f68345730ae939b74b952200fb165f45.tar.bz2
be2net: Fix to reap TX compls till HW doesn't respond for some time
be_close() currently waits for a max of 200ms to receive all pending TX compls. This timeout value was roughly calculated based on 10G transmission speeds and the TX queue depth. This timeout may not be enough when the link is operating at lower speeds or in multi-channel/SR-IOV configs with TX-rate limiting setting. It is hard to calculate a "proper timeout value" that works in all configurations. This patch solves this problem by continuing to reap TX completions till the HW is completely silent for a period of 10ms or a HW error is detected. v2: implements the new scheme (as suggested by David Laight) instead of just waiting longer than 200ms for reaping all completions. Signed-off-by: Vasundhara Volam <vasundhara.volam@emulex.com> Signed-off-by: Sathya Perla <sathya.perla@emulex.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc/compat.c')
0 files changed, 0 insertions, 0 deletions