Re: [dpdk-dev] [PATCH] net: fix inner L2 length in software ptype parser

2017-10-05 Thread Thomas Monjalon
11/09/2017 16:57, Olivier Matz: > The inner L2 length returned by rte_net_get_ptype() is not > properly initialized. If the caller does not zero the header > lengths structure, the inner_l2 field will be undefined. > > Fix it by initializing inner_l2 to 0 when parsing a inner layer. > > Fixes: 2c

[dpdk-dev] [PATCH] net: fix inner L2 length in software ptype parser

2017-09-11 Thread Olivier Matz
The inner L2 length returned by rte_net_get_ptype() is not properly initialized. If the caller does not zero the header lengths structure, the inner_l2 field will be undefined. Fix it by initializing inner_l2 to 0 when parsing a inner layer. Fixes: 2c15c5377da2 ("net: support NVGRE in software pa