Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7788051ybl; Thu, 16 Jan 2020 05:41:23 -0800 (PST) X-Google-Smtp-Source: APXvYqzIk1iHBZXgI34u7bSkODf/+oFH8f5A0fH0dTBWbKExq8Lp6avuBOCNZaJF5yaoOS0N0tzA X-Received: by 2002:a9d:3b23:: with SMTP id z32mr1901888otb.159.1579182083306; Thu, 16 Jan 2020 05:41:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579182083; cv=none; d=google.com; s=arc-20160816; b=hr2/pg2bkdDeszScQHHYM8oCHcJXpaIfVEY3dq7uAgkQIbg1KG2p2Pjp7jH7COkSY3 KL4oXOSBT6hz5LHtlOMznukaZYCoHdrE+45iWpAgoyIiLxzNijhIgTEy1twFbvLoBIAq BuyhsvgMgApYksRA5eUmFXP5YGlZrCCDgoQir1CfLcaIWaJJpP2OXZbX/ELdxbLDvXDu CI8I9jgnx92EKpnTdc6PEDWjZ3dTC2uAL4oEX6e0A6naDTAKkepojRYebNz3Jwl6rCnO IdoPc0JBn9U0vWRedRBzFVyEdsutx36r+/nDL98YwWUwkC+3aPAQOOjF5M+SjuwWR+J7 eVBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:organization:from:references:cc:to:subject:reply-to :dkim-signature; bh=N3obRAIyIl+6u7JuAN54pttOMvMsTv5wq2/SDqyRJ7k=; b=NH8VtnVVcXBVeyjZh8PsxH3Vf1Xw3Yc4zqEQCpjO8NVXmFtadDLbDyBQjuDgNQ4lar y1nRgboYSD7yk4wTqTXJiPBEsyOM9DqqDAebo52duntd65Hpz0v6vRC8qB8JXahMOmD3 rs/l/3kMhdod02cxXhVxgDCe5Z2bpAIk1kraBLIXY4EOGOWOQ5I55g7K7+ZlJxccY29V sAu9us5uI6L/PxlsbcPIX0Jxr79g1JJOb+N0O9eHoTpTqF9T7PI0p9R9WicXqLSKs5Al r9T3QUKi4bKGB2vogR3uS2AMBWJWsqLyJVihJJkYz97EGKy+43TWTF/HsmpiOdPFK6IW alpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@6wind.com header.s=google header.b=DV2mwNPn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 13si10770347oiy.28.2020.01.16.05.41.11; Thu, 16 Jan 2020 05:41:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@6wind.com header.s=google header.b=DV2mwNPn; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726979AbgAPNi7 (ORCPT + 99 others); Thu, 16 Jan 2020 08:38:59 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:42348 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726566AbgAPNi7 (ORCPT ); Thu, 16 Jan 2020 08:38:59 -0500 Received: by mail-wr1-f67.google.com with SMTP id q6so19106735wro.9 for ; Thu, 16 Jan 2020 05:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind.com; s=google; h=reply-to:subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=N3obRAIyIl+6u7JuAN54pttOMvMsTv5wq2/SDqyRJ7k=; b=DV2mwNPnM1+gJ94/Hm+iBvvKHf2qavNI2HhzAlr2bd7Y8UnnZAcjXmPkOD/YOOaz0h uTz0cZWWeoMey1khdcAwZxfK78AAXAxtsUMqU1lvjSduhQrp298vB/K/trZeNfh2rQ1h dmvWs7Kyc6jPlPhu4VRTOmkOWagyYRJ0rgwnAWFnKH5JoTO4W6zuyVFicf5gcB6jr+RI LQRbjgUa10OelFpnCN42GOVGohMd7mLlc1yjM4NlpfnCWDf5i1b1CB5k7TKepXrvNLZy aXrhv+wFM9BqSTaKHOP5qGWZamAuvrXkGpVI9brhqexuvYFjqyO18qx1jIkrEwiYuriu +hsg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:reply-to:subject:to:cc:references:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=N3obRAIyIl+6u7JuAN54pttOMvMsTv5wq2/SDqyRJ7k=; b=BdSiRafbj33LS1qKW2URFk6mHw2nRoeZQ/8O+9vlT9ys/bmjzJa8/WUVGtmPG6guat OsfdeUmpFFcbdbQ7Kd8NRlJbFHEYCD4dbkS7AR65sxwg6TcZIDkOemogSmI60TdEvUdU qCOA95yOhKYJ277HFipAskjWjZCnMy8YZXdGLeweVmjj4qdHpSe4eLxCHeSp8hdrOP9p VfZd5BNecbs9yx8J71ApHgBXrKVTBhGY78pkIFNHex/WoTQEbuPqYDqrgeDIDXjfeOzL pPvFZznDer5PJ6GHVXK+vJCRJRqyA3Rok8yF3aRui1ZxjlWusNzzh/4p7+rlgaXIg840 57zQ== X-Gm-Message-State: APjAAAVjCjLNKqVa0K2IQ40YsOi00ULjRC8B/byCe1TChpPR5URgYG+9 TtjVqp1VuATJe1X0b9QiRz7dxg== X-Received: by 2002:a05:6000:1288:: with SMTP id f8mr3433770wrx.66.1579181937431; Thu, 16 Jan 2020 05:38:57 -0800 (PST) Received: from ?IPv6:2a01:e0a:410:bb00:ed9f:e0c6:a41a:de2f? ([2a01:e0a:410:bb00:ed9f:e0c6:a41a:de2f]) by smtp.gmail.com with ESMTPSA id u18sm28899430wrt.26.2020.01.16.05.38.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jan 2020 05:38:56 -0800 (PST) Reply-To: nicolas.dichtel@6wind.com Subject: Re: [PATCH net-next v3] openvswitch: add TTL decrement action To: Pravin Shelar , Matteo Croce Cc: Linux Kernel Network Developers , ovs dev , LKML , "David S. Miller" , Bindiya Kurle , Simon Horman , Ben Pfaff , Nikolay Aleksandrov References: <20200115164030.56045-1-mcroce@redhat.com> From: Nicolas Dichtel Organization: 6WIND Message-ID: Date: Thu, 16 Jan 2020 14:38:55 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Le 16/01/2020 à 08:21, Pravin Shelar a écrit : > On Wed, Jan 15, 2020 at 8:40 AM Matteo Croce wrote: [snip] >> @@ -1050,4 +1051,5 @@ struct ovs_zone_limit { >> __u32 count; >> }; >> >> +#define OVS_DEC_TTL_ATTR_EXEC 0 > > I am not sure if we need this, But if you want the nested attribute > then lets define enum with this single attribute and have actions as > part of its data. This would be optional argument, so userspace can > skip it, and in that case datapath can drop the packet. And note that 0 is a reserved value and should not be used. Look at other attributes. Regards, Nicolas