From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bartek Kois Subject: Problem with queuing vlan tagged packets after migration from 3.16.0 to 4.9.0 Date: Sat, 29 Dec 2018 13:52:23 +0100 Message-ID: <9f72e7e8-34a5-7bdb-7719-c4a5d35e9fd8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit To: netdev@vger.kernel.org Return-path: Received: from mail-lj1-f179.google.com ([209.85.208.179]:41084 "EHLO mail-lj1-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725868AbeL2Mw1 (ORCPT ); Sat, 29 Dec 2018 07:52:27 -0500 Received: by mail-lj1-f179.google.com with SMTP id k15-v6so20655576ljc.8 for ; Sat, 29 Dec 2018 04:52:25 -0800 (PST) Received: from [10.0.1.21] ([91.231.125.82]) by smtp.gmail.com with ESMTPSA id e19-v6sm9144454ljf.67.2018.12.29.04.52.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Dec 2018 04:52:24 -0800 (PST) Content-Language: pl Sender: netdev-owner@vger.kernel.org List-ID: Hi, I`ve got problem while queuing with HFSC vlan tagged packets after migrating my tc scripts from Debian 8.2 (3.16.0-4-amd64) to Debian 9.5 (4.9.0-6-amd64). tc filters added to eth1 do not classify correctly src and dst ip addresses anymore if they are encapsulated with vlan tag which wasn`t a problem previously. It works fine if I run them without vlan tagging oraz if the root device is a vlan (eg. tc filter add dev eth1.20). Could you please help me find out what has changed in kernel between those two versions and what is walkaround for that problem? Example of my classification filters: tc filter add dev eth1 parent 1:0 prio 4 protocol ip u32 tc filter add dev eth1 parent 1:0 prio 4 handle ${NETWORK_GROUP_HEX}: protocol ip u32 divisor 256 tc filter add dev eth1 protocol ip parent 1:0 prio 4 u32 ht 800:: match ip dst ${NETWORK_ADDRESS}/24 hashkey mask 0x000000ff at 16 link ${NETWORK_GROUP_HEX}: tc filter add dev eth1 parent 1:0 protocol ip prio 4 u32 ht ${NETWORK_GROUP_HEX}:0x${ADDR_Q4_HEX} match ip dst $ADDR classid 1:${MARK_NORMAL} Best regards Bartek Kois