From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60085.outbound.protection.outlook.com [40.107.6.85]) by dpdk.org (Postfix) with ESMTP id C1FC41B120 for ; Thu, 1 Nov 2018 13:19:23 +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=avjXApgpY/gnQ127a8pANAkxRbKBqoHHiXwbsqWC++Y=; b=tf3HSm2cVchBvvlEfu/AuocYchorC+smWaF+z9ZX4B0uHXEWH4vbc4GWCiO33MDpJz5TLWTefZ9tHGjV9raSfP6sJ1WZPbkrJphe3X5Lkpvn+AtdrLMzkpfA1pdg6rXLadsP52/3az93VHfFYjclMGLvQRew/6fFc/DqTCYJQ0U= Received: from AM4PR05MB3265.eurprd05.prod.outlook.com (10.171.186.150) by AM4PR05MB1681.eurprd05.prod.outlook.com (10.165.245.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1273.25; Thu, 1 Nov 2018 12:19:22 +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.1273.030; Thu, 1 Nov 2018 12:19:22 +0000 From: Slava Ovsiienko To: Shahaf Shuler CC: "dev@dpdk.org" , Yongseok Koh , Slava Ovsiienko Thread-Topic: [PATCH v3 01/13] net/mlx5: prepare makefile for adding e-switch VXLAN Thread-Index: AQHUcd0f7QyG7ny/p0y5ojvAn4puyQ== Date: Thu, 1 Nov 2018 12:19:22 +0000 Message-ID: <1541074741-41368-2-git-send-email-viacheslavo@mellanox.com> References: <1539612815-47199-1-git-send-email-viacheslavo@mellanox.com> <1541074741-41368-1-git-send-email-viacheslavo@mellanox.com> In-Reply-To: <1541074741-41368-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: LO2P265CA0079.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8::19) 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; AM4PR05MB1681; 6:d6gUgcm3gE4xduYktSTFle9aLLr7DkumCopAalnxPRaYnuhaR1G2Mj4j2gkkQHP8yR4Z4Ma7Hl2LRitIurBJhcpZfg00yFJvKnYq2Gm0Po7uoCgSLbKQG5VGUXtbjYfZaiPyEgi9fAQMS2x9mxrm7gUiFE7N7d/eaTsGDXt4HFvE5nTPOWn8wBMzf3HxiiaCY6BEhLtrFrDgdKkhROHcKoFpOZIc7J6Yw+iq9ywbmDt8fL/kRmxx1va/gqv3J4pUjjQK1DV5aYONJxwDjCJuwTuXDA8Ex6SK3EFos+XuhjZ8cdOEm7WRyabC040REqPVphOSbxi+q9KKcbdgEIb7B+VDiZfZny9yBJoUaWPk3zlJ9TUbY+lKIBfxoWfOXLcmnNKKy8bOnO4MgocShIQY/9pjihVu2lHV+LtI510NFf1j1z9j1mRlJNo0xgghUMcr8jRBxtrHDLR9wFSRk0DdhA==; 5:uCTMWEu6qYWbLuOqzce7VqatG/wISfaRhgr33sinhwVrri+sSIUgpFpKfshVpBVvNvMRcriPXozOxggIj1GFaeuf2i8LD7ai0H4xmHHhRTniI4D5utQO9f6VhxEXIN9RNLBSEW3gHXUYJ4jYKMMiGPjbWABeh2CqXz+Pt+xiaRs=; 7:lsa5PiBRUKPO8glM/Ho+7VMtXrp5+1Qj1CtqGp4cunXZVqNHVDvx4+cK7bW7RILHUVDwp5I02rquSHefW4+q4YEgc8dSXK70OACt8lo+MFrONXxIKqJEJf3pAs/s0+qbK8FN6nmzmY+Bv4TmQ7ISkA== x-ms-office365-filtering-correlation-id: 939d63c8-a7b8-4278-7088-08d63ff44163 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:AM4PR05MB1681; x-ms-traffictypediagnostic: AM4PR05MB1681: 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)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231382)(944501410)(52105095)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:AM4PR05MB1681; BCL:0; PCL:0; RULEID:; SRVR:AM4PR05MB1681; x-forefront-prvs: 0843C17679 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(39860400002)(366004)(396003)(346002)(376002)(199004)(189003)(97736004)(3846002)(6116002)(6862004)(478600001)(5250100002)(25786009)(4326008)(71190400001)(71200400001)(86362001)(316002)(8676002)(68736007)(81156014)(8936002)(81166006)(106356001)(105586002)(2906002)(14454004)(36756003)(7736002)(305945005)(107886003)(54906003)(37006003)(6436002)(6486002)(102836004)(99286004)(66066001)(6512007)(53936002)(2900100001)(476003)(6636002)(52116002)(76176011)(386003)(186003)(256004)(446003)(26005)(5660300001)(6506007)(11346002)(486006)(2616005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR05MB1681; 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: cbRtp+DAEU7ELKS0OxqxFQAX3Lz4HsoVI+K0Mw1OnGMwqErogQvwlXFSccsyfjCtF2173mMNgbUK53a0YPq8mXG/TV+k8ew1xqw3aUxRGTAaZRDgS0PYM+zswJ45R6x2QLqofafHA43ZACNUJPnb7yQDycgR0+jiG3e4kleNjw7ls8J83ygo1uQAIzgY1qiTJlq55gOPyhRZmhn3D7GxcuV14PaLu6pfWZgyRk6NgWs89zIPDgXFSUyQ591X4AFcRROgTHzXSAIVVtUZj6Dy8mIQR9gAS6GGXhEo5F7c2mkpDK903e+Moag0mPEoaVZb6GlIbTvcNuVo+UhEwtE+C+Hmx5r7i1i8wR502nV2mM0= 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: 939d63c8-a7b8-4278-7088-08d63ff44163 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Nov 2018 12:19:22.5172 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR05MB1681 Subject: [dpdk-dev] [PATCH v3 01/13] net/mlx5: prepare makefile 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: Thu, 01 Nov 2018 12:19:24 -0000 This patch updates makefile 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 --- drivers/net/mlx5/Makefile | 85 +++++++++++++++++++++++++++++++++++++++++++= ++++ 1 file changed, 85 insertions(+) diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index ba433d3..f4fa075 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -218,6 +218,11 @@ mlx5_autoconf.h.new: $(RTE_SDK)/buildtools/auto-config= -h.sh enum IFLA_PHYS_PORT_NAME \ $(AUTOCONF_OUTPUT) $Q sh -- '$<' '$@' \ + HAVE_IFLA_VXLAN_COLLECT_METADATA \ + linux/if_link.h \ + enum IFLA_VXLAN_COLLECT_METADATA \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ HAVE_TCA_CHAIN \ linux/rtnetlink.h \ enum TCA_CHAIN \ @@ -378,6 +383,86 @@ mlx5_autoconf.h.new: $(RTE_SDK)/buildtools/auto-config= -h.sh enum TCA_VLAN_PUSH_VLAN_PRIORITY \ $(AUTOCONF_OUTPUT) $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_KEY_ID \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_KEY_ID \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_IPV4_SRC \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_IPV4_SRC \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_IPV4_SRC_MASK \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_IPV4_SRC_MASK \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_IPV4_DST \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_IPV4_DST \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_IPV4_DST_MASK \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_IPV4_DST_MASK \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_IPV6_SRC \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_IPV6_SRC \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_IPV6_SRC_MASK \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_IPV6_SRC_MASK \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_IPV6_DST \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_IPV6_DST \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_IPV6_DST_MASK \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_IPV6_DST_MASK \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_UDP_SRC_PORT \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_UDP_SRC_PORT \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_UDP_SRC_PORT_MASK \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_UDP_SRC_PORT_MASK \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_UDP_DST_PORT \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_UDP_DST_PORT \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_FLOWER_KEY_ENC_UDP_DST_PORT_MASK \ + linux/pkt_cls.h \ + enum TCA_FLOWER_KEY_ENC_UDP_DST_PORT_MASK \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TC_ACT_TUNNEL_KEY \ + linux/tc_act/tc_tunnel_key.h \ + define TCA_ACT_TUNNEL_KEY \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_TUNNEL_KEY_ENC_DST_PORT \ + linux/tc_act/tc_tunnel_key.h \ + enum TCA_TUNNEL_KEY_ENC_DST_PORT \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ + HAVE_TCA_TUNNEL_KEY_NO_CSUM \ + linux/tc_act/tc_tunnel_key.h \ + enum TCA_TUNNEL_KEY_NO_CSUM \ + $(AUTOCONF_OUTPUT) + $Q sh -- '$<' '$@' \ HAVE_TC_ACT_PEDIT \ linux/tc_act/tc_pedit.h \ enum TCA_PEDIT_KEY_EX_HDR_TYPE_UDP \ --=20 1.8.3.1