[qca-nss-sfe] Prefetch of shinfo is required for non fast xmit path.
skb shared info's prefetching is required only for non fast xmit path.
Change-Id: Ifebfbd346c9cdeb5bbe68d5969337795c1a18ab3
Signed-off-by: Sourav Poddar <quic_souravp@quicinc.com>
diff --git a/sfe_ipv4_tcp.c b/sfe_ipv4_tcp.c
index 8ed26fd..f2cebe7 100644
--- a/sfe_ipv4_tcp.c
+++ b/sfe_ipv4_tcp.c
@@ -730,12 +730,6 @@
this_cpu_inc(si->stats_pcpu->packets_forwarded64);
/*
- * We're going to check for GSO flags when we transmit the packet so
- * start fetching the necessary cache line now.
- */
- prefetch(skb_shinfo(skb));
-
- /*
* We do per packet condition check before we could fast xmit the
* packet.
*/
@@ -752,6 +746,12 @@
}
/*
+ * We're going to check for GSO flags when we transmit the packet so
+ * start fetching the necessary cache line now.
+ */
+ prefetch(skb_shinfo(skb));
+
+ /*
* Mark that this packet has been fast forwarded.
*/
skb->fast_forwarded = 1;