Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure outer VLAN MTU to 1504 for e1000e device on qemu-8.1 #3883

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

yanglei-rh
Copy link
Contributor

Since there is commit fixed the packet size check and made it more strict about the packet size,based on this commit QEMU handled the ethernet FCS packets which is 4-byte long, so the maximum size should be subtracted 4.This surfaced a problem in the test case that the guest sends a packet larger than 1522 bytes without setting the LPE flag.A QinQ packet has a 22-byte header, the default MTU in VLAN is 1500, and an ethernet FCS is 4-byte long as I described earlier so the maximum packet size will be 22 + 1500 + 4 = 1526, which is 4-byte larger than 1522 bytes.So the fix is make the outer VLAN MTU greater to let the driver set the LPE flag.

ID: 1556
Signed-off-by: Lei Yang [email protected]

@yanglei-rh yanglei-rh force-pushed the KVMAUTOMA-1556 branch 2 times, most recently from a1ecd6d to db1e801 Compare November 21, 2023 10:23
@yanglei-rh
Copy link
Contributor Author

Test Pass:
(1/1) Host_RHEL.m9.u4.ovmf.qcow2.virtio_scsi.up.e1000e.Guest.RHEL.9.4.0.x86_64.io-github-autotest-qemu.bridge_qinq.q35: PASS (575.71 s)
(1/1) Host_RHEL.m9.u4.ovmf.qcow2.virtio_scsi.up.virtio_net.Guest.RHEL.9.4.0.x86_64.io-github-autotest-qemu.bridge_qinq.q35: PASS (519.16 s)

@yanglei-rh
Copy link
Contributor Author

Hello @PaulYuuu Could you please help me review this patch? Thanks in advance.

qemu/tests/bridge_qinq.py Outdated Show resolved Hide resolved
Since there is commit fixed the packet size check and made it more
strict about the packet size,based on this commit QEMU handled the
ethernet FCS packets which is 4-byte long, so the maximum size should
be subtracted 4.This surfaced a problem in the test case that the guest
sends a packet larger than 1522 bytes without setting the LPE flag.A
QinQ packet has a 22-byte header, the default MTU in VLAN is 1500, and
an ethernet FCS is 4-byte long as I described earlier so the maximum
packet size will be 22 + 1500 + 4 = 1526, which is 4-byte larger than
1522 bytes.So the fix is make the outer VLAN MTU greater to let the
driver set the LPE flag.

Signed-off-by: Lei Yang <[email protected]>
@yanglei-rh
Copy link
Contributor Author

Test Pass:
(1/1) Host_RHEL.m9.u4.ovmf.qcow2.virtio_scsi.up.e1000e.Guest.RHEL.9.4.0.x86_64.io-github-autotest-qemu.bridge_qinq.q35: PASS (544.29 s)

@PaulYuuu
Copy link
Contributor

This only affects e1000e device, I will merge it since x86 test is passed.

@PaulYuuu PaulYuuu merged commit 3b7cf22 into autotest:master Nov 30, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants