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 8D4CDA04B5; Mon, 26 Oct 2020 10:30:43 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id BCB252BB5; Mon, 26 Oct 2020 10:30:39 +0100 (CET) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by dpdk.org (Postfix) with ESMTP id 36460100C for ; Mon, 26 Oct 2020 10:30:37 +0100 (CET) Received: from hqmail.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, AES256-SHA) id ; Mon, 26 Oct 2020 02:30:40 -0700 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 26 Oct 2020 09:30:35 +0000 Received: from NAM11-DM6-obe.outbound.protection.outlook.com (104.47.57.172) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 26 Oct 2020 09:30:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bNp9OUV0c1dj6cQk8emJVOFhwwzJUJ9bG+5j8uGGrha7SReZDyVOQF1gQ5ecTQCpidA8yIG4JPpBd017Zw1fgvPwWiw6nuw7bkAi3JypiJftwVQP22nhTupXErZO5aGg7+pOkYefvLw9mZ+OXMmwFz/Ll4RIIQgWoXoUsgOQZXxNSAUuPcQLwXjOkuvCWKYKB2zQqvv/u0gV7UWE3iSCj+fU437FKRBQqMZbJKT2lOBenTayZ37y9gXGaRe6V8R4pBl9INUkwruwZedvKXVUhRoRS9WmLjTcjPg1Jd/ZuEKVhrLerQ21KYEgWvPov4zpb9W9hQh05TK10wRr+ttG8A== 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=M89D3emhGQ28QjeTDjOVQrA2g5J1MoZn4P+7myJISc8=; b=SBTELq36BAppSbDTNdcYpmZH363dRx/BhMxm5y7J42OTB9o6yGo2ffPzI7GkT8acvolg9q8YOuHFEquHZHa2Uh9u/yCx6eR7B7fp0LIdl3UQfEO/ZBpS+iAVfrYoJLYkmXb9W0/+3U10efD6usMV/q0FO/mCvA/tJ6OylKSiiYsfLUl+sKa3uF25deYX0h8tsGK2TFxPxgLuUMsDlVbBmxVdcALLwF18jIVba8lQO+lJ7tobqf4mtpxbSNQRLxOcNOlTLstrJ/bVPAYxEaL8s99whGHx783DRcIemZcyWJL5rUDzgU2WTIfgVk3cdx6IX2lPsx0Oki7wX7VrNUL/TA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from MWHPR12MB1501.namprd12.prod.outlook.com (2603:10b6:301:f::18) by MWHPR1201MB0062.namprd12.prod.outlook.com (2603:10b6:301:54::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3477.21; Mon, 26 Oct 2020 09:30:33 +0000 Received: from MWHPR12MB1501.namprd12.prod.outlook.com ([fe80::3ce6:9a73:3c99:2f35]) by MWHPR12MB1501.namprd12.prod.outlook.com ([fe80::3ce6:9a73:3c99:2f35%12]) with mapi id 15.20.3477.028; Mon, 26 Oct 2020 09:30:32 +0000 From: Slava Ovsiienko To: Bing Zhao , "viacheslavo@mellanox.com" , "matan@mellanox.com" CC: "dev@dpdk.org" , Ori Kam , "Raslan Darawsheh" Thread-Topic: [PATCH v2 6/6] net/mlx5: not split hairpin flow in explicit mode Thread-Index: AQHWqHyhzhtAlS8aeUaSxSP6DTDNlqmppERg Date: Mon, 26 Oct 2020 09:30:32 +0000 Message-ID: References: <1602166620-46303-1-git-send-email-bingz@nvidia.com> <1603375597-430528-1-git-send-email-bingz@nvidia.com> <1603375597-430528-7-git-send-email-bingz@nvidia.com> In-Reply-To: <1603375597-430528-7-git-send-email-bingz@nvidia.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: nvidia.com; dkim=none (message not signed) header.d=none;nvidia.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [95.164.10.10] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ead76313-e77a-4237-55fa-08d87991c93e x-ms-traffictypediagnostic: MWHPR1201MB0062: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8273; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HlZUaVEaOsri9/LOhrrzWWOe1IxkR1CDrGw1hh8Wd+OEsFmbuUw+Uuv7YALvlWvlmZcLFn88wsiAUPUjXhus5FNn1oKJNtYPnPQLo18Vjq5SYnW5udLejNH8vB3fnqL4ENJxAYSBtZvDgYPyPdovqW14Fap9VeeU5GhyW8uOo+mNoCJHqgdpeT7MUomgFa/qSIsiCeCSEfhF/+XkPOeoTkWOx82vL9lDoqgZDSSIGZ1ORYupGSu2ZEU8zsyI9XLzwPZcBNx2bjqRjYwM/8dLfUSCr8KM+CD/xK0dbmysDGvy1W+DLKtMyRbL1sRCl4l8muUQkfUZKmyIlm2pR72C7w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR12MB1501.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(346002)(376002)(396003)(39860400002)(9686003)(8936002)(4326008)(6506007)(7696005)(316002)(86362001)(66446008)(83380400001)(53546011)(107886003)(8676002)(64756008)(33656002)(2906002)(66476007)(71200400001)(52536014)(478600001)(110136005)(54906003)(26005)(66556008)(66946007)(186003)(76116006)(55016002)(5660300002); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: hCqTiM+TTJqrJH2woVQlqXq699nuEmImT3JCPMl6Sv669k2oUlJOMYyKQaWya1xtSB94bSy3M2kyYFniXeO4e+2t7A8ApCGg4b1bfKp0yEisCMAf1lKpOvzfuWrD4CMMYcgP/98fY28AjiEVAzHZ3c0/FWp+sbnOANhDzjZqn01AQuB6JatV5JY7GLg0Ein2yZWAowGiZtbTboERbWVrUbMa9WJw6/4bEk4HbGwNafY4J+1yhI+gsCOUcmTvsscfuu+Euo5Qjo4twIoeQCAOGotEKzjo0SEEbm0VST7CidmdzCpqQH3dcCwRBSPBZKqkiJmf5OIksg1ir76Hqz2ouLUMl/5hMC3qmdTgela+mkqBmhotdEze5mgndDDwTaEoiJgd8bvbDxc1/NYZCJ8t9fCvzueZtTloricioXpkIs9xTiHiL6vENA9DXELyzLYoRTRc4wCs3rn7iU6jUwiRcXiul96DJKTOQhYLzJ2xzr5hEox4a8MaPWw/PcRh2QjkqKt3ta7v8pDB5+/r7XG8o7A4jbKYlNnoJ7vcO984ibU2VVKE3N09GSbXSW56SOfxvuPK2LBOBZVnwXyP2YP9TrurrG70KdvUEqyNO6tqjTb7hgoLFlXRY9XjDeGBNJ+vlfkrDCSn/yj1a6gwUazaeQ== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR12MB1501.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: ead76313-e77a-4237-55fa-08d87991c93e X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Oct 2020 09:30:32.4830 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vwKjn0VjHiz6RIKejDljbbJsOyodKgyTPMlcpsK8Z3uK9CRcrBFG0/YviiJl82SjVTnFA6vo0HJox7n89rb3kA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR1201MB0062 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1603704640; bh=M89D3emhGQ28QjeTDjOVQrA2g5J1MoZn4P+7myJISc8=; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To: CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References: In-Reply-To:Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ms-exchange-transport-forked: x-microsoft-antispam-prvs:x-ms-oob-tlc-oobclassifiers: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata:Content-Type: Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=PFparam7Qn11jWkK7CK8q7+uJyJ5Q4ANDELsNng7uyg8/Fcx+JCZK9jSKDbjNI1ny pG96PWQzNzJ2AhvDoUWox6j/pXo4Ieyad40gv44AwsPbNBQHIj3tSE36PacVa0t1Ay 5EU82KYzPI8l/egbD6NrAq/HVElFWArbEovU3Wi8ecizD2dwh47mfnPf2EOY8v1+oo AjIy4i8AevOZJJloWfwJ9pUvKQo+wvwDiFJDESUFjN65VHI3MjXSPLi/inHyCRncnk b2HrSNINBFMJ/KnFvU9oY2+JscBFxA8HWkVj3ivPB/S0NrZFf0NsxvBotmOWwVOS4K pWkzJtZuDNZIQ== Subject: Re: [dpdk-dev] [PATCH v2 6/6] net/mlx5: not split hairpin flow in explicit mode 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" > -----Original Message----- > From: Bing Zhao > Sent: Thursday, October 22, 2020 17:07 > To: viacheslavo@mellanox.com; matan@mellanox.com > Cc: dev@dpdk.org; Ori Kam ; Raslan Darawsheh > > Subject: [PATCH v2 6/6] net/mlx5: not split hairpin flow in explicit mode >=20 > In the current implementation, the hairpin flow will be split into two fl= ows > implicitly if there is some action that only belongs to the TX part. A TX= device > flow will be inserted by the mlx5 PMD itself. >=20 > In hairpin between two ports, the explicit TX flow mode will be the only = one to > be supported. It is not the appropriate behavior to insert a TX flow into > another device implicitly. The application could create any flow as it li= kes and > has full control of the user flows. Hairpin flows will have no difference= from > standard flows and the application can decide how to chain RX and TX flow= s > together. >=20 > Even in the single port hairpin, this explicit TX flow mode could also be > supported. >=20 > When checking if the hairpin needs to be split, just return if the hairpi= n queue > is with "tx_explicit" attribute. Then in the following steps for validati= on and > translation, the code path will be the same as that for standard flows. >=20 > Signed-off-by: Bing Zhao Acked-by: Viacheslav Ovsiienko > --- > drivers/net/mlx5/mlx5_flow.c | 7 +++++++ > 1 file changed, 7 insertions(+) >=20