diff options
author | Li RongQing | 2018-07-13 08:41:36 +0200 |
---|---|---|
committer | David S. Miller | 2018-07-16 22:40:54 +0200 |
commit | d9f37d01e294e5338aa3e9d3b2eda61b59b619df (patch) | |
tree | 9755e0a61d4dab5761a4d015745b58f79947e8cc /Documentation/mmc/mmc-async-req.txt | |
parent | bnxt_en: remove redundant debug register dma mem allocation (diff) | |
download | kernel-qcow2-linux-d9f37d01e294e5338aa3e9d3b2eda61b59b619df.tar.gz kernel-qcow2-linux-d9f37d01e294e5338aa3e9d3b2eda61b59b619df.tar.xz kernel-qcow2-linux-d9f37d01e294e5338aa3e9d3b2eda61b59b619df.zip |
net: convert gro_count to bitmask
gro_hash size is 192 bytes, and uses 3 cache lines, if there is few
flows, gro_hash may be not fully used, so it is unnecessary to iterate
all gro_hash in napi_gro_flush(), to occupy unnecessary cacheline.
convert gro_count to a bitmask, and rename it as gro_bitmask, each bit
represents a element of gro_hash, only flush a gro_hash element if the
related bit is set, to speed up napi_gro_flush().
and update gro_bitmask only if it will be changed, to reduce cache
update
Suggested-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Cc: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation/mmc/mmc-async-req.txt')
0 files changed, 0 insertions, 0 deletions