]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: use DECLARE_EWMA
authorJohannes Berg <johannes@sipsolutions.net>
Wed, 19 Aug 2015 07:48:40 +0000 (09:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2015 21:10:22 +0000 (14:10 -0700)
commit147424976e61ecbd8d82ec02bee09cfc2bcc4d25
treebda33ec08e16ce3336febc410232286a2371dc6e
parentc945731d515d7fbaeeb4826837999ae88f7a7dcc
virtio_net: use DECLARE_EWMA

Instead of using the out-of-line EWMA calculation, use DECLARE_EWMA()
to create static inlines. On x86/64 this results in no change in code
size for me, but reduces the struct receive_queue size by the two
unsigned long values that store the parameters.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/Kconfig
drivers/net/virtio_net.c