mbox series

[net-next,0/6] hv_netvsc: minor optimizations

Message ID 20171201190149.22683-1-sthemmin@microsoft.com
Headers show
Series hv_netvsc: minor optimizations | expand

Message

Stephen Hemminger Dec. 1, 2017, 7:01 p.m. UTC
These are a set of local optimizations the Hyper-V networking driver.
Also include a vmbus patch in this set, because it depends on the
netvsc that last used that function.

Stephen Hemminger (6):
  hv_netvsc: drop unused macros
  hv_netvsc: don't need local xmit_more
  hv_netvsc: replace divide with mask when computing padding
  hv_netvsc: use reciprocal divide to speed up percent calculation
  hv_netvsc: optimize initialization of RNDIS header
  vmbus: make hv_get_ringbuffer_availbytes local

 drivers/hv/ring_buffer.c          | 23 ++++++++++++
 drivers/net/hyperv/hyperv_net.h   | 32 ++---------------
 drivers/net/hyperv/netvsc.c       | 26 ++++++--------
 drivers/net/hyperv/netvsc_drv.c   | 74 ++++++++++++++++++---------------------
 drivers/net/hyperv/rndis_filter.c |  4 +--
 include/linux/hyperv.h            | 22 ------------
 6 files changed, 73 insertions(+), 108 deletions(-)

Comments

David Miller Dec. 3, 2017, 3:11 p.m. UTC | #1
From: Stephen Hemminger <stephen@networkplumber.org>
Date: Fri,  1 Dec 2017 11:01:43 -0800

> These are a set of local optimizations the Hyper-V networking driver.
> Also include a vmbus patch in this set, because it depends on the
> netvsc that last used that function.

Series applied.

For the ring percentage stuff, I would suggest sticking to power of 2
arithmetic (and thus approximations) even when the ring size is not a
power of 2.  That way you won't even need multiplies.