From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40080.outbound.protection.outlook.com [40.107.4.80]) by dpdk.org (Postfix) with ESMTP id 08D9C5688 for ; Sat, 3 Nov 2018 07:18:37 +0100 (CET) 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=jdWVNZ+5TjaCRCClpMbwdjuIM7qrxQ/wAcC+g6wg7Ec=; b=ZY3qybDx9AbOdREIxE4l8LHzL3tyKl0iN5zp6VwLBbQWwbqAqpm1qiGDls2wGSoauPwVX3rBM9yy+cJtRqUcJxhjGWczcNo4zetuZL/3lP4HWARUX6N6cc/UL/ofezNTX05CO49G783t4jY/Na1hfRjd5grflneCPqkQ2O9OXlM= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.186.150) by AM4PR05MB1620.eurprd05.prod.outlook.com (10.165.245.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1250.30; Sat, 3 Nov 2018 06:18:36 +0000 Received: from AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::544b:a68d:e6a5:ba6e]) by AM4PR05MB3265.eurprd05.prod.outlook.com ([fe80::544b:a68d:e6a5:ba6e%2]) with mapi id 15.20.1294.027; Sat, 3 Nov 2018 06:18:36 +0000 From: Slava Ovsiienko To: Shahaf Shuler CC: "dev@dpdk.org" , Yongseok Koh , Slava Ovsiienko Thread-Topic: [PATCH v5 02/13] net/mlx5: prepare meson.build for adding E-Switch VXLAN Thread-Index: AQHUcz0Nf8sE1mamy0SoB7LCN21WCA== Date: Sat, 3 Nov 2018 06:18:36 +0000 Message-ID: <1541225876-8817-3-git-send-email-viacheslavo@mellanox.com> References: <1541181152-15788-2-git-send-email-viacheslavo@mellanox.com> <1541225876-8817-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1541225876-8817-1-git-send-email-viacheslavo@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: CWLP123CA0088.GBRP123.PROD.OUTLOOK.COM (2603:10a6:401:5b::28) To AM4PR05MB3265.eurprd05.prod.outlook.com (2603:10a6:205:4::22) authentication-results: spf=none (sender IP is ) smtp.mailfrom=viacheslavo@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [37.142.13.130] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; AM4PR05MB1620; 6:RqQzlc8BTiATJpwz7yp/AApZj8/r/2nW/fPRvcRoTXWYQVuGgioRyTyt9/R9zBjhchGBjcK0CptqIX3ruS8E3qCeCGUof0MCgsNs02gzOgaoDeZisD4ShnSc0Gb57PyCSVq7wY0O8jJc3UY4wp9nhHahQAd8WGCjafyFvb0ZzzdvhsrjkeuyGzWafW6ToSxPdCYPuHKT7FOjeqpX1EgNfX7ZZZFoTx5WZ4bf2vW1eFhfrIkYmL0U/WzXFFohZcKfbMVw25tsO9Oq55STWm6OkRIKwz6A7PncN08RoFeyxZ6WXTBJuM8tkPKg7vdSP55bEParssze7ArTsIe6wRt7LfmS8OdZl36ZtyTEg4/rEY/KvJW2PN8WX/t80dT8iTWErx+AFXkjxPW3npnsXnGRECfwXUbF0e8fB5Hpb84iXPBft9qStn5abeXYfWPY/gEu4dhfqkGWZ9S/AyxKuwiRQw==; 5:sZyUZ2/RFxedtaTEjTDQQOSRCNp0ek+v/tDuClhR59ndVv+buWXvasFDtufwZwGgjganMqM9Zz1t2pgIUpuoa7YIzGnNfPTofIdmo1awt3d8E9WDGtne5jLgawmSiToRpUInq5OyyR2HPuIxCIb0bczwOsX4B7FPtcM/o7oG4bg=; 7:Xbnuskf2liTLqWPxZg+QQhQ+VOtU8Wte12ptUWPUw1SQ9+wxuLdEC2TBjTp7HbopaBFVNhrjFQD5l1L8PTXDImWtsxK1O5deATJc5FYjomQJuek3g9x9ASlNc8uXjTYVh9HMLgP6QwJdcFXCdi98ICPGd22N9zaKxM4qyEdrEcmuVor3945trZpyQfX3hGRqKzkBsO8S0n88AZm1MHu1L4lUrtQp+cAuOEReK7nekU1thiyCgDDahC2JK7FpD03u x-ms-office365-filtering-correlation-id: 4306a088-bcd5-4eb7-9804-08d641542ff6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM4PR05MB1620; x-ms-traffictypediagnostic: AM4PR05MB1620: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231382)(944501410)(52105095)(10201501046)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123558120)(20161123560045)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM4PR05MB1620; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB1620; x-forefront-prvs: 08457955C4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(396003)(39860400002)(366004)(346002)(376002)(136003)(199004)(189003)(6636002)(52116002)(36756003)(486006)(102836004)(386003)(6506007)(6116002)(2906002)(86362001)(25786009)(2900100001)(476003)(71190400001)(106356001)(26005)(305945005)(2616005)(76176011)(3846002)(256004)(53936002)(66066001)(4326008)(107886003)(11346002)(14454004)(105586002)(6436002)(8936002)(446003)(81166006)(97736004)(6512007)(8676002)(316002)(54906003)(6486002)(186003)(68736007)(7736002)(5660300001)(6862004)(71200400001)(37006003)(478600001)(81156014)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB1620; 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-microsoft-antispam-message-info: FYVAqAwzk4ZA1qxRIAzy4+yLwxBfW0+PT8V3EXQyTen5fnnhORLCLnlOp45B6WkEINRwm+zdmGk2jb2b0/k4GNlZajC2ygVKkvbbdbVmaMhaIJhFTreVv/rZ5suUH9JJErouPCTe6GKCS9dXZQ+kz926AKszSOQ1Xo96AaQQJ5pFBBCIYrN2YSxt4nMTglY391aYiVKDXNkDva0Y/TU0MSbN1QsBmH/Tqj3fAvVIlpDa0KXu/C3s869uD8JKPuSjk1jK2PILhOlbVTHG7B1oXPQzrreBOpp8PtE4tO5pu6Guja4nr8DvHyG4mLK8YBsu3TvRb0yEWMjNpFCI30r+RzytLiizVaKhQvWJfIqJqMo= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4306a088-bcd5-4eb7-9804-08d641542ff6 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Nov 2018 06:18:36.0234 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB1620 Subject: [dpdk-dev] [PATCH v5 02/13] net/mlx5: prepare meson.build for adding E-Switch VXLAN 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: , X-List-Received-Date: Sat, 03 Nov 2018 06:18:37 -0000 This patch updates meson.build before adding E-Switch VXLAN encapsulation/decapsulation hardware offload support. E-Switch rules are controlled via tc Netilnk commands, so we need to include tc related headers, and check for some tunnel specific key definitions. Suggested-by: Adrien Mazarguil Signed-off-by: Viacheslav Ovsiienko Acked-by: Yongseok Koh --- --- drivers/net/mlx5/meson.build | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/drivers/net/mlx5/meson.build b/drivers/net/mlx5/meson.build index 2c8fd19..28938db 100644 --- a/drivers/net/mlx5/meson.build +++ b/drivers/net/mlx5/meson.build @@ -130,6 +130,8 @@ if build 'IFLA_PHYS_SWITCH_ID' ], [ 'HAVE_IFLA_PHYS_PORT_NAME', 'linux/if_link.h', 'IFLA_PHYS_PORT_NAME' ], + [ 'HAVE_IFLA_VXLAN_COLLECT_METADATA', 'linux/if_link.h', + 'IFLA_VXLAN_COLLECT_METADATA' ], [ 'HAVE_TCA_CHAIN', 'linux/rtnetlink.h', 'TCA_CHAIN' ], [ 'HAVE_TCA_FLOWER_ACT', 'linux/pkt_cls.h', @@ -194,6 +196,38 @@ if build 'TC_ACT_GOTO_CHAIN' ], [ 'HAVE_TC_ACT_VLAN', 'linux/tc_act/tc_vlan.h', 'TCA_VLAN_PUSH_VLAN_PRIORITY' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_KEY_ID', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_KEY_ID' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_IPV4_SRC', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_IPV4_SRC' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_IPV4_SRC_MASK', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_IPV4_SRC_MASK' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_IPV4_DST', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_IPV4_DST' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_IPV4_DST_MASK', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_IPV4_DST_MASK' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_IPV6_SRC', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_IPV6_SRC' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_IPV6_SRC_MASK', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_IPV6_SRC_MASK' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_IPV6_DST', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_IPV6_DST' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_IPV6_DST_MASK', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_IPV6_DST_MASK' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_UDP_SRC_PORT', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_UDP_SRC_PORT' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_UDP_SRC_PORT_MASK', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_UDP_SRC_PORT_MASK' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_UDP_DST_PORT', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_UDP_DST_PORT' ], + [ 'HAVE_TCA_FLOWER_KEY_ENC_UDP_DST_PORT_MASK', 'linux/pkt_cls.h', + 'TCA_FLOWER_KEY_ENC_UDP_DST_PORT_MASK' ], + [ 'HAVE_TC_ACT_TUNNEL_KEY', 'linux/tc_act/tc_tunnel_key.h', + 'TCA_ACT_TUNNEL_KEY' ], + [ 'HAVE_TCA_TUNNEL_KEY_ENC_DST_PORT', 'linux/tc_act/tc_tunnel_key.h', + 'TCA_TUNNEL_KEY_ENC_DST_PORT' ], + [ 'HAVE_TCA_TUNNEL_KEY_NO_CSUM', 'linux/tc_act/tc_tunnel_key.h', + 'TCA_TUNNEL_KEY_NO_CSUM' ], [ 'HAVE_TC_ACT_PEDIT', 'linux/tc_act/tc_pedit.h', 'TCA_PEDIT_KEY_EX_HDR_TYPE_UDP' ], [ 'HAVE_RDMA_NL_NLDEV', 'rdma/rdma_netlink.h', --=20 1.8.3.1