Received: by 10.223.176.46 with SMTP id f43csp2307697wra; Thu, 25 Jan 2018 07:59:06 -0800 (PST) X-Google-Smtp-Source: AH8x227ptg8pkc3iWgKUsTps0TUVZA3aV+LXL/LC8hk81a4ct7bPgODEztsPQoLdBloop84SzJx8 X-Received: by 10.101.73.203 with SMTP id t11mr13843611pgs.48.1516895945876; Thu, 25 Jan 2018 07:59:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516895945; cv=none; d=google.com; s=arc-20160816; b=QkOITmsErBE0TzU8/M+kPlDMSxc4LchH50pTIf8MaLTv211vVBf4wtkX33fEMWSz8S 7zXP+FM+hSDQoptGG9qv4wV8m5SbInczjl7aokgXJjmigZHYukzm4f4UyK3viubsIGDL Z/ZgwVqdEoSk1QUwP2M4eQ37xAJgJ6HlGnfcOkY8CBtPZXVsEWtL11PsATNcmSoKZ/qs +eKXH14pPjk89z3BAquWwoK6fwYxx5HjdNzsxQb61AxNxgTFpdKpA/N6yQHSF2B990h6 NJk7hN+sUES8ALHEvBvsmvmVeHMXCq5B3nLDcKwUgPn5YqB+n/5k8qNrdOL2yBXSTdmA NsUg== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=zGA4sUjZGLosQGMvhqxRNPVCahe251zNn7N4Mk/2gKs=; b=OgPTUgJawxqF00ka78GhoNPlXRy9RRuPzSF6KeZ0gu2GXCijn0M2TaGCUlRHpK5CDY R7zHW7JsLUFSR/+ySXrr7LBh+474yDwtJSpY0gIygpUUUwaFWMi0oNuAVIq4iFN8F3N6 SSm/Zc474k0oH1ljl4vSxRafWaGRyXIkof4NngucG4d8mRQWJUcWyIaycbiAQnxHsNs6 NZk3F6uEg2QS3kB2Ct3qMtE9eWWahiZccFMcULbWBedMMtoSlpbO3cwbNsqZlDYdh1vp EbxHsxcIqhwjuLDLW+RgX2CHWlROBMygGNAqJNFBcAHnPg7hxGePHQ38EqUM9PlsRbsQ wW5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gERac+2N; 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=NONE 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 q90si4819009pfa.91.2018.01.25.07.58.51; Thu, 25 Jan 2018 07:59:05 -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=@gmail.com header.s=20161025 header.b=gERac+2N; 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=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751390AbeAYP5B (ORCPT + 99 others); Thu, 25 Jan 2018 10:57:01 -0500 Received: from mail-io0-f193.google.com ([209.85.223.193]:34267 "EHLO mail-io0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbeAYP47 (ORCPT ); Thu, 25 Jan 2018 10:56:59 -0500 Received: by mail-io0-f193.google.com with SMTP id c17so9123908iod.1; Thu, 25 Jan 2018 07:56:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=zGA4sUjZGLosQGMvhqxRNPVCahe251zNn7N4Mk/2gKs=; b=gERac+2N9umTrkQ43VVwgYZPwSqZBJO9WR7TiijhA7Q2vFoXalivuG5WTmCbNqph+S 6RMBJgBcsOmLiYUNDJfmPKneCFhAzMs2b6rQQpTrX+wkC8x2sPXJgMk5VR/dvkC8qlFu IzEm874r05IXuHr45OpdvEWBoziJTjaI8RvAuL6Sna9WfPPmXsfQQ2xpiQ4OlGrdglme aVgo+0oD/A2qmFQlX2FzAtmgkMFuVMiJugP/NOw5k83XQ6IAwWoy3evygmlW48ldHBNQ g3DU33NdNpHwBv2RSxINlEDZioTp/nHLmaAw6ml1K9liGxTOXvjDojXXHvP0iTexq42K dQsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=zGA4sUjZGLosQGMvhqxRNPVCahe251zNn7N4Mk/2gKs=; b=a+Nnl/L09LllczXP6y+NskLq14Ap+e4/jvPN/KxQbx+9tGn1RZtjy2o6quBLkTL2Bt EZvP8FDI/yyQHfOQVP175JPIMKRpdlTMdlrCXoL6RAy21vHbxzX6SKxlon7md9cXlWlG gZGOkdE9FX3xdus4ccDYH9H+tIXVYcMoOORg9JqFLaXkNykHEgz7TEpxl9it/qkbam1e JQUnx6CVUdxWgI2gFlG0ADNS94xBMe47Rb6hnSnGZStLsC+5pcRFWCpPjZA/EgRNiTfo khg+bNDko0DFYJvGo/JgIscl6FcYtK3Rn3/WfuQTRj3v07Nyg9uJd0e1kGXEkjWlsoPV N1/w== X-Gm-Message-State: AKwxytcwM+gtmy6cDpW3KN6vb146335AnWhwib0zDfW2k7je/avSGfWF EK27n31a5JD4iLRqhH1Jf63vETApHcDScu6hZG8= X-Received: by 10.107.11.105 with SMTP id v102mr6714623ioi.272.1516895818987; Thu, 25 Jan 2018 07:56:58 -0800 (PST) MIME-Version: 1.0 Received: by 10.107.174.130 with HTTP; Thu, 25 Jan 2018 07:56:18 -0800 (PST) In-Reply-To: <20180125155029.GG17457@devbig577.frc2.facebook.com> References: <1516894728-2061-1-git-send-email-laoar.shao@gmail.com> <20180125155029.GG17457@devbig577.frc2.facebook.com> From: Yafang Shao Date: Thu, 25 Jan 2018 23:56:18 +0800 Message-ID: Subject: Re: [PATCH bpf-next] cgroup: support attaching eBPF programs to net_prio cgroup To: Tejun Heo Cc: Roman Gushchin , David Miller , longman@redhat.com, lizefan@huawei.com, Johannes Weiner , Cgroups , LKML 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 Thu, Jan 25, 2018 at 11:50 PM, Tejun Heo wrote: > On Thu, Jan 25, 2018 at 11:38:48PM +0800, Yafang Shao wrote: >> If net_prio is used, we could also use eBPF programs to attach it, >> because the net_prio cgroup could be got with prioidx in struct >> sock_cgroup_data. >> Hence it should not only be limited to cgroup2. > > I really don't wanna do this. This comes with all sorts of reverse > lookup and naming issues. In addition, cgroup1 and 2 aren't mutually > exclusive. If the use case is on cgroup1 and wants to use cgroup bpf > programs, just replicate the cgroup2 hierarchy for bpf. Hierarchy > replication across different controllers is how most use cgroup1 after > all. With recent versions of systemd which defaults to using cgroup2 > for process management, you get the replication for free too. > Hi Tejun, I don't understand what do you mean Hierarchy replication. Could you pls. show me some examples ? Thanks Yafang