Bug 1292 - mbuf: L2 packet type names could be improved
Summary: mbuf: L2 packet type names could be improved
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: core (show other bugs)
Version: 23.11
Hardware: All All
: Normal enhancement
Target Milestone: ---
Assignee: dev
URL:
Depends on:
Blocks:
 
Reported: 2023-09-21 10:43 CEST by Morten Brørup
Modified: 2023-09-21 10:43 CEST (History)
0 users



Attachments

Description Morten Brørup 2023-09-21 10:43:28 CEST
In rte_mbuf_ptype.h, having both L2 and ETHER in the Ethernet packet type names seems redundant.

RTE_PTYPE_L2_ETHER(_TIMESYNC|_ARP|_LLDP, etc.) could simply be RTE_PTYPE_L2(_TIMESYNC|_ARP|_LLDP, etc.).

Furthermore, RTE_PTYPE_L2_ETHER defines IP (both v4 and v6) packets, so IP should be part of the name, e.g. RTE_PTYPE_L2_ETHER_IP.

Note You need to log in before you can comment on or make changes to this bug.