From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 9094BA0524; Thu, 2 Jul 2020 10:11:51 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 038911D678; Thu, 2 Jul 2020 10:11:51 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20059.outbound.protection.outlook.com [40.107.2.59]) by dpdk.org (Postfix) with ESMTP id ED0491D675 for ; Thu, 2 Jul 2020 10:11:49 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=im2FUKEmfarbDH92gGZGxsSgW3uDPFfBAI5G9MHeAIqQz/mKH+jmna4cbrw2KCnAE7Abd894CAFYre6EyjSgdy5qXHMVptdHFUhW3vOvD5WxLWZc8kcyd2vXwGJxQLsexnPlVv5JXfewaDfPKW3yxETgfFMaIC5GJbq5ARUW0FshbDOXs4BpAMWIp7EYpWViC6L/O0w/Rn/ONlJT22Tc+q1m1WBSQX8Ly9qOLGbcxWsPIQY/6SeNBRJyuvKguue8jz5ftKQCuOOjLcdNc8hPvl5dXoaEBZeMQpl/0hcU4MP7f46R2TMHLYN5qbwsGaaPfvv/jewUhoilQ7NOKpilHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rUUlrT6wOLGgIQDyBJvHLoq0cBpX/cYPEWGyU6Jdgqs=; b=jUeTaGdncirx+5ZsNfQsQ92U1HUtfqQu7KeDTt+Pp5VvFim+g0aEz6ijhNPyuq98y8S4yWKw7JpiKaaDgla7afGr5uysy921Sq5vXwq70+KYE6yq5Wn8y+LLucacCNFTk5aBlRt/djdRn4rEataWXzmXOIEwpd9SLUwtzazN4IrzeBbfaSR4p/es4VreFqyXbWv6fcWapZkqBvwUk69HzCLHvhrrfK4TDtXH8TFEI4/2My6SsasZGZyJf1XNB5iZNlduOBqH6xnz6NO6q046sMsXge5/lxXzpH+afjXcC8Qz84mKBgAqs1rrk3rm5WBEivj+fjw5G1mkyncjEM919Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mellanox.com; dmarc=pass action=none header.from=mellanox.com; dkim=pass header.d=mellanox.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rUUlrT6wOLGgIQDyBJvHLoq0cBpX/cYPEWGyU6Jdgqs=; b=M6y356kZxUNTIoKigKQONK3HxJopgaA+uO1xF/fX7eHtlFDxHmabZaidr2NAVFS/VlDGhF6+JHa92QsJPNZfvlfLSwvkmh/pjs/M6I1SJWK0kHELgql1dTMo0+SLxQXA769g5oROY6M37DnDF9Nl81HLQiNqZ9NsbIMCWobfDJg= Received: from AM0PR05MB6610.eurprd05.prod.outlook.com (2603:10a6:208:12f::18) by AM4PR0501MB2769.eurprd05.prod.outlook.com (2603:10a6:200:67::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.22; Thu, 2 Jul 2020 08:11:48 +0000 Received: from AM0PR05MB6610.eurprd05.prod.outlook.com ([fe80::103:d46f:87df:6525]) by AM0PR05MB6610.eurprd05.prod.outlook.com ([fe80::103:d46f:87df:6525%7]) with mapi id 15.20.3153.021; Thu, 2 Jul 2020 08:11:48 +0000 From: Wisam Monther To: Lijun Ou , "wenzhuo.lu@intel.com" , "beilei.xing@intel.com" , "bernard.iremonger@intel.com" , "ferruh.yigit@intel.com" CC: "dev@dpdk.org" , "linuxarm@huawei.com" Thread-Topic: [dpdk-dev] [PATCH v2] app/testpmd: fix missing set for current forward engine Thread-Index: AQHWT3uSKvj8/dPMfkeWrlafYOIbyajz8dPQ Date: Thu, 2 Jul 2020 08:11:48 +0000 Message-ID: References: <1593589406-12868-1-git-send-email-oulijun@huawei.com> In-Reply-To: <1593589406-12868-1-git-send-email-oulijun@huawei.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=mellanox.com; x-originating-ip: [84.242.49.134] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: 02f7d80c-9b63-4f91-d4ba-08d81e5f91ac x-ms-traffictypediagnostic: AM4PR0501MB2769: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:1824; x-forefront-prvs: 0452022BE1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: /0Uw46OcnrahjZHuN2SyqYBiYahtC8hnDrsx5cpR4w5RCz0VDx1T3+sVCjMGUeRFBBXD/pnrtEn15YhucUjxoYtmoxddMM9gh5Qp7cW/flW3m31d2iVhaqlhpfnkrrcuDmsOPCDk9xQgtoEpvb1dSthiMnQjrug8WwJ7I7b372ZLR0eUz/9A8zXZ6T6I5QxCf52SpxsfOijFuICWZf8zwhTukxfP/muQ0Ceo2UYhqqN0g0MYGRPJd4H7QgmW5LYh/vIalI7jcl4MlgywpS+pDI861OUJWa8GAn++KQ0mkEfi/mFc+TKmWaCox5sOu5Ua9RQw3yEd/E04udCM2ZZgNZwPhTN9wLtlda+GTstKUrb4UgB9O0D/zhBPD1zf7Rov x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR05MB6610.eurprd05.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(136003)(396003)(376002)(39860400002)(346002)(366004)(9686003)(55016002)(4326008)(52536014)(8936002)(66946007)(64756008)(66556008)(66476007)(76116006)(7696005)(110136005)(6506007)(54906003)(316002)(66446008)(478600001)(86362001)(26005)(5660300002)(33656002)(2906002)(71200400001)(83380400001)(186003)(21314003); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: PQvo1KDsRH66vgJIPVJVAYZG+l/zhbCre+4xMHc2R8nyrmg4rxXk9UG5aContEN8P+/K581ER76VG2YltKXlGA45YhEFZMz2zYYFz7dCVlrKywjELQ1TKdMH3sAKLso6Crokc+LnKVI13hwMJ+pnFOXmzoCO0z5+OPxfar5Jm/C5nRdLM2tb4ic2fBdxjc+FfsrEhcI8pmvuxlvsdVu82rXSaKkbI4MSxzzGUAWVaxt4vYVcsMDmrA2G08YCgCfsPfh2854pFRI/a1SZGfvNKFtBpaYffrb4X0vFAyFRUsu8EDvOn7+PUtnhFsazBzPJxXr1CjlYgbyflgwyfua0MNXP6wQDY8LbRo98RREd8Z4xAVhL4g+pcb/R+tmwE4FlQ7zbQXGHP70qqm8mGEv0BWBzf/sXzLYOmtp9nbnHvDLQa/n0KSvlyQy/vX83mpBWeuaoGwTZ57spp6Qr/Fl2ncGcIJNYaETCbjnehI67iYk= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM0PR05MB6610.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 02f7d80c-9b63-4f91-d4ba-08d81e5f91ac X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2020 08:11:48.6295 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 5Ng2/ZzV98SkZtY5N7Zclg8jXK5p8HhV3ahB8cJWjpjAz/8Uy69Rj7Rxz73G3MYfC/nVbvfPTTKK4vWizYsjHg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0501MB2769 Subject: Re: [dpdk-dev] [PATCH v2] app/testpmd: fix missing set for current forward engine X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hi, >-----Original Message----- >From: dev On Behalf Of Lijun Ou >Sent: Wednesday, July 1, 2020 10:43 AM >To: wenzhuo.lu@intel.com; beilei.xing@intel.com; >bernard.iremonger@intel.com; ferruh.yigit@intel.com >Cc: dev@dpdk.org; linuxarm@huawei.com >Subject: [dpdk-dev] [PATCH v2] app/testpmd: fix missing set for current >forward engine > >When set the forwarding mode of the pkt, it needs to update the fwd_eng th= at >it is the member of cur_fwd_config. Otherwise, an error will occur when >executing the set command and show confg fwd. >the flows as follows: > 1. ./tespmd -w xxx -l xx -n 4 -- i > 2. set fwd mac > testpmd> set fwd mac > Set mac packet forwarding mode > > 3. show config fwd > testpmd> show config fwd > io packet forwarding - ports=3D1 - cores=3D1 - streams=3D8 -... > Logical Core 1 (socket 0) forwards packets on 8 streams: > >When run the 1 ~ 3 step, it should show the packet forwarding is mac. > >Fixes: af75078fece3 ("first public release") >Cc: wenzhuo.lu@intel.com >Cc: beilei.xing@intel.com >Cc: bernard.iremonger@intel.com >Cc: stable@dpdk.org > >Signed-off-by: Lijun Ou Acked-by: Wisam Jaddo