[dpdk-dev] [PATCH v2] examples/l3fwd: fix using packet type blindly

2016-03-09 Thread Tan, Jianfeng
Hi Konstantin, On 3/8/2016 2:51 AM, Ananyev, Konstantin wrote: > Hi Jianfeng, > >> +/* Requirements: >> + * 1. IP packets without extension; >> + * 2. L4 payload should be either TCP or UDP. >> + */ >> +int >> +em_check_ptype(int portid) >> +{ >> +int i, ret; >> +int ptype_l3_ipv4_ext =

[dpdk-dev] [PATCH v2] examples/l3fwd: fix using packet type blindly

2016-03-07 Thread Ananyev, Konstantin
Hi Jianfeng, > > +/* Requirements: > + * 1. IP packets without extension; > + * 2. L4 payload should be either TCP or UDP. > + */ > +int > +em_check_ptype(int portid) > +{ > + int i, ret; > + int ptype_l3_ipv4_ext = 0; > + int ptype_l3_ipv6_ext = 0; > + int ptype_l4_tcp = 0; > +

[dpdk-dev] [PATCH v2] examples/l3fwd: fix using packet type blindly

2016-03-04 Thread Jianfeng Tan
This patch will work on below patch series. - [PATCH v6 00/11] Add API to get packet type info As a example to use ptype info, l3fwd needs firstly to use rte_eth_dev_get_ptype_info() API to check if device and/or its PMD driver will parse and fill the needed packet type; if not, use the newly