From: David Ahern Date: Mon, 15 Jan 2018 16:25:30 +0000 (-0800) Subject: Merge branch 'tc-batch' into net-next X-Git-Tag: v4.16.0~88 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e209d4c83dc87470f259122be19afe4401407a06;p=thirdparty%2Fiproute2.git Merge branch 'tc-batch' into net-next Chris Mi says: ==================== Currently in tc batch mode, only one command is read from the batch file and sent to kernel to process. With this patchset, at most 128 commands can be accumulated before sending to kernel. We introduced a new function in patch 1 to support for sending multiple messages. In patch 2, we add this support for filter add/delete/change/replace and actions add/change/replace commands. But please note that kernel still processes the requests one by one. To process the requests in parallel in kernel is another effort. The time we're saving in this patchset is the user mode and kernel mode context switch. So this patchset works on top of the current kernel. Using the following script in kernel, we can generate 1,000,000 rules. tools/testing/selftests/tc-testing/tdc_batch.py Without this patchset, 'tc -b $file' exection time is: real 0m15.555s user 0m7.211s sys 0m8.284s With this patchset, 'tc -b $file' exection time is: real 0m12.360s user 0m6.082s sys 0m6.213s The insertion rate is improved more than 10%. ==================== Signed-off-by: David Ahern --- e209d4c83dc87470f259122be19afe4401407a06