From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pablo Neira Ayuso Subject: [PATCH net-next,RFC 12/13] netfilter: nft_flow_offload: remove secpath check Date: Thu, 14 Jun 2018 16:19:46 +0200 Message-ID: <20180614141947.3580-13-pablo@netfilter.org> References: <20180614141947.3580-1-pablo@netfilter.org> Cc: netdev@vger.kernel.org, steffen.klassert@secunet.com To: netfilter-devel@vger.kernel.org Return-path: Received: from mail.us.es ([193.147.175.20]:38418 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966532AbeFNOUe (ORCPT ); Thu, 14 Jun 2018 10:20:34 -0400 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 0B2A6E7BB5 for ; Thu, 14 Jun 2018 16:19:11 +0200 (CEST) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id EEFCFDA57F for ; Thu, 14 Jun 2018 16:19:10 +0200 (CEST) In-Reply-To: <20180614141947.3580-1-pablo@netfilter.org> Sender: netdev-owner@vger.kernel.org List-ID: It is safe to place a flow that is coming from IPSec into the flowtable. So decapsulated can benefit from the flowtable fastpath. Signed-off-by: Pablo Neira Ayuso Signed-off-by: Steffen Klassert --- net/netfilter/nft_flow_offload.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/netfilter/nft_flow_offload.c b/net/netfilter/nft_flow_offload.c index f2e95edfb4de..a7f529b79bdb 100644 --- a/net/netfilter/nft_flow_offload.c +++ b/net/netfilter/nft_flow_offload.c @@ -54,8 +54,6 @@ static bool nft_flow_offload_skip(struct sk_buff *skb) if (unlikely(opt->optlen)) return true; - if (skb_sec_path(skb)) - return true; return false; } -- 2.11.0