[v1,2/3] linux-gen: ptkio: loop: inline odp_packet_has_ipsec

Message ID 1517947216-12970-3-git-send-email-odpbot@yandex.ru
State New
Headers show
Series
  • [v1,1/3] linux-gen: use packet pointer in _odp_ipsec_try_inline
Related show

Commit Message

Github ODP bot Feb. 6, 2018, 8 p.m.
From: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>


Signed-off-by: Dmitry Eremin-Solenikov <dmitry.ereminsolenikov@linaro.org>

---
/** Email created from pull request 456 (lumag:ipsec-fix)
 ** https://github.com/Linaro/odp/pull/456
 ** Patch: https://github.com/Linaro/odp/pull/456.patch
 ** Base sha: 257b08b35ceea41bad5a7f1c626496cf111e657a
 ** Merge commit sha: 6f522c3fa758a8b611b2c0f92ace175b16a2517c
 **/
 platform/linux-generic/pktio/loop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c
index 79c21ee7a..1533a1b3c 100644
--- a/platform/linux-generic/pktio/loop.c
+++ b/platform/linux-generic/pktio/loop.c
@@ -155,7 +155,7 @@  static int loopback_recv(pktio_entry_t *pktio_entry, int index ODP_UNUSED,
 
 		/* Try IPsec inline processing */
 		if (pktio_entry->s.config.inbound_ipsec &&
-		    odp_packet_has_ipsec(pkt))
+		    pkt_hdr->p.input_flags.ipsec)
 			_odp_ipsec_try_inline(&pkt);
 
 		pktio_entry->s.stats.in_octets += pkt_len;