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 4F1C6A04DD; Tue, 26 Nov 2019 16:22:06 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C49122B88; Tue, 26 Nov 2019 16:22:05 +0100 (CET) Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10074.outbound.protection.outlook.com [40.107.1.74]) by dpdk.org (Postfix) with ESMTP id 989C8CF3 for ; Tue, 26 Nov 2019 16:22:04 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PJLf8ueqCmyE/8hsCTTdUa21cPNvnFaghf4GuzBDovaE9qaicPI8syyk8UFuh20IJRDwQhHGY7nu8V4P97kMpKdZ/Pk5h6DErR1Tvs0RHUV+rWAbqgzshGJZ1rO8AF1yGbRXcmOUJa9WhzXxGvfmYV8qqLb9Dqc5pa+uF6OZ1RfrDtv+D+qtmuvNRu7dj4Mc4CE9IMfSAJr8KnDaLB6+jWhz6242LyvxR1iaW7oJV+wkEJAQxwihAxaRcY9vOaj99ptUGzLBQOR3qVL0GswarPux4n9pBDHwneFthugoBUqmWXUB08pOfSuRg1jpk/qqZA5IfN7siEmvdd6Wnx0oQA== 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=NQ9D7qNg0B+mn8v/gFgQ5PwAuOagLYeQWqGeQDKXB2s=; b=TAKoxEVD3tTI+YWAg9JSl4EK6mAkEYEHb4u+55sAtCpUsQnY0y6HQiFSxNIXnYzbcReaA1ZLOghZrwSbz7GsPwtPUnZj+I/WzpJMGkRD43rzIwgvRBkWB+gdpkX0g8KHtO+huRHB4oYPeBnbe3zTwXld1Kamw0LuKhGFDpeDUUHyvWO4cJc14eoPgu3XxUxuEUdC1h5fcruxIysTbx+wRFs//lcR6ynVqgweNu5jZ7DjEQZSQ3JHjKsml/iFL3pMT6FaZk7FCR5u2DrQ0VoxNU046FOMKlbq5RI4vK0KtFEEDrmXtcq5w7wDVPa4bpWg51czGAfO0nI7g9jOFR3cjw== 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=NQ9D7qNg0B+mn8v/gFgQ5PwAuOagLYeQWqGeQDKXB2s=; b=UB0/R474BQcf0WYsKczY0rpaJJWS8zoyw0V8MNaDOAkBt1GAOMhzpSwDgYWbtoW0x5tUMWfdmhx1Su0K4luKun1rTqKosQUH6xGH56fqiLHUwiFrbzN0Dpk2qhkR1e+BRJq7j4QSsVBW8+uaIEMICL28HIQaDamAmDDw8WJo+i0= Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com (52.134.65.161) by DB3PR0502MB3979.eurprd05.prod.outlook.com (52.134.67.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2474.22; Tue, 26 Nov 2019 15:22:03 +0000 Received: from DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::a850:bac9:c90f:f2f5]) by DB3PR0502MB3964.eurprd05.prod.outlook.com ([fe80::a850:bac9:c90f:f2f5%6]) with mapi id 15.20.2474.023; Tue, 26 Nov 2019 15:22:03 +0000 From: Raslan Darawsheh To: Suanming Mou , Slava Ovsiienko , Matan Azrad CC: Ori Kam , "dev@dpdk.org" Thread-Topic: [PATCH] net/mlx5: add GENEVE in tunnel offloads cap query Thread-Index: AQHVpGKqvfvmWGxm/k6FaSrYmblS1aedka3w Date: Tue, 26 Nov 2019 15:22:03 +0000 Message-ID: References: <1574777165-10517-1-git-send-email-suanmingm@mellanox.com> In-Reply-To: <1574777165-10517-1-git-send-email-suanmingm@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=rasland@mellanox.com; x-originating-ip: [212.29.221.74] x-ms-publictraffictype: Email x-ms-office365-filtering-ht: Tenant x-ms-office365-filtering-correlation-id: a7b187f4-7f79-44c4-bea4-08d772846414 x-ms-traffictypediagnostic: DB3PR0502MB3979:|DB3PR0502MB3979: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:5236; x-forefront-prvs: 0233768B38 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(136003)(396003)(39860400002)(346002)(376002)(13464003)(199004)(189003)(26005)(102836004)(76176011)(316002)(7736002)(66066001)(11346002)(5660300002)(53546011)(6506007)(55016002)(256004)(7696005)(54906003)(6246003)(8936002)(74316002)(81166006)(81156014)(9686003)(8676002)(2906002)(305945005)(6436002)(71200400001)(99286004)(76116006)(66556008)(64756008)(66446008)(66946007)(66476007)(33656002)(446003)(4326008)(52536014)(229853002)(6636002)(3846002)(25786009)(86362001)(110136005)(478600001)(6116002)(14454004)(186003)(71190400001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB3979; H:DB3PR0502MB3964.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: 5PRbwIR79GzhxvgsGDeRYz7NGuVdXFVIefVK8jtouCuoj+3Xn44EzIskPI3H/kwxM8i+MOnJfOZ7K1nkG+M2j9Kvf7Vd+DvcB1MXq+CK3xzDGrJOfWkSK+HM5mw2ZZqfhNe009UfgJntNVYRPUTxs5rDmxigfSqRsJ1snyFf0xEN+SemriCkisjMh+p3BlW4jONiZBUaR58t0SvIKBsEtNX64V5qZphehiPwRn/8OATrVq2q0aKM3JFmI60pajsoA75wcTq7O/9nz+mcnHl92v7sWJjqYP4wKn1yLwWpHjiJ01ZRDC6cofgAIET2Z141LXjYNYMG7XUEPMSBAcP6ng+Bf3ff2bFuIO3DsGsark6r+P9C42pMbk40+dlGZXv5UQZyh4xs5vwKBfzpbl/DAYqd/dbgXS3BF34/rYK/zlhe+8K0b2fAHngigAi5JS5Z 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: a7b187f4-7f79-44c4-bea4-08d772846414 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Nov 2019 15:22:03.5335 (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: yi4jDcWko+8lFRh7I1kWqOmAgMQnkymSxwsMcHXNzRxPuc6LcsnAGHJJ0MbIBmaz05H6zhhz1xZbFpyjTegerA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB3979 Subject: Re: [dpdk-dev] [PATCH] net/mlx5: add GENEVE in tunnel offloads cap query 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: Suanming Mou > Sent: Tuesday, November 26, 2019 4:06 PM > To: Slava Ovsiienko ; Matan Azrad > > Cc: Ori Kam ; Raslan Darawsheh > ; dev@dpdk.org > Subject: [PATCH] net/mlx5: add GENEVE in tunnel offloads cap query >=20 > GENEVE is available in tunnel offloads. Add it as the default support opt= ion. >=20 > Signed-off-by: Suanming Mou > Acked-by: Ori Kam > --- > drivers/net/mlx5/mlx5.c | 4 +++- > drivers/net/mlx5/mlx5_txq.c | 3 ++- > 2 files changed, 5 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/net/mlx5/mlx5.c b/drivers/net/mlx5/mlx5.c index > 59ae408..949da68 100644 > --- a/drivers/net/mlx5/mlx5.c > +++ b/drivers/net/mlx5/mlx5.c > @@ -2256,7 +2256,9 @@ struct mlx5_flow_id_pool * > tunnel_en =3D ((dv_attr.tunnel_offloads_caps & >=20 > MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_VXLAN) && > (dv_attr.tunnel_offloads_caps & > - > MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE)); > + > MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GRE) && > + (dv_attr.tunnel_offloads_caps & > + > MLX5DV_RAW_PACKET_CAP_TUNNELED_OFFLOAD_GENEVE)); > } > DRV_LOG(DEBUG, "tunnel offloading is %ssupported", > tunnel_en ? "" : "not "); > diff --git a/drivers/net/mlx5/mlx5_txq.c b/drivers/net/mlx5/mlx5_txq.c > index 8160516..d265f98 100644 > --- a/drivers/net/mlx5/mlx5_txq.c > +++ b/drivers/net/mlx5/mlx5_txq.c > @@ -127,7 +127,8 @@ > offloads |=3D > DEV_TX_OFFLOAD_OUTER_IPV4_CKSUM; > if (config->tso) > offloads |=3D (DEV_TX_OFFLOAD_VXLAN_TNL_TSO | > - DEV_TX_OFFLOAD_GRE_TNL_TSO); > + DEV_TX_OFFLOAD_GRE_TNL_TSO | > + DEV_TX_OFFLOAD_GENEVE_TNL_TSO); > } > return offloads; > } > -- > 1.8.3.1 Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh