From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50063.outbound.protection.outlook.com [40.107.5.63]) by dpdk.org (Postfix) with ESMTP id 597D51E2F for ; Thu, 3 May 2018 01:17:14 +0200 (CEST) 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; bh=ZasqwgZ+rqNksYzoZB5aI6w9v9m5RlCN1iaz1J7Wiwg=; b=kvoWwxyfJ0ktRjYn+TH6xdVPj4hpUcRANkDxIH7fpY6nz1m/+aCjbK4oSF/eNhc4QxM4NtbrVwQtGhJYgxF1PCQcV99R/K4q2/Hd8HIhNRk2mQhbPTmkXJd/DSSbxblbrJl+hIlzD/fm//V5OZb/vkFxHVFyOhDTKaBdB0sL6oc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; Received: from mellanox.com (209.116.155.178) by VI1PR0501MB2048.eurprd05.prod.outlook.com (2603:10a6:800:36::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.20; Wed, 2 May 2018 23:17:08 +0000 From: Yongseok Koh To: adrien.mazarguil@6wind.com, nelio.laranjeiro@6wind.com Cc: dev@dpdk.org, Yongseok Koh Date: Wed, 2 May 2018 16:16:49 -0700 Message-Id: <20180502231654.7596-1-yskoh@mellanox.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [209.116.155.178] X-ClientProxiedBy: BYAPR03CA0026.namprd03.prod.outlook.com (2603:10b6:a02:a8::39) To VI1PR0501MB2048.eurprd05.prod.outlook.com (2603:10a6:800:36::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(48565401081)(2017052603328)(7153060)(7193020); SRVR:VI1PR0501MB2048; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2048; 3:sPRyXRN/hECB7n1KqPh5jSnPWcPWw5+4YlbOl4cjlO8ulZNvjywkK7z7zzntsBenxyPFOrr7XTZTY7SfXUEmyj3ePhTQgrj/BeZ4zehnbmIEvqU0OaDhmDJd7MTRg3HYy3xnpZVe6wbKPHG0fI3iiflZDdaFuUecfGQkvoJ07ABqZyyQ+QwtbNnYo5TMF6DHa0M3mDiEfva/9Z8O2jEYMIE3RE9TpvRUt6WlAjzMS+MpiFIWj5C9x66BdnPZQnas; 25:6taZUpugxqP77fKhQssqPRpV2qBRbfwpXIaB5gXevqZ24FxtLj1pScAORzUvWOjePC5ISbERbl9mkxoOMCC42hoKCpNqlKkW1KhL2Ca1GVl7yyY1pyyqKXrCy1D2wcsoFq+6o1OWXall6hr1/VWjtIPheG1nOc0/tK4kJ8gSG1MXqTffXUMQZTgNlE0PQ6QZKrXRu9pVumi2qp68QDjyvyGOI+X8J3/HIkf7EU8//4y3NdG2CcDprw8jKyw3CX2tzBSgGJ5Yvh9sbRLiGvvKdanY+yEujmeKny3Me/Wpg0ky8gf0G5q3XslmjTN4a31uXcGaPukq0j79fMCSlBFCXQ==; 31:W8PEvANlCD1loXz4+2O1d5JyodmuKoZsz6gbcLn06pqAWlRL2TsTL6AFFEwcdoxNtghzxw94bR3hUxmHXcgSQIeJ+m2rcZ7Pi8Kq2Lw67Zj9+3lZkSJm2m6aqyPl2uycR7cy6k794jcIS7zVGiX76oTpG6CZeSCA5mmvCEwjgCKSsygfB2HM/5AkvUXlLedFsYbOx9WjD5bPHgk1Il0PvPYrGhvSDriFHRNoAxFrOHg= X-MS-TrafficTypeDiagnostic: VI1PR0501MB2048: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2048; 20:w1fyGcfjRCFU3coKgAdMLvSm04u1n19LpIv20zrs2TW/dZpa+19n4XsoASEF1xLHGD8g126tPBqYgOHjhDyhwRarH+4xlm9yDEr/xgYEYGVuoJo85HrE5zdsQ46dzBTlhlvoCxV1HnjpXYRze84X2kamSSncLvNP4HznUMy/yyWteB9DveEOCB1WqT+knNI/LD5XZKk+hCTzLoxXvqSLxX0ClRCoHmg29z8Cf9dEWF0Q5fpqMjBx0PSDtfXpyRgQSubdgWqfdQ+e3eFVltljGaIzBGCY9Pb5LHdy2vUTVJXQ8CSDZtcC+v08TR7+/a6Zl533wj7fdxGb9LoZkqZn3iHq3XfFQ6iAoKJpDr6ndjp1AYgTF7Vq9sNTqRLy2POrt5dPN7OTfLWUCzeP7wKDEyR+xZ9KTPq7xyNpuBngSR1coI+KQe232JUf7LRyQ8vIWKpxp38HaIkOIytKLFVZavdEgnKwZY7Q8ikm5b//e6WROxSiDkvgcLejlfhA2X5U; 4:HnAKvCBdKR7Xe0EQI+lWszGwQDM7fw6hR04oy0T9BNbIAjB+Zdjmgm1ca99WoABDMGIu57LPOz15tHp0JTBpBWsprpVgD9f5r16ohqBAvD2T98BA1ZdfAbPF10sbv1STuMs1r/P+qwLSeWfQ+8c5CEi/zy6iM4xew8TgphiQdPDby7IcE284aUfVROIP45G0fh/oC2rYpd4uApdLMlO9LkOFmymdhBwf6m+3zH6SfaPha88Rai8tyId3k+hRezLBtBwvZIY+bSOV3+FDRpBw7A== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:VI1PR0501MB2048; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0501MB2048; X-Forefront-PRVS: 06607E485E X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(366004)(39860400002)(376002)(396003)(39380400002)(189003)(199004)(6116002)(81156014)(8676002)(81166006)(3846002)(6666003)(50466002)(1076002)(50226002)(16586007)(8936002)(25786009)(2906002)(478600001)(68736007)(97736004)(106356001)(21086003)(47776003)(5660300001)(69596002)(316002)(53936002)(66066001)(305945005)(36756003)(105586002)(16526019)(107886003)(51416003)(26005)(4326008)(52116002)(7696005)(7736002)(48376002)(486006)(186003)(2616005)(86362001)(55016002)(956004)(476003)(386003)(59450400001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0501MB2048; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0501MB2048; 23:HCxbIOskmJW0VaA0Ou/Xx2L2DxEu808S0jHY/iH?= =?us-ascii?Q?WTKFyCINr4MDrU3NN+XcufhkLF2g6iFW3Zs9fWwH4+VKRJ9aqt1cLMF82+VC?= =?us-ascii?Q?MtVTvEtPl8/5jKfP1ywoRyAVAp+iX5eDJA6CjPG78SKH8Lo9ZvDcpWHIr4uP?= =?us-ascii?Q?6OXhDwf0C1G+K9gun7xKDJFvHwu7GZqlOTIw+32Y6n9hRmF74P5iKcbgskXx?= =?us-ascii?Q?LDGie2BiFtns54WCKYB/1jU8GH021I7msvpURkmxj9LncV+nbt9yKIow0Ry/?= =?us-ascii?Q?ILaxdZr58LB5wI51SkAHzXBFQpwyjOq9kWnRjBCPM/WZPpc5SwZKlzVbOYCi?= =?us-ascii?Q?GrQkKnbzLhWK3kT5bwXIVe26eXM5lbrNZ4tp5gt/gFu0Ux6PtrPfGxHEy0P1?= =?us-ascii?Q?kTwFSVAoHMH8eHF2RxUtUMnNJwnHtSVBq4yg8tjUE/vTGRgI/5kV8+OINkQT?= =?us-ascii?Q?3xYWYO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TgNqcvetfY0xGqFa/NmcGnCfZg2s/4ZpawVXgESL/Kp9j59AZ8E7Yo5 X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2048; 6:w47I2ggp8UFYmyOF9z9mEUcv2KadDkrk9zR9ZQmt4FDBLls8rImLNg2BW37ypp8CxyINfE1R517/Gd/IRah7+PMV9MnirPJCHSaFF/gp8VgJBIythS7+SKACrwP1nemFTtZcv0qeKshuYfLFuRzGC5sBOBqcybsUMXK4dpLeueqA9VJbiEMgTxxmc5H6EFa4zZQp19G3/cRIk5rl+MSUPWK5NjCLS6pxTS4Ch3eYOkXt66qSeketjHwar0sWi5S5kcr2cqFhmNq4pDIId8FVtXCp8jI7EoWFdmWqp3Xykp5rmdEU0FmB/E2U2jzfzVeL8uiaYUgfktZwrlUHRNwAskakgvwgZQrarLbXrWAuv1TvwqZLxH/WS9al8YyudlZ6TNwp31yMFRIhlX947B3solTP/tqH49VrrZVOLED4Owyal9opkEKJSx7gQrssxSP/hR4uj9newOceP3sgfaVS1g==; 5:c0hd4q9k8OnLXhtzsCCAGyMeabHCS7S+aWmSvCVtawXvMIX9Z6fYXHZlCJgFd0SV3/SngpeB8dwkmfcobIj1aiRG6l7kt/6Pw7kIl84d/oYeqZGVJzFDr6fCNcOEsUttOi413Q5AoU/Y5MwNbRZ+GWBVbmzgWPOVcnMQbVvEC5M=; 24:8Hl/WmOSF6jne3DgAatVi1EMcq0mHY1c4SrTTNs3yqzz0wxic63Mm2UQc6Vwb+qx9bdcOaiuK03mwQEaC/vHE/iXEOwSThymvh8KWGL47i4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; VI1PR0501MB2048; 7:STh1snXX82nMac9DQdUbolxirlSaGP91sGiGDDZqjrHczEekAk5dHPYzw27KbmeVfFYujG/1e3CsJfHa3yV2kHCH7SOo+9s9wj02ZyTMf67fjzrDrBK/Or260JUoyqqaDNelUJAtRPY4LJKCvIsk6/AU92V2v2Sv/7OYvLg2p5OExBoJsRCh+SylCFJFd/XYftLx2R/ydj0L+SqyiguWK67CTUzFwGYrEKyjKclU087alAmAA78y2OAp6c7Xf4NZ X-MS-Office365-Filtering-Correlation-Id: 5ce92e9c-c586-4c3f-8902-08d5b082d458 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 May 2018 23:17:08.7758 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5ce92e9c-c586-4c3f-8902-08d5b082d458 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB2048 Subject: [dpdk-dev] [PATCH 0/5] net/mlx: add new Memory Region support 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: Wed, 02 May 2018 23:17:14 -0000 This is the new design of Memory Region (MR) for mlx PMD, in order to: - Accommodate the new memory hotplug model. - Support non-contiguous Mempool. This patchset should be applied after: net/mlx5: change device reference for secondary process Yongseok Koh (5): net/mlx5: trim debug messages for reference counters net/mlx5: remove Memory Region support net/mlx5: add new Memory Region support net/mlx4: remove Memory Region support net/mlx4: add new Memory Region support config/common_base | 2 - doc/guides/nics/mlx4.rst | 8 - doc/guides/nics/mlx5.rst | 8 - drivers/net/mlx4/Makefile | 4 - drivers/net/mlx4/mlx4.c | 26 + drivers/net/mlx4/mlx4.h | 45 +- drivers/net/mlx4/mlx4_mr.c | 1261 +++++++++++++++++++++++++++++++----- drivers/net/mlx4/mlx4_mr.h | 126 ++++ drivers/net/mlx4/mlx4_rxq.c | 19 +- drivers/net/mlx4/mlx4_rxtx.c | 35 +- drivers/net/mlx4/mlx4_rxtx.h | 85 ++- drivers/net/mlx4/mlx4_txq.c | 74 +-- drivers/net/mlx5/Makefile | 4 - drivers/net/mlx5/mlx5.c | 49 +- drivers/net/mlx5/mlx5.h | 32 +- drivers/net/mlx5/mlx5_defs.h | 15 +- drivers/net/mlx5/mlx5_ethdev.c | 16 + drivers/net/mlx5/mlx5_mr.c | 1326 +++++++++++++++++++++++++++++++------- drivers/net/mlx5/mlx5_mr.h | 121 ++++ drivers/net/mlx5/mlx5_rxq.c | 66 +- drivers/net/mlx5/mlx5_rxtx.c | 3 + drivers/net/mlx5/mlx5_rxtx.h | 123 ++-- drivers/net/mlx5/mlx5_rxtx_vec.h | 6 +- drivers/net/mlx5/mlx5_trigger.c | 25 +- drivers/net/mlx5/mlx5_txq.c | 49 +- 25 files changed, 2760 insertions(+), 768 deletions(-) create mode 100644 drivers/net/mlx4/mlx4_mr.h create mode 100644 drivers/net/mlx5/mlx5_mr.h -- 2.11.0