PiotrX Kleski 8b4221ee8f ipsec: fixed chaining ops after add footer and icv
In case there is no free space in first buffer for ICV and footer,
additional buffer will be added, but esp_encrypt will stay in single
buffer mode.
The issue happens for the following payload sizes:
 - TCP packets with payload 1992
 - ICMP packets with payload 2004

This fix moves the single/chained buffer ops selection to after
esp_add_footer_and_icv call.

Type: fix

Signed-off-by: Fan Zhang <roy.fan.zhang@intel.com>
Signed-off-by: PiotrX Kleski <piotrx.kleski@intel.com>
Change-Id: Ic5ceba418f738933f96edb3e489ca2d149033b79
(cherry picked from commit fdca4dd1a1a817e65bf44e435261d893fc0c51d6)
2020-05-25 16:01:25 +00:00
..
2020-05-04 14:03:21 +00:00
2020-05-05 20:50:10 +00:00
2019-06-24 16:03:09 +00:00
2019-11-05 21:08:59 +00:00
2020-04-28 11:54:00 +00:00
2019-11-05 21:08:59 +00:00
2020-04-28 20:55:20 +00:00
2020-02-05 15:34:49 +00:00
2019-12-03 14:53:47 +00:00
2019-12-03 14:53:47 +00:00
2020-03-27 12:46:42 +00:00
2020-05-05 11:34:40 +00:00
2020-03-09 13:46:29 +00:00
2020-04-28 11:54:00 +00:00
2020-04-30 20:24:45 +00:00
2020-03-27 12:46:42 +00:00
2020-02-26 08:51:03 +00:00
2020-03-05 15:26:51 +00:00
2020-04-07 08:21:43 +00:00
2020-03-05 15:26:51 +00:00
2020-03-05 15:26:51 +00:00
2019-12-11 15:23:55 +00:00
2020-05-05 20:50:10 +00:00
2019-06-18 13:31:39 +00:00
2019-03-21 20:33:30 +00:00
2019-03-29 16:02:27 +00:00
2020-03-12 12:28:47 +00:00
2019-07-31 16:17:36 +00:00