From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.bufferbloat.net (Postfix) with ESMTPS id 7202D3BA8E for ; Wed, 30 May 2018 15:14:13 -0400 (EDT) Received: by mail-lf0-x232.google.com with SMTP id v135-v6so5984925lfa.9 for ; Wed, 30 May 2018 12:14:13 -0700 (PDT) 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 :content-transfer-encoding; bh=LHrhsByjMSivMl/kVa3DUYJv8eHbDjZ0776Un59fQMM=; b=ZiHfNKRAZ+G7rXiXKm+OLPifyLCcVH1m71uCi/E8UwJmB04Sy6qVCEAHi2whWt/Wyq +NubqQzV3FoUjZvF5bhDOJZ7Ls5ypDYYt1wDQIQesXwpe7u3eKW0dglE22s9rMnmjNcE bknAl4w9DmRVck5M5b9D+tRZVoZ1iSOilNNz3imZssokHI+WqVdn+rdde6sGCgwP+d7E WYG2aSjsDFcBHtttjjc4rc+jaGir+DzdUMlxoPoa3kbwkSF/UC97lkGBgas4GpIDW4vn 021JAbCAtdWNEC9HZRKdtE7+id0TQUMA+FBCOBZ6h9yrJ8Xva3v7r2CnsKK06PkwmZEm +5Nw== 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:content-transfer-encoding; bh=LHrhsByjMSivMl/kVa3DUYJv8eHbDjZ0776Un59fQMM=; b=PHdF+QL3HWgndUZMulcLbIu2SaWL5oxOxbjGS99sOyLPEIYeMSbQ5wHQ8PPSIrldWv IYdEUuX/P3EILp8gBzemnNXSb3jFzF8suFgPw/qlDK+LgFEuep8IZiU/BORHRrKNZ15S 6arj5Kq3QJaoK2vynNkVE3FfkQL6l7r/f/Q2MBpa6Bc5V0H8MM5W5mYoNVv9i333wa/s Ls2PF4ve2FPCpbSIpIJ71Gtb1S8JvhL9/KA8zKR6pgKE7WpXXX1Tv+wWs9ZthC2zJVqb XMwAQXDsKvOQe90PcjgbQE1+MRr2zN5xwoNnj5Y5XGb6C/PbA42pb6vRWMTzXhQxMoYf 6n7Q== X-Gm-Message-State: ALKqPwegrARQeBo/xZbTJDn1qR/0BxOg6qNoXkq4nSCx/P/QxMsyhoWo u5YgQVg8u5xIwwdlbGHEd+GvQIcfQMYlszg6Yhg= X-Google-Smtp-Source: ADUXVKKGBvyIqIEH8Q0TagKCfaGi5DkdTMfkSfD3RXgZaKVOsxLeDToQ0nTH9ZlN+mUjdli7nTbtK6oGKe1nDL6yUtw= X-Received: by 2002:a2e:8794:: with SMTP id n20-v6mr3151347lji.38.1527707652217; Wed, 30 May 2018 12:14:12 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:9155:0:0:0:0:0 with HTTP; Wed, 30 May 2018 12:14:11 -0700 (PDT) In-Reply-To: <87muwyy34k.fsf@toke.dk> References: <87muwyy34k.fsf@toke.dk> From: Georgios Amanakis Date: Wed, 30 May 2018 15:14:11 -0400 Message-ID: To: =?UTF-8?B?VG9rZSBIw7hpbGFuZC1Kw7hyZ2Vuc2Vu?= , Cake List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Subject: Re: [Cake] Does the latest cake support "tc filter"? X-BeenThere: cake@lists.bufferbloat.net X-Mailman-Version: 2.1.20 Precedence: list List-Id: Cake - FQ_codel the next generation List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 May 2018 19:14:13 -0000 > Yes, the version submitted to upstream supports this. You can override > which tin packets goes in by setting skb->priority from a filter or > application (the major number needs to be set to the qdisc ID, and the > minor number becomes the tin to queue packets in). Toke could you give an example how to do this? I am trying to put all traffic into tin 0: #tc qdisc add dev enp1s0 root handle 8001 cake diffserv3 bandwidth 2mbit #tc filter add dev enp1s0 parent 8001: protocol all \ u32 match u32 0 0 \ action skbedit priority 8001:1 However as soon as the second command is executed all traffic drops, and it only resumes once I remove the filter. What am I doing wrong? Thank you, George On Thu, May 17, 2018 at 6:42 AM, Toke H=C3=B8iland-J=C3=B8rgensen wrote: > Fushan Wen writes: > >> Hello developers, >> I've seen the mail in the netdev mailing list, saying "other tc >> filters supported". So can I use "tc filter" to attach specified >> traffic to a specified tin without DSCP marks? It's helpful when >> dealing with ingress traffic where iptables DSCP mark won't work. > > Yes, the version submitted to upstream supports this. You can override > which tin packets goes in by setting skb->priority from a filter or > application (the major number needs to be set to the qdisc ID, and the > minor number becomes the tin to queue packets in). > > However, these changes have not been backported, so they are not > available in the cobalt branch. You can pull them from the upstream-4.18 > branch instead. That should build against a current net-next tree, and > possibly a bit older. Alternatively, you can pull the current patches > from patchwork and use those. Or wait for a backport after we're done > with the upstream submission :) > > -Toke > _______________________________________________ > Cake mailing list > Cake@lists.bufferbloat.net > https://lists.bufferbloat.net/listinfo/cake