diff options
| author | stephen hemminger <stephen@networkplumber.org> | 2017-06-09 02:21:18 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-06-09 19:15:02 +0300 |
| commit | 60b86665af0dfbeebda8aae43f0ba451cd2dcfe5 (patch) | |
| tree | 3a1bee4ef1598c9ce45650c51625eb7551d01f7e /tools/perf/scripts/python | |
| parent | e073782a41bf6018d8db16fd54155384b7e6da65 (diff) | |
| download | linux-60b86665af0dfbeebda8aae43f0ba451cd2dcfe5.tar.xz | |
netvsc: optimize calculation of number of slots
Speed up transmit check for fragmented packets by using existing
macros to compute number of pages, and eliminate loop since
skb fragments each take a page. Number of slots is also unsigned.
Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
