mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
igb: Strip the second VLAN tag for extended VLAN
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
f199b13bc1
commit
7e64a9cabb
6 changed files with 66 additions and 43 deletions
|
@ -223,18 +223,19 @@ void net_rx_pkt_attach_iovec(struct NetRxPkt *pkt,
|
|||
/**
|
||||
* attach scatter-gather data to rx packet
|
||||
*
|
||||
* @pkt: packet
|
||||
* @iov: received data scatter-gather list
|
||||
* @iovcnt number of elements in iov
|
||||
* @iovoff data start offset in the iov
|
||||
* @strip_vlan: should the module strip vlan from data
|
||||
* @vet: VLAN tag Ethernet type
|
||||
* @pkt: packet
|
||||
* @iov: received data scatter-gather list
|
||||
* @iovcnt: number of elements in iov
|
||||
* @iovoff: data start offset in the iov
|
||||
* @strip_vlan_index: index of Q tag if it is to be stripped. negative otherwise.
|
||||
* @vet: VLAN tag Ethernet type
|
||||
* @vet_ext: outer VLAN tag Ethernet type
|
||||
*
|
||||
*/
|
||||
void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt,
|
||||
const struct iovec *iov, int iovcnt,
|
||||
size_t iovoff, bool strip_vlan,
|
||||
uint16_t vet);
|
||||
const struct iovec *iov, int iovcnt,
|
||||
size_t iovoff, int strip_vlan_index,
|
||||
uint16_t vet, uint16_t vet_ext);
|
||||
|
||||
/**
|
||||
* attach data to rx packet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue