igb: respect VMVIR and VMOLR for VLAN
authorSriram Yagnaraman <sriram.yagnaraman@est.tech>
Fri, 24 Mar 2023 15:35:01 +0000 (16:35 +0100)
committerJason Wang <jasowang@redhat.com>
Tue, 28 Mar 2023 05:10:55 +0000 (13:10 +0800)
commitfba7c3b788dfcb99a3f9253f7d99cc0d217d6d3c
tree0456cc415e215f401c907f460c81db7b8169d885
parent7581baed88a90f7e3d1e78251fd0867573ecf182
igb: respect VMVIR and VMOLR for VLAN

Add support for stripping/inserting VLAN for VFs.

Had to move CSUM calculation back into the for loop, since packet data
is pulled inside the loop based on strip VLAN decision for every VF.

net_rx_pkt_fix_l4_csum should be extended to accept a buffer instead for
igb. Work for a future patch.

Signed-off-by: Sriram Yagnaraman <sriram.yagnaraman@est.tech>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/igb_core.c