mbuf: add FCoE packet type

Add support of FCoE packet type.

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
This commit is contained in:
Jerin Jacob 2018-08-26 18:24:54 +05:30 committed by Thomas Monjalon
parent 73aa5c1332
commit 07e70104e0
2 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,7 @@ const char *rte_get_ptype_l2_name(uint32_t ptype)
case RTE_PTYPE_L2_ETHER_VLAN: return "L2_ETHER_VLAN";
case RTE_PTYPE_L2_ETHER_QINQ: return "L2_ETHER_QINQ";
case RTE_PTYPE_L2_ETHER_PPPOE: return "L2_ETHER_PPPOE";
case RTE_PTYPE_L2_ETHER_FCOE: return "L2_ETHER_FCOE";
default: return "L2_UNKNOWN";
}
}

View File

@ -130,6 +130,13 @@ extern "C" {
* <'ether type'=[0x8863|0x8864]>
*/
#define RTE_PTYPE_L2_ETHER_PPPOE 0x00000008
/**
* FCoE packet type.
*
* Packet format:
* <'ether type'=[0x8906]>
*/
#define RTE_PTYPE_L2_ETHER_FCOE 0x00000009
/**
* Mask of layer 2 packet types.
* It is used for outer packet for tunneling cases.