From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sergio Gonzalez Monroy Subject: Re: [PATCH v3 1/2] examples/ipsec-secgw: add configuration file support Date: Tue, 19 Jul 2016 09:19:43 +0100 Message-ID: References: <1468248213-13100-1-git-send-email-roy.fan.zhang@intel.com> <1468316684-220669-1-git-send-email-roy.fan.zhang@intel.com> <1468316684-220669-2-git-send-email-roy.fan.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Fan Zhang , dev@dpdk.org Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 4C7562B86 for ; Tue, 19 Jul 2016 10:19:45 +0200 (CEST) In-Reply-To: <1468316684-220669-2-git-send-email-roy.fan.zhang@intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 12/07/2016 10:44, Fan Zhang wrote: > This patch adds the configuration file support to ipsec_secgw > sample application. Instead of hard-coded rules, the users can > specify their own SP, SA, and routing rules in the configuration > file. An command line option "-f" is added to pass the > configuration file location to the application. > > Configuration item formats: > > SP rule format: > sp esp \ > > > SA rule format: > sa I think we should be able to set the key also on config file for both cipher and auth. Then we can check that the key size is the expected by the chosen cipher/auth algo. I think we should also create and set the xforms dynamically instead of static as they currently are (sa_add_rules function). Sergio > Routing rule format: > rt > > Signed-off-by: Fan Zhang > ---