net/virtio: introduce helper for clearing net header
authorTiwei Bie <tiwei.bie@intel.com>
Tue, 19 Feb 2019 10:59:50 +0000 (18:59 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 22 Feb 2019 13:39:49 +0000 (14:39 +0100)
commitb92f1429a66fb1b9906305eb241aeff9a44ac06e
treea45d5a3c67f03b25844b5336d4d6aca7b28a84ce
parent5c75a8efcd1f06bc8b2c1916559e2178d87baaae
net/virtio: introduce helper for clearing net header

This patch introduces a helper for clearing the virtio net header
to avoid the code duplication. Macro is used as it shows slightly
better performance.

Signed-off-by: Tiwei Bie <tiwei.bie@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
drivers/net/virtio/virtio_rxtx.c