From patchwork Thu May 23 15:17:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christian Hopps X-Patchwork-Id: 13671929 Received: from smtp.chopps.org (smtp.chopps.org [54.88.81.56]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A5413AD55 for ; Thu, 23 May 2024 15:17:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=54.88.81.56 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716477463; cv=none; b=JkwqjqpU4uZIx2TVvY3wDayHtLHegaI7ThOdLh71VcO6L5otybhaCD1XwSlUZyppS/9sJpAaX1n1yCrsFSr8wdmeLLbtW0TydGzf4DThT1PLAhjkpXIXF0kTNe0SMyU2FUw3WRUlioas/y9bewldzx+82OAdJftrACFpea1Mz8o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716477463; c=relaxed/simple; bh=Kbms4sNm/PXZkDyU8jiumH28Gf4voGihRk+H/zXU8A8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=pqDnGGIZyPlN/g0n747KcESwJjAud3nyr0fuPxPc3mhqLOoHS8msPfPH87uBUzqAYFKi86M3vB7cP4fyBQhKRaarbQx6jMzXZcRIQHUfJwRErUt+o9uPzjD4OsBx6LuRLzP4JW4aENsIVUXEPt03xs0nZCaU9O0I3/bF7hBss6g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=labn.net; spf=fail smtp.mailfrom=chopps.org; arc=none smtp.client-ip=54.88.81.56 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=labn.net Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=chopps.org Received: from coffee.chopps.org (syn-172-222-091-149.res.spectrum.com [172.222.91.149]) by smtp.chopps.org (Postfix) with ESMTP id 4C2647D128 for ; Thu, 23 May 2024 15:17:35 +0000 (UTC) Received: by coffee.chopps.org (Postfix, from userid 1004) id 3675D180EAD; Thu, 23 May 2024 11:17:33 -0400 (EDT) X-Spam-Level: Received: from labnh.int.chopps.org (labnh.int.chopps.org [192.168.2.80]) by coffee.chopps.org (Postfix) with ESMTP id 27FDD180EA9; Thu, 23 May 2024 11:17:32 -0400 (EDT) Received: by labnh.int.chopps.org (Postfix, from userid 1000) id 1A11FC035DA30; Thu, 23 May 2024 11:17:32 -0400 (EDT) From: Christian Hopps To: netdev@vger.kernel.org Cc: David Ahern , devel@linux-ipsec.org, Christian Hopps , Christian Hopps Subject: [PATCH iproute-next v1 0/2] Add support for xfrm state direction attribute Date: Thu, 23 May 2024 11:17:05 -0400 Message-ID: <20240523151707.972161-1-chopps@labn.net> X-Mailer: git-send-email 2.45.1 Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Summary of Changes: This patchset adds support for setting the new xfrm state direction attribute. The change also takes into account the existing "offload" direction atttribute. If the user is already setting the direction when enabling offload then that direciton value is used, and the general "dir in|out" need not additionally be specified. This work was started based on an earlier patch from "Antony Antony" Patchset Changes: 4 files changed, 57 insertions(+), 16 deletions(-) include/uapi/linux/xfrm.h | 6 ++++++ ip/ipxfrm.c | 12 ++++++++++++ ip/xfrm_state.c | 49 +++++++++++++++++++++++++++++++---------------- man/man8/ip-xfrm.8 | 6 ++++++