[0/5] net/mlx5: add inner tunnel items support on E-Switch
Message ID | 1545924885-6215-1-git-send-email-viacheslavo@mellanox.com (mailing list archive) |
---|---|
Headers |
Return-Path: <dev-bounces@dpdk.org> X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DC68B1B11F; Thu, 27 Dec 2018 16:35:07 +0100 (CET) Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by dpdk.org (Postfix) with ESMTP id 384081B0FB for <dev@dpdk.org>; Thu, 27 Dec 2018 16:35:01 +0100 (CET) Received: from Internal Mail-Server by MTLPINE1 (envelope-from viacheslavo@mellanox.com) with ESMTPS (AES256-SHA encrypted); 27 Dec 2018 17:34:56 +0200 Received: from pegasus12.mtr.labs.mlnx. (pegasus12.mtr.labs.mlnx [10.210.17.40]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id wBRFYuUx005767; Thu, 27 Dec 2018 17:34:56 +0200 From: Viacheslav Ovsiienko <viacheslavo@mellanox.com> To: shahafs@mellanox.com Cc: dev@dpdk.org, stable@dpdk.org Date: Thu, 27 Dec 2018 15:34:40 +0000 Message-Id: <1545924885-6215-1-git-send-email-viacheslavo@mellanox.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH 0/5] net/mlx5: add inner tunnel items support on E-Switch X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions <dev.dpdk.org> List-Unsubscribe: <https://mails.dpdk.org/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://mails.dpdk.org/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <https://mails.dpdk.org/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Message
Slava Ovsiienko
Dec. 27, 2018, 3:34 p.m. UTC
The generic Flow rule for tunnels looks like:
flow create <attributes> <port> \
<tunnel outer items pattern> \
<tunnel vni item> \
<tunnel inner items pattern>
Current design supports only L2 addresses as inner pattern
items. This patchset adds support for L3 (IPv4/IPv6) addresses
and L4 (TCP/UDP) ports items as inner tunnel parameters.
Also this patchset adds support for inner and outer ethernet
types for the E-Switch Flows with tunnels. Inner and outer ethernet
type match can be specified with ethernet items, vlan items, or
implicitly deduced from IP address items. The tcm_info field
in Netlink message tcm structure is filled always with outer
protocol.
Cc: stable@dpdk.org
Signed-off-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Viacheslav Ovsiienko (5):
net/mlx5: remove checks for outer tunnel items on E-Switch
net/mlx5: add tunnel inner items validation on E-Switch
net/mlx5: add tunnel inner items support on E-Switch
net/mlx5: add ethernet type validation on E-Switch
net/mlx5: add ethernet type support for tunnels on E-Switch
drivers/net/mlx5/mlx5_flow_tcf.c | 690 ++++++++++++++++++++++-----------------
1 file changed, 399 insertions(+), 291 deletions(-)