]> git.ipfire.org Git - thirdparty/qemu.git/commit
eth: Extend vlan stripping functions
authorDmitry Fleytman <dmitry@daynix.com>
Thu, 16 Feb 2017 12:29:32 +0000 (14:29 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 16 Mar 2017 17:10:41 +0000 (12:10 -0500)
commitbddf2232fc3fae26ee070280aa19595f8a437b6e
tree76ce701fed97683e4dc46895094c8972c0d03583
parentfc8e94c3e5e74437c4e73a5582f17cfd4cae5ccf
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>
(cherry picked from commit 566342c3125ac2e73abd36c650222318164517ed)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
include/net/eth.h
net/eth.c