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 3F3C8A2E1B for ; Wed, 4 Sep 2019 15:38:38 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 19DAF1EDED; Wed, 4 Sep 2019 15:38:37 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00071.outbound.protection.outlook.com [40.107.0.71]) by dpdk.org (Postfix) with ESMTP id 5445C1EDD0 for ; Wed, 4 Sep 2019 15:38:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hry6DMF3R0xsTNw0Y4wWqztasgmUwfnm4UVkqD2orMDZ1RFfyo/4ExmeghAtjGycfPWBm5jt70iVV/HbO+fhPq71ZcaXPKlcSJ6DvGwSUIyxbDKsSOsQoohwiQ9VyvoArI39chcHx3ad5+7oeBzpp7Pw7fK2dhvB2tdEFtO/lDhE+FFjrKLyOes6WnOkqiJmF/diormZJdh10A5vBQN5H2rV5ZfXoVZq9dEhpzwSIJ/L7+D4bfEZc9Cqa+sejy2Srxy6o+gZj9InDNc8F/6RH7KLlG1szfUQhXnzu0M8Z9sCL7eloYwdhlB8gegLEKF3IM/+IS4FIw3YVRs1VTbj5w== 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=MyRTe5qDtlp9AZfIgpY5zqmq6QyOO/OubGXEU1LozDI=; b=UdZQuSgrYPEO5Am6Bz9GRGNfUQZi7Joe2v3whrjEmmJSany1TbsPGp+OkkScAyVE5Yi+q9gsV1/xBA7oCDqUzDVvztzTogWWiwZuHKNrQ3pLPBv2moOxu24LKjXAGhDpKIkbUaXrx9k5MZTj2Twj/aXc01gqpu6pdpXIxfhAStYHSmvt/or0hkDeCpAFPomx2jF2+otf3OTggkkdUnvx0KbViQU+ZR0D5fiQB4AInCXXZBKnc3i/AZtrciF2XnU2/8PhXyWWG1gQzyKodr/8axusloCUSjE8czyMZfXGSWHQWXKv+aNPU3j90TChcTPOyoBbEakB2NCJebW9bv0mpg== 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=MyRTe5qDtlp9AZfIgpY5zqmq6QyOO/OubGXEU1LozDI=; b=N8LwNYUqS1GPMyaOjxTEUkpwy2NeCfPLabytDVUQ1NdIeraYcU8QUNG3ZdvgzZ8Or1KehV+Ujqd1Evj0FKC3A4jGXR6MC8Kwqvw5dystiI6dF1jRThKKHOO4xHJ6tTwOO/nS4Km1jlEznBRv870KCOpna+lTZHF8lUc0REJW6jc= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.188.154) by AM4PR05MB3316.eurprd05.prod.outlook.com (10.171.187.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2220.20; Wed, 4 Sep 2019 13:38:35 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::da9:65ba:1323:a39b]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::da9:65ba:1323:a39b%7]) with mapi id 15.20.2220.022; Wed, 4 Sep 2019 13:38:35 +0000 From: Slava Ovsiienko To: Jack Min , Raslan Darawsheh CC: "dev@dpdk.org" Thread-Topic: [PATCH] net/mlx5: fix missing ptype for IP-in-IP Thread-Index: AQHVTd3kP+o4JFQPuUGQbqEZV7iSBKcbsDKw Date: Wed, 4 Sep 2019 13:38:35 +0000 Message-ID: References: <8b07ad6d289e6b604bfc95f70ded7f78e0cb4489.1565264176.git.jackmin@mellanox.com> In-Reply-To: <8b07ad6d289e6b604bfc95f70ded7f78e0cb4489.1565264176.git.jackmin@mellanox.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=viacheslavo@mellanox.com; x-originating-ip: [95.67.35.250] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 5ef25345-5ab2-4cad-1c84-08d7313d2f6e x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:AM4PR05MB3316; x-ms-traffictypediagnostic: AM4PR05MB3316:|AM4PR05MB3316: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:2331; x-forefront-prvs: 0150F3F97D x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(376002)(366004)(39860400002)(136003)(396003)(346002)(199004)(189003)(13464003)(256004)(4326008)(14444005)(11346002)(8936002)(6636002)(33656002)(486006)(71190400001)(476003)(71200400001)(229853002)(86362001)(7696005)(6436002)(7736002)(66066001)(478600001)(53936002)(74316002)(55016002)(8676002)(446003)(81156014)(81166006)(9686003)(305945005)(53546011)(5660300002)(110136005)(3846002)(6506007)(6116002)(6246003)(76176011)(26005)(102836004)(25786009)(52536014)(64756008)(66556008)(186003)(66446008)(66946007)(66476007)(99286004)(2906002)(76116006)(316002)(14454004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB3316; H:AM4PR05MB3265.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-message-info: 8PiSBg4SJBO1eJCVHrOx0geiitT/pzPZBCmWj8akNwqrqG8P/3b5b6o8LcXyLCOQcSHSvP2Pzp59QYotPZrqaJEBWvUB03m+RM5PBbHbjVDee7nOMBXb6IjJf+VWED1oNaGrWt4vUXKUDFwXVO/fN87kNAMO1akwasxkEWcMSf0nplTTAabu40Hrxi3erl0ygUHzIisinmEnDCJu/OKKtQNWg9Be6b1ulSstS9KfXXjRWfudNClP02TpdHlbRRDbPwwebqKtU2Bq0ivrgmSqQklKZ6vaqOlak838Jb29vyVI1IIMervEkd+Wp/bRLc30wBDAdlHsp+vL5PA5V+vfKYpVJgYy5JyNHL/bj+pZxjQtAA79/2UbZ9DlKxIBx3ukYKTr62aSuroOmXYNutvajvrirrKMR2oOWtpe51P/ch8= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 5ef25345-5ab2-4cad-1c84-08d7313d2f6e X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Sep 2019 13:38:35.3986 (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: bso96begBsEBagEFwV9fv4fFG7NELYxPFrJZJMFhQUWmsKIZZXIL6WlAdTzFHmx4UmvQuM7NzVbMBv+lVJpflRZ1QgYP5NJ4O4Cuns0P930= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB3316 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: fix missing ptype for IP-in-IP 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: Xiaoyu Min > Sent: Thursday, August 8, 2019 14:39 > To: Shahaf Shuler ; Yongseok Koh > ; Slava Ovsiienko > Cc: dev@dpdk.org > Subject: [PATCH] net/mlx5: fix missing ptype for IP-in-IP >=20 > The hw ptype information is missed for IP-in-IP tunnel. > It should be RTE_PTYPE_TUNNEL_IP ptype. >=20 > Fixes: 5e33bebdd8d3 ("net/mlx5: support IP-in-IP tunnel") >=20 > Signed-off-by: Xiaoyu Min Acked-by: Viacheslav Ovsiienko > --- > drivers/net/mlx5/mlx5_flow.c | 8 ++++++++ drivers/net/mlx5/mlx5_rxtx.h = | > 2 +- > 2 files changed, 9 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c > index 9d2c8c9ec5..67a31473d8 100644 > --- a/drivers/net/mlx5/mlx5_flow.c > +++ b/drivers/net/mlx5/mlx5_flow.c > @@ -306,6 +306,14 @@ static struct mlx5_flow_tunnel_info tunnels_info[] > =3D { > .tunnel =3D MLX5_FLOW_LAYER_NVGRE, > .ptype =3D RTE_PTYPE_TUNNEL_NVGRE, > }, > + { > + .tunnel =3D MLX5_FLOW_LAYER_IPIP, > + .ptype =3D RTE_PTYPE_TUNNEL_IP, > + }, > + { > + .tunnel =3D MLX5_FLOW_LAYER_IPV6_ENCAP, > + .ptype =3D RTE_PTYPE_TUNNEL_IP, > + }, > }; >=20 > /** > diff --git a/drivers/net/mlx5/mlx5_rxtx.h b/drivers/net/mlx5/mlx5_rxtx.h > index bad9e9c1f7..4f73d91311 100644 > --- a/drivers/net/mlx5/mlx5_rxtx.h > +++ b/drivers/net/mlx5/mlx5_rxtx.h > @@ -40,7 +40,7 @@ > #include "mlx5_glue.h" >=20 > /* Support tunnel matching. */ > -#define MLX5_FLOW_TUNNEL 6 > +#define MLX5_FLOW_TUNNEL 8 >=20 > struct mlx5_rxq_stats { > #ifdef MLX5_PMD_SOFT_COUNTERS > -- > 2.21.0