From: Jingjing Wu Date: Tue, 3 May 2016 05:51:11 +0000 (+0800) Subject: mbuf: add NSH packet type X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=87ce17abbec12921da87eaec87a33d1a59291954;p=dpdk.git mbuf: add NSH packet type Signed-off-by: Jingjing Wu Acked-by: Olivier Matz Acked-by: Zhe Tao --- diff --git a/app/test-pmd/rxonly.c b/app/test-pmd/rxonly.c index c69b34497e..fbf287dcda 100644 --- a/app/test-pmd/rxonly.c +++ b/app/test-pmd/rxonly.c @@ -179,6 +179,9 @@ pkt_burst_receive(struct fwd_stream *fs) case RTE_PTYPE_L2_ETHER_LLDP: printf(" - (outer) L2 type: ETHER_LLDP"); break; + case RTE_PTYPE_L2_ETHER_NSH: + printf(" - (outer) L2 type: ETHER_NSH"); + break; default: printf(" - (outer) L2 type: Unknown"); break; diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h index 8798c41f48..15e3a10c93 100644 --- a/lib/librte_mbuf/rte_mbuf.h +++ b/lib/librte_mbuf/rte_mbuf.h @@ -307,6 +307,13 @@ extern "C" { * <'ether type'=0x88CC> */ #define RTE_PTYPE_L2_ETHER_LLDP 0x00000004 +/** + * NSH (Network Service Header) packet type. + * + * Packet format: + * <'ether type'=0x894F> + */ +#define RTE_PTYPE_L2_ETHER_NSH 0x00000005 /** * Mask of layer 2 packet types. * It is used for outer packet for tunneling cases.