From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 528BD5F57 for ; Thu, 28 Jun 2018 11:04:58 +0200 (CEST) Received: by mail-wr0-f195.google.com with SMTP id b8-v6so4679743wro.6 for ; Thu, 28 Jun 2018 02:04:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=PNtjGI3BXScHRo/vLtwamthNjeoVjMqbHmBmxFwVXmw=; b=zE1xkIsqtVc7JmzAopB8wYFhL5sEnk1umrnxykWJu2sxCaqS1eA71tdHopGpkEiyq/ 3GP6cdFSDSfjzEurG0zVudnCgHdVUHQyOYiyak+wzrgNKo7StIgZmVDbLm9xyQhsKXyW 7PnwPf0DiPNNcwj2lEpLS6z+GD8YZt8AJDfYBIRGb8rhahT9V2CwyQh5hDlvpbNOmJnk A1xV+DZlTmI3gGnpGNA7ll5secd6yCVl02aHZn1ufTlYySU5go6TuMREjC85maL2sL+j jXZBov9P6+qQHY6Y/aDNVoVlDqnuzrGaWNBPwkrdso8p/pYyWzZwHzCYa7B9nqqNTQwv RmIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=PNtjGI3BXScHRo/vLtwamthNjeoVjMqbHmBmxFwVXmw=; b=TeaMKpYw2FWBj1zIdTL+OiBi5JGRGvoqYq+VXKkZG/D5aO3RUPsOoeXdUINscI4+qG LJxCy9tl2wh8AyEM7FyucvWryesTzZZ92k2SC94QC17B+wLOPkVYfL1NG2OWlwMvsows 9ysQVYj4V0jJrDssqbCiOJgh5AKUQwGL4Iuh75/V6Ov0+DWZ1wjwP0E0J9GZTtJu/U8n MDUcFJ/fnXJW+JcRM0fpiyjn1JY7bKnX0gVTF/jkNcxcQPPeXeQjM38QJsAEEzOAx+Y4 L5Vhan9qKprfFXVoRNG06yOSMUzuyyAAGle7hh/lU+DMi7Q3HzYgY041x4SX38Fo5nKy PfJA== X-Gm-Message-State: APt69E06jhQ4qQEN6ZtofdDsNmqSYJCuM8x7T77qXGjBj8G6TpMsRSPu lTdM7P9ESyIj8otv1n+PvCEG X-Google-Smtp-Source: AAOMgpeVGYE0DozB5jEHVceaDb7QwRWoxI8OUSpCmeCE1wrUXfIqpCelyZXMYCmmMkwqX18J5ppGIg== X-Received: by 2002:adf:84c5:: with SMTP id 63-v6mr8325231wrg.50.1530176698018; Thu, 28 Jun 2018 02:04:58 -0700 (PDT) Received: from laranjeiro-vm.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id g14-v6sm6717088wro.86.2018.06.28.02.04.57 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jun 2018 02:04:57 -0700 (PDT) Date: Thu, 28 Jun 2018 11:05:26 +0200 From: =?iso-8859-1?Q?N=E9lio?= Laranjeiro To: Adrien Mazarguil Cc: Shahaf Shuler , Yongseok Koh , dev@dpdk.org Message-ID: <20180628090526.7tmwlql4ersm5ab2@laranjeiro-vm.dev.6wind.com> References: <20180627173355.4718-1-adrien.mazarguil@6wind.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180627173355.4718-1-adrien.mazarguil@6wind.com> User-Agent: NeoMutt/20170113 (1.7.2) Subject: Re: [dpdk-dev] [PATCH 0/6] net/mlx5: add support for switch flow rules 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, 28 Jun 2018 09:04:58 -0000 On Wed, Jun 27, 2018 at 08:08:08PM +0200, Adrien Mazarguil wrote: > This series adds support for switch flow rules, that is, rte_flow rules > applied to mlx5 devices at the switch level. > > It allows applications to offload traffic redirection between DPDK ports in > hardware, while optionally modifying it (e.g. performing encap/decap). > > For this to work, involved DPDK ports must be part of the same switch > domain, as is the case with port representors, and the transfer attribute > must be requested on flow rules. > > Also since the mlx5 switch is controlled through Netlink instead of Verbs, > and given how tedious formatting Netlink messages is, a new dependency is > added to mlx5: libmnl. See relevant patch. > > This series depends on Nelio's mlx5 flow engine rework ("net/mlx5: flow > rework" [1][2]) which must be applied first. > > [1] https://patches.dpdk.org/project/dpdk/list/?series=268 > [2] https://mails.dpdk.org/archives/dev/2018-June/105499.html > > Adrien Mazarguil (6): > net/mlx5: lay groundwork for switch offloads > net/mlx5: add framework for switch flow rules > net/mlx5: add fate actions to switch flow rules > net/mlx5: add L2-L4 pattern items to switch flow rules > net/mlx5: add VLAN item and actions to switch flow rules > net/mlx5: add port ID pattern item to switch flow rules > > drivers/net/mlx5/Makefile | 2 + > drivers/net/mlx5/mlx5.c | 32 + > drivers/net/mlx5/mlx5.h | 28 + > drivers/net/mlx5/mlx5_flow.c | 113 ++++ > drivers/net/mlx5/mlx5_nl_flow.c | 1126 ++++++++++++++++++++++++++++++++++ > mk/rte.app.mk | 2 +- > 6 files changed, 1302 insertions(+), 1 deletion(-) > create mode 100644 drivers/net/mlx5/mlx5_nl_flow.c > > -- > 2.11.0 Acked-by: Nelio Laranjeiro -- Nélio Laranjeiro 6WIND