linux_dsm_epyc7002/drivers/net/hyperv
Stephen Hemminger f5a2255010 hv_netvsc: optimize initialization of RNDIS header
The memset of the whole maximum possible RNDIS header is unnecessary.
For the main part of the header use a structure assignment.

No need to memset the whole per packet info. Instead rely on caller to
set what it wants. Also get rid of cast to void and signed/unsigned
conversion. Now return pointer to per packet data (rather than the
header) which simplifies use by code setting up the packet data.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-12-03 10:10:02 -05:00
..
hyperv_net.h hv_netvsc: use reciprocal divide to speed up percent calculation 2017-12-03 10:10:02 -05:00
Kconfig
Makefile
netvsc_drv.c hv_netvsc: optimize initialization of RNDIS header 2017-12-03 10:10:02 -05:00
netvsc.c hv_netvsc: use reciprocal divide to speed up percent calculation 2017-12-03 10:10:02 -05:00
rndis_filter.c hv_netvsc: use reciprocal divide to speed up percent calculation 2017-12-03 10:10:02 -05:00