From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A482EA0353; Tue, 19 Nov 2019 12:33:47 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 55DA8CF3; Tue, 19 Nov 2019 12:33:46 +0100 (CET) Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by dpdk.org (Postfix) with ESMTP id A81EB23D for ; Tue, 19 Nov 2019 12:33:44 +0100 (CET) Received: by mail-pf1-f193.google.com with SMTP id x28so12044096pfo.6 for ; Tue, 19 Nov 2019 03:33:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=occ/c/bw3FVPSDlseJDpOLN6s/DAOTDsz1/0b2zgETI=; b=Es039QnpOIVdJYDHp590P73j/XyfuI+3MTMCrPx2y4/OuHVTcxQPhphyO56bgIo/3R IGHImnZ/s3nhnesXMxJhiMdHwObSsul0q+9fSP6xsslhv15ZecHmUERvELzC3ogJuxXL L9B0IkcnDwY1MCTGREjLpA46YRUe6YJZXKU5aEplTpD6OYtCEzgCMm0iceRFfnoxyMHL OA4lCtOAl+z1ezxPxZ1VnRMJV3iR/pV+VzQX+bEOAUxYdZqr6y3J2eX6ilBr+wUmoEtX 7pQxU22irFNLAi4RrsVKyVby5EbDueZHvDVB05AB5PbnVHDhyrRQxV7RnIjwVR3fpcH5 vwiw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=occ/c/bw3FVPSDlseJDpOLN6s/DAOTDsz1/0b2zgETI=; b=KuNb+WEYyv/vDmlLTS/FX7ZstWcHOxuw6lmGe0Wbolp0Mc6lq1s3ChaY7tYAnGkzHT rRRFsJE0w4PHqq15JyppAv6jYndEOgDmBm7K3+DdPnWN56rNLE9tLaI2UszNACUdvO86 Ysl8R7LX178ijbzUKWJAzoyyYQ5CaoVIfo+ak5uyd1bofx220KZ/ghv6Kkle4cTj+fqY hNZYl4QLjSnK95hWiAZPWc67Aeq6glGJdRPcpkDxxVn4capKQapOc+Xk1DFMf7QI00SJ vP14FfPddd28p05R3pbReLAsbMdNXoecj3IR6MXP43N5+onpHaElSg8tJWBt4cN04uU2 gYrQ== X-Gm-Message-State: APjAAAW+icTvKFtF8Pc59UXypA+1cPBb72psfg9GBHS/xBoRsGvxAy5n q8WDsTcFoOknCcFvUhousBE= X-Google-Smtp-Source: APXvYqwXmf7SLlWHpe0bv5N9fXOojua6SVTxV/pjfv1UH+g0DtAfa/UT/haWhivXMO1oXQHgTF8RHA== X-Received: by 2002:a62:7a85:: with SMTP id v127mr5305775pfc.141.1574163223882; Tue, 19 Nov 2019 03:33:43 -0800 (PST) Received: from local.opencloud.tech.localdomain ([203.100.54.194]) by smtp.gmail.com with ESMTPSA id c1sm3396652pjc.23.2019.11.19.03.33.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Nov 2019 03:33:43 -0800 (PST) From: xiangxia.m.yue@gmail.com To: matan@mellanox.com, shahafs@mellanox.com, viacheslavo@mellanox.com Cc: dev@dpdk.org, Tonghao Zhang Date: Tue, 19 Nov 2019 19:33:32 +0800 Message-Id: <1574163212-28868-1-git-send-email-xiangxia.m.yue@gmail.com> X-Mailer: git-send-email 1.8.3.1 Subject: [dpdk-dev] [PATCH dpdk-dev] net/mlx5: allow to match TTL option 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Tonghao Zhang For example, Open vSwitch may offload tunnel flows to hardware and the tunnel TTL option is 64 and its mask is 0xff as default. Allow to match IPv4 TTL option. Signed-off-by: Tonghao Zhang --- drivers/net/mlx5/mlx5_flow.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/mlx5/mlx5_flow.c b/drivers/net/mlx5/mlx5_flow.c index d677de817ded..b9bb3feefbc8 100644 --- a/drivers/net/mlx5/mlx5_flow.c +++ b/drivers/net/mlx5/mlx5_flow.c @@ -1523,6 +1523,7 @@ mlx5_flow_validate_item_ipv4(const struct rte_flow_item *item, .src_addr = RTE_BE32(0xffffffff), .dst_addr = RTE_BE32(0xffffffff), .type_of_service = 0xff, + .time_to_live = 0xff, .next_proto_id = 0xff, }, }; -- 2.23.0