summaryrefslogtreecommitdiff
path: root/net/smc/smc_cdc.c
diff options
context:
space:
mode:
authorDust Li <dust.li@linux.alibaba.com>2022-03-01 12:44:01 +0300
committerDavid S. Miller <davem@davemloft.net>2022-03-01 17:25:12 +0300
commita505cce6f7cfaf2aa2385aab7286063c96444526 (patch)
tree7f42d2f2684a796dd4966aacbe8f2f29247dc231 /net/smc/smc_cdc.c
parent6bf536eb5c8ca011d1ff57b5c5f7c57ceac06a37 (diff)
downloadlinux-a505cce6f7cfaf2aa2385aab7286063c96444526.tar.xz
net/smc: don't req_notify until all CQEs drained
When we are handling softirq workload, enable hardirq may again interrupt the current routine of softirq, and then try to raise softirq again. This only wastes CPU cycles and won't have any real gain. Since IB_CQ_REPORT_MISSED_EVENTS already make sure if ib_req_notify_cq() returns 0, it is safe to wait for the next event, with no need to poll the CQ again in this case. This patch disables hardirq during the processing of softirq, and re-arm the CQ after softirq is done. Somehow like NAPI. Co-developed-by: Guangguan Wang <guangguan.wang@linux.alibaba.com> Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com> Signed-off-by: Dust Li <dust.li@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/smc/smc_cdc.c')
0 files changed, 0 insertions, 0 deletions