Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix over MTU packet crash

2019-09-27 Thread Akhil Goyal
> > > > When sending an encrypted packet which size after encapsulation exceeds > > MTU, ipsec-secgw application tries to fragment it. If --reassemble > > option has not been set it results with a segmantation fault, because > > fragmentation buckets have not been initialized. > > > > Fix crashing

Re: [dpdk-dev] [PATCH] examples/ipsec-secgw: fix over MTU packet crash

2019-09-24 Thread Ananyev, Konstantin
> -Original Message- > From: Smoczynski, MarcinX > Sent: Tuesday, September 24, 2019 11:55 AM > To: Ananyev, Konstantin ; akhil.go...@nxp.com > Cc: dev@dpdk.org; Smoczynski, MarcinX ; > sta...@dpdk.org > Subject: [PATCH] examples/ipsec-secgw: fix over MTU packet crash > > When sending

[dpdk-dev] [PATCH] examples/ipsec-secgw: fix over MTU packet crash

2019-09-24 Thread Marcin Smoczynski
When sending an encrypted packet which size after encapsulation exceeds MTU, ipsec-secgw application tries to fragment it. If --reassemble option has not been set it results with a segmantation fault, because fragmentation buckets have not been initialized. Fix crashing by adding extra check: if -