[dpdk-dev] [PATCH 2/3] net/ixgbe: add MACsec offload support

2016-12-03 Thread Tiwei Bie
MACsec (or LinkSec, 802.1AE) is a MAC level encryption/authentication scheme defined in IEEE 802.1AE that uses symmetric cryptography. This commit adds the MACsec offload support for ixgbe. Signed-off-by: Tiwei Bie <tiwei@intel.com> --- drivers/net/ixgbe/ixgbe_ethdev.c

[dpdk-dev] [PATCH 3/3] app/testpmd: add ixgbe MACsec offload support

2016-12-03 Thread Tiwei Bie
add test for set macsec offload add test for set macsec sc add test for set macsec sa Signed-off-by: Tiwei Bie <tiwei@intel.com> --- app/test-pmd/cmdline.c | 389 + app/test-pmd/macfwd.c | 2 + app/test-pmd/macswap.c | 2 + app/te

[dpdk-dev] [PATCH 0/3] Add MACsec offload support for ixgbe

2016-12-03 Thread Tiwei Bie
This patch set adds the MACsec offload support for ixgbe. The testpmd is also updated to support MACsec cmds. Tiwei Bie (3): lib: add MACsec offload flags net/ixgbe: add MACsec offload support app/testpmd: add ixgbe MACsec offload support app/test-pmd/cmdline.c | 389

[dpdk-dev] [PATCH] eal/bsd: reinitialize optind and optreset to 1

2015-10-14 Thread Tiwei Bie
g getopt() to parse its own unrelated argc/argv parameters. > We shouldn't mix up DPDK's parameters and application's parameters. And we should group them using '--'. Best, Tiwei Bie > -don provan > dprovan at bivio.net > > -----Original Message- > From: Tiwei Bie [mai

[dpdk-dev] [PATCH] eal/bsd: reinitialize optind and optreset to 1

2015-10-14 Thread Tiwei Bie
On Wed, Oct 14, 2015 at 10:31:28AM +0100, Bruce Richardson wrote: > On Wed, Oct 14, 2015 at 10:28:44AM +0800, Tiwei Bie wrote: > > On Tue, Oct 13, 2015 at 05:14:38PM +, Don Provan wrote: > > > Actually, this is a good opportunity to fix a bug that's been in this

[dpdk-dev] [PATCH] eal/bsd: reinitialize optind and optreset to 1

2015-10-14 Thread Tiwei Bie
On Wed, Oct 14, 2015 at 06:19:33PM +0800, Tiwei Bie wrote: > On Wed, Oct 14, 2015 at 10:31:28AM +0100, Bruce Richardson wrote: > > On Wed, Oct 14, 2015 at 10:28:44AM +0800, Tiwei Bie wrote: > > > On Tue, Oct 13, 2015 at 05:14:38PM +, Don Provan wrote: > > >

[dpdk-dev] [PATCH] eal/bsd: reinitialize optind and optreset to 1

2015-10-15 Thread Tiwei Bie
Hi Don! I'm truly sorry for my misunderstanding. :-( Thank you so much for your detailed comments! I will update my patch! Thanks again! Best wishes, Tiwei Bie On Wed, Oct 14, 2015 at 05:54:14PM +, Don Provan wrote: > > > On Wed, Oct 14, 2015 at 10:28:44AM +0800, Tiwei

[dpdk-dev] [PATCH] eal: don't reset getopt lib

2015-10-15 Thread Tiwei Bie
, initialize optind (and optreset on FreeBSD) to 1 before calling getopt_long(), then restore all values after. Suggested-by: Don Provan Suggested-by: Bruce Richardson Signed-off-by: Tiwei Bie --- lib/librte_eal/bsdapp/eal/eal.c | 59 +++-- lib/librte_eal/linuxapp/eal

[dpdk-dev] [PATCH] eal: don't reset getopt lib

2015-10-16 Thread Tiwei Bie
On Thu, Oct 15, 2015 at 04:22:53PM +, Don Provan wrote: > Looks perfect. Thanks! Thanks! It's my pleasure. :-) Best wishes, Tiwei Bie > -don > > -Original Message----- > From: Tiwei Bie [mailto:btw at mail.ustc.edu.cn] > Sent: Thursday, October 15, 2015 4:46 A

[dpdk-dev] [PATCH v2] eal: don't reset getopt lib

2015-10-19 Thread Tiwei Bie
, initialize optind (and optreset on FreeBSD) to 1 before calling getopt_long(), then restore all values after. Suggested-by: Don Provan Suggested-by: Bruce Richardson Signed-off-by: Tiwei Bie Reviewed-by: Don Provan Reviewed-by: Bruce Richardson --- v2: - constify some variables lib

[dpdk-dev] [PATCH] eal: don't reset getopt lib

2015-10-19 Thread Tiwei Bie
On Mon, Oct 19, 2015 at 11:36:41AM +0100, Bruce Richardson wrote: > On Thu, Oct 15, 2015 at 07:46:04PM +0800, Tiwei Bie wrote: > > Someone may need to call rte_eal_init() with a fake argc/argv array > > in the middle of using getopt() to parse its own unrelated argc/argv > >