From patchwork Thu Feb 21 12:07:47 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ophir Munk X-Patchwork-Id: 1046137 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=mellanox.com Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 444vX70RC5z9s5c for ; Thu, 21 Feb 2019 23:52:55 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 90AFB3A7D; Thu, 21 Feb 2019 12:52:22 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id AF9C73841 for ; Thu, 21 Feb 2019 12:48:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id 2D6BB76F for ; Thu, 21 Feb 2019 12:48:30 +0000 (UTC) Received: from Internal Mail-Server by MTLPINE1 (envelope-from ophirmu@mellanox.com) with ESMTPS (AES256-SHA encrypted); 21 Feb 2019 14:48:28 +0200 Received: from localhost.localdomain (pegasus05.mtr.labs.mlnx [10.210.16.100]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x1LCmSkn014465; Thu, 21 Feb 2019 14:48:28 +0200 Received: from pegasus05.mtr.labs.mlnx (localhost [127.0.0.1]) by localhost.localdomain (8.14.7/8.14.7) with ESMTP id x1LC8CfS025048; Thu, 21 Feb 2019 12:08:12 GMT Received: (from root@localhost) by pegasus05.mtr.labs.mlnx (8.14.7/8.14.7/Submit) id x1LC8AS0025046; Thu, 21 Feb 2019 12:08:10 GMT From: Ophir Munk To: ovs-dev@openvswitch.org Date: Thu, 21 Feb 2019 12:07:47 +0000 Message-Id: <1550750870-25004-1-git-send-email-ophirmu@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1550506563-26782-3-git-send-email-ophirmu@mellanox.com> References: <1550506563-26782-3-git-send-email-ophirmu@mellanox.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Roni Bar Yanai , Flavio Leitner , Ilya Maximets Subject: [ovs-dev] [PATCH v2 0/3] Move offloading-code into a new file X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Hardware offloading-code is moved to a new file called netdev-rte-offloads.c. The original offloading-code is copied as is from the netdev-dpdk.c file to the new file where future offloading-code should be added as well. This series is essential for offloading-code development for the following reasons: 1. This series does not change the existing OVS code flows/logic on master branch. OVS functionality is the same before and after this series. 2. The separation is essential for new offloading-code development without interfering with the rest of OVS development. 3. Vice versa: it is essential that while developing offloading-code - to be able to frequently rebase on top of master branch. 4. The OVS-kernel is practicing the same approach. Please note the file lib/netdev-tc-offloads.c. Based on the points mentioned above we kindly ask that the series will be applied on top of the master branch. Ophir Munk (1): netdev-rte-offloads: Rename netdev_dpdk_* functions Roni Bar Yanai (2): netdev-dpdk: Expose flow creation/destruction calls netdev-dpdk: Move offloading-code to a new file lib/automake.mk | 4 +- lib/netdev-dpdk.c | 740 ++----------------------------------------- lib/netdev-dpdk.h | 14 + lib/netdev-rte-offloads.c | 776 ++++++++++++++++++++++++++++++++++++++++++++++ lib/netdev-rte-offloads.h | 39 +++ 5 files changed, 853 insertions(+), 720 deletions(-) create mode 100644 lib/netdev-rte-offloads.c create mode 100644 lib/netdev-rte-offloads.h v1: Initial release v2: Rebase on top of master branch + remove extra spaces, see https://patchwork.ozlabs.org/patch/1044187/