diff options
| author | stephen hemminger <[email protected]> | 2017-06-08 16:21:18 -0700 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-06-09 12:15:02 -0400 |
| commit | 60b86665af0dfbeebda8aae43f0ba451cd2dcfe5 (patch) | |
| tree | 3a1bee4ef1598c9ce45650c51625eb7551d01f7e /tools | |
| parent | e073782a41bf6018d8db16fd54155384b7e6da65 (diff) | |
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions