Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5430964yba; Tue, 30 Apr 2019 14:50:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5EN0zb63jDF3EGp6qYCk+zoRqmGgKZQjPGZvsgSITyM/JV189HKftD3ICfHQgHMKm/Fxj X-Received: by 2002:a63:360c:: with SMTP id d12mr68454518pga.404.1556661000854; Tue, 30 Apr 2019 14:50:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556661000; cv=none; d=google.com; s=arc-20160816; b=LDo++Yx6ZcnHe4AJSX9+KdSTRFjZQU+UrYpJcFBHPebperzRWptZ+48gC/IXhVUjFc Hu6gAII9UFP83I9+XpzdLlG8/OpYdS5E4uyw9epf4R5BO8Nk6jv+Mn6wDidFGAMXMnDH TtlOOlGT5IwU3dAYujMYCf6ALjZraBXuNNtvXkSZHQ1/ujl/3LKPZA1OvO6bmi97sg0Z 4fs/DpyvKLy7Gh6nUU1IdEj/s7if9JB4L1j0K6+ldbNKV7FETrRRaze2FgtAwo+FxQJ3 gmgpCfOBaZ1//dQUsvygcLMhFI6MBBup4H0ge0eNgb0vihcXtRC5vq4nZiEskg/LCZll osVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UQ0WAt2+S5P4l4hZmXG44smnn0ln0il2ppIEd919he0=; b=q2RdVDjTNv48qVQXcoLVTJwAOg3l9gYBp32dTRqhMeCAPZ5PnyJLAQhstl6aRl8EyV ekviikeG6M1DZeB6yJ832E8mrjZkSoID7xL96O0usRnvk69tkvM0B2BWptuDPGvEqUku RQxnF8voNFFB96T4BQUrVyILLIRGkT7jaEDP3kY9Pb3h1pyIavSYiu8sErTfnEyjAmam 420MSQJcCCEyC+dY9qtOibLRQ3OaOquLiFSvmH58vCBLfH0Bip6upBocJ3kY7OXXWQzz 51ACybUbOjsV8oY6N0AzR3wfyTcZTcCrT51Dx1pVWuq1aLubjnxEH8WFArT2BKfprCL3 DbQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cFDHUfLc; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d31si3480260pla.89.2019.04.30.14.49.44; Tue, 30 Apr 2019 14:50:00 -0700 (PDT) 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=@gmail.com header.s=20161025 header.b=cFDHUfLc; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727178AbfD3Vrp (ORCPT + 99 others); Tue, 30 Apr 2019 17:47:45 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:46481 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726048AbfD3Vro (ORCPT ); Tue, 30 Apr 2019 17:47:44 -0400 Received: by mail-pf1-f193.google.com with SMTP id j11so7703589pff.13; Tue, 30 Apr 2019 14:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UQ0WAt2+S5P4l4hZmXG44smnn0ln0il2ppIEd919he0=; b=cFDHUfLc6/URlKC4986lLy3VOh0DkMANDHhCM013EXoI3xF28VWgE85H8IL/gQLGYt 89BIOeOGLsFp47LS9BQX3CPOQuHSETcgZpBnZNT1xDFdjCfTP96v2v56+GEOtS9wy3GR K41p5QIntznSgA+KYcfB47vHfKb60O+WsF28eQjS/1yapSi8K8SlRMnrjvcyayn0xSub gzL6BgKVMi+Sgl+pu0fBHfeearI8/U97rZgnEOivc6Mw68ZqfgjOFLhEBPhNajnENeat AHNaqnTe0Oewt8piQKnoMiB9CYTK4ZPVPcvxIwvU+GHzhZmG7OJQPf/T0cnp4iXlodcT 3I2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UQ0WAt2+S5P4l4hZmXG44smnn0ln0il2ppIEd919he0=; b=E2t0PFTXLA50spCoRGIe1JkyY5URjXK+XoGUFqfWRnHA2iCU7I9FCgeZaNXAQkpRN2 MK7nL8DBpKaS7fuYB5T99o/93cakpXerUJ0ONCGApR1I6aeRJPtTjkaXQUtwfr9oabUR f4AeEEmdqx+sFksJz22h4+6MdlZl/H7cNWgGkNL2MuJYF+tynnXw5WwBhPRzkxH9qdBh fsRtp+GqXFMCk28pDLWXo/HIGDTh4QpKIfqy72vWiiIhA5uRLm8kwBDbYaXOkE9O+lCK Gp5Gx1X130dFPqCwUW3Rjh6Vd94zD/iLT7KraJhwYdWChAgxBbSy8fX4HYbM4YjPcbog JWSA== X-Gm-Message-State: APjAAAXBAdXcFFQTtR++sW1hV3aISbUzdpaqjq8NA1UoGaKBuV6QeuQW kzXX/IpbDUBCZi1GcxrPGW9u9jCrXca8j4FMjG0= X-Received: by 2002:a63:1a42:: with SMTP id a2mr27105398pgm.358.1556660864207; Tue, 30 Apr 2019 14:47:44 -0700 (PDT) MIME-Version: 1.0 References: <20190427130739.44614-1-ldir@darbyshire-bryant.me.uk> In-Reply-To: <20190427130739.44614-1-ldir@darbyshire-bryant.me.uk> From: Cong Wang Date: Tue, 30 Apr 2019 14:47:32 -0700 Message-ID: Subject: Re: [PATCH net-next] net: sched: Introduce act_ctinfo action To: "Kevin 'ldir' Darbyshire-Bryant" Cc: Jamal Hadi Salim , Jiri Pirko , "David S. Miller" , Shuah Khan , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "linux-kselftest@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 27, 2019 at 6:08 AM Kevin 'ldir' Darbyshire-Bryant wrote: > > ctinfo is a new tc filter action module. It is designed to restore DSCPs > stored in conntrack marks into the ipv4/v6 diffserv field. I think we can retrieve any information from conntrack with such a general name, including skb mark. So, as you already pick the name ctinfo, please make it general rather than just DSCP. You can add skb mark into your ctinfo too so that act_connmark can be just replaced. Your patch looks fine from a quick galance, please make sure you run checkpatch.pl to keep your coding style aligned to Linux kernel's, at least I don't think we accept C++ style comments. Thanks.