[PATCH v7 0/2] fix parsing of VLAN metadata
Alan Elder
alan.elder at microsoft.com
Mon Feb 19 10:31:08 CET 2024
The previous netvsc code incorrectly parsed the VLAN ID and priority.
If the 16-bits of VLAN ID and priority/CFI on the wire was
0123456789ABCDEF the code parsed it as 456789ABCDEF3012. This patch
fixes netvsc parsing code and adds common macros for extracting and
setting parts of the VLAN tag.
Alan Elder (2):
lib/net: fix parsing of VLAN metadata
net/netvsc: fix parsing of VLAN metadata
---
v7:
* Split patches for lib and driver
v6:
* Line length can be 100 - un-split lines
v5:
* Move the VLAN parsing macros to rte_ether.h
v4:
* Make consistent with FreeBSD code
---
.mailmap | 1 +
drivers/net/netvsc/hn_rxtx.c | 8 ++++++--
lib/net/rte_ether.h | 14 ++++++++++++++
3 files changed, 21 insertions(+), 2 deletions(-)
--
2.25.1
More information about the dev
mailing list