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 8C0DCA32A1 for ; Thu, 24 Oct 2019 10:31:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 86AAF1E86A; Thu, 24 Oct 2019 10:30:05 +0200 (CEST) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10057.outbound.protection.outlook.com [40.107.1.57]) by dpdk.org (Postfix) with ESMTP id D2BB21E87C for ; Thu, 24 Oct 2019 10:29:52 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KTdlugBOEflq436E9zgq+p+TvUT5izLMM24Mizx7uhaSP8HRNQE6UxRjLoZcdxDHEqhldNQoh40xInge3MTJdOOmOH68yTR0LRazsziIKSHqRLQkvAD2AQ74QlIQSMFFhT0Icx/mMBz0TPP6URfTgU4GDdCeAFheAna+m73ZXv0EHm8bIgAmlECbEVFz/i6BPmWnXr2icC6ps23ihV2hLFDDmqOOG6f5R4f2v+5rPgL4PM15P5GGx1mENDeIF35SB9WVIUBA+cKa+++CspFqsRCU+uSnQBgiXdJLo0mHjZRAKA2rgSlhdNdv4HNOxF3uhJNkLBEhqS89RKtAagEC7g== 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=2O+oIC5waPP4uBYV11hZmFG1zr5erc3/7pVMhkZGWos=; b=XXbOPkky/gv9nyIDV9QdmlL8iqLfXESpe6zBdCxh8iJ07S+seWZaxX7VZedpsiLLTZk1ibEzCzXet0ekrum43eZQN8CUjtLsOqK3tkLvFZYpFbNqmEqcyJ2gRVKjVi0RgzOjolDGHm01AkuqRzoGPkNfsGxI3QWSh/a/I2xAAIGbupEgBvr4pSEalhIMHUDGMtBEVJYRHuo0tmxswev0ZYW7xfuf2R+BXRBQWnRYAZlLmjqBO8JrjYXcQQ3ZQo8HIeei+PlM7F3QL1BCRmrCW+KfLJp8lAxi/jGPgRKfCl8BXkYrdatHAmjT9se7QhLwQ2mL6ynHgJW5CSXP9AdN+Q== 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=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2O+oIC5waPP4uBYV11hZmFG1zr5erc3/7pVMhkZGWos=; b=en01fnl8i00TrNh63CKcTRAV7OFinEddl/s44uMoTCe050GOhTTT6nqPpeJYHWyi45qonIEPpL/8cQ3U9BHxNWuLTWmS9N76aCp6kWKBGkhOOattVz63L6Y0rINoHbEw3XEacQ3oHN44ilH9N+WmSRF3NaTFid3DXfn2zHNDhrw= Received: from AM4PR05MB3425.eurprd05.prod.outlook.com (10.171.190.15) by AM4PR05MB3363.eurprd05.prod.outlook.com (10.170.126.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.20; Thu, 24 Oct 2019 08:29:51 +0000 Received: from AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::70a7:a312:cbc6:d178]) by AM4PR05MB3425.eurprd05.prod.outlook.com ([fe80::70a7:a312:cbc6:d178%7]) with mapi id 15.20.2387.021; Thu, 24 Oct 2019 08:29:51 +0000 From: Ori Kam To: Andrew Rybchenko , Thomas Monjalon , Ferruh Yigit CC: "dev@dpdk.org" , "jingjing.wu@intel.com" , "stephen@networkplumber.org" Thread-Topic: [dpdk-dev] [PATCH v5 02/15] ethdev: add support for hairpin queue Thread-Index: AQHViacPyF+i5NmgFUGK736twBuimKdpbUMAgAAHb4A= Date: Thu, 24 Oct 2019 08:29:51 +0000 Message-ID: References: <1569479349-36962-1-git-send-email-orika@mellanox.com> <1571837852-45975-1-git-send-email-orika@mellanox.com> <1571837852-45975-3-git-send-email-orika@mellanox.com> <473249c0-4f96-7f64-83a4-be612ede1dd3@solarflare.com> In-Reply-To: <473249c0-4f96-7f64-83a4-be612ede1dd3@solarflare.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=orika@mellanox.com; x-originating-ip: [193.47.165.251] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: ab19486f-a994-4102-072a-08d7585c5700 x-ms-traffictypediagnostic: AM4PR05MB3363: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2399; x-forefront-prvs: 0200DDA8BE x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(346002)(376002)(136003)(366004)(39860400002)(199004)(189003)(13464003)(25786009)(64756008)(52536014)(53546011)(33656002)(476003)(11346002)(6506007)(186003)(6246003)(110136005)(316002)(305945005)(7736002)(74316002)(5660300002)(4326008)(86362001)(54906003)(71200400001)(66066001)(14444005)(8936002)(256004)(478600001)(99286004)(6436002)(71190400001)(76176011)(2906002)(446003)(66476007)(26005)(3846002)(229853002)(6116002)(14454004)(8676002)(486006)(55016002)(76116006)(9686003)(66946007)(66556008)(102836004)(81166006)(81156014)(7696005)(66446008); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3363; H:AM4PR05MB3425.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: PQpGqjtGxLXqOcq1St+NWM7pDp+itbGg7LXF8eRaeKq2fm4vHPcy4GJCE5bRXvCjrROT01UycuhJJ5TBY+09VydPfiYjMAmNWduJZOOT+6GahCe0YhYvvugMVksyLWRfTYmYzEh6L6FBdSvnfJdF80NJnRiJA6E+xybSNqDis3pb1IePXqOJj7xwyGa0sqoPGYPfMx5zro40PgJd8zjLeR0v+g+uXy1D4B44ueZD/xjfXvWsGusv78GPCbeaBKCHLp8YjUUGc9tzApSlIlRe2ZpSf1QFQi41gZFPxWqWqOpLPQ5l2rQ3lfYVLQjDki3BiMU5nWkX5l+55W0vs1GTLR93nLCY/l9yoz7DrWgnca937YrwPQG4dhybO7LgoFexQqWQWWpWkCzzfBgIjI5OYP5vCKySsjdkSZ6+/Yy0KBE5KE+M9dNtL8+Q67VdALDI x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: ab19486f-a994-4102-072a-08d7585c5700 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Oct 2019 08:29:51.5410 (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: g5wE7bbFB83CP6RZoSWXJaSggUWFjFEcJlQjjWEaSGS0l97nLE4MKuDC1LfxAW44V80prJPVwnkfGlvYg1CBHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3363 Subject: Re: [dpdk-dev] [PATCH v5 02/15] ethdev: add support for hairpin queue 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" SGkgQW5kcmV3LA0KDQpXaGVuIHdyaXRpbmcgdG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