[v7,0/2] fix parsing of VLAN metadata

Message ID PA4PR83MB05261D63539878BF685FA37B97512@PA4PR83MB0526.EURPRD83.prod.outlook.com (mailing list archive)
Headers
Series fix parsing of VLAN metadata |

Message

Alan Elder Feb. 19, 2024, 9:31 a.m. UTC
  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