diff options
author | stephen hemminger <stephen@networkplumber.org> | 2017-07-28 08:59:45 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-29 15:25:43 -0700 |
commit | 7426b1a51803ba2d368177363a134b98b0a8d1c0 (patch) | |
tree | 76bc72d1dca7afb26bced93ee47e979be4dedaab /net/tipc/msg.h | |
parent | 02b6de01af1d116c107d61fa3e8583be3b97ac3c (diff) | |
download | linux-7426b1a51803ba2d368177363a134b98b0a8d1c0.tar.gz linux-7426b1a51803ba2d368177363a134b98b0a8d1c0.tar.xz |
netvsc: optimize receive completions
Optimize how receive completion ring are managed.
* Allocate only as many slots as needed for all buffers from host
* Allocate before setting up sub channel for better error detection
* Don't need to keep copy of initial receive section message
* Precompute the watermark for when receive flushing is needed
* Replace division with conditional test
* Replace atomic per-device variable with per-channel check.
* Handle corner case where receive completion send
fails if ring buffer to host is full.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/tipc/msg.h')
0 files changed, 0 insertions, 0 deletions