eth: Extend vlan stripping functions
commit566342c3125ac2e73abd36c650222318164517ed
authorDmitry Fleytman <dmitry@daynix.com>
Thu, 16 Feb 2017 12:29:32 +0000 (16 14:29 +0200)
committerJason Wang <jasowang@redhat.com>
Mon, 6 Mar 2017 03:46:02 +0000 (6 11:46 +0800)
tree5dbe7cadb84e9f9e369d9bd318710625f383374c
parent290e6e113b65ae86cfa37f2ff5ca5eb57dbf824c
eth: Extend vlan stripping functions

Make VLAN stripping functions return number of bytes
copied to given Ethernet header buffer.

This information should be used to re-compose
packet IOV after VLAN stripping.

Cc: qemu-stable@nongnu.org
Signed-off-by: Dmitry Fleytman <dmitry@daynix.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
include/net/eth.h
net/eth.c