From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hadar Hen Zion Subject: flow_dissector: Get vlan priority in addition to vlan id Date: Sun, 7 Aug 2016 10:43:25 +0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Cc: Amir Vadai , Or Gerlitz , netdev To: tom@herbertland.com, Jiri Pirko Return-path: Received: from mail-oi0-f65.google.com ([209.85.218.65]:34350 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297AbcHGHn0 (ORCPT ); Sun, 7 Aug 2016 03:43:26 -0400 Received: by mail-oi0-f65.google.com with SMTP id a135so14727421oii.1 for ; Sun, 07 Aug 2016 00:43:26 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: Hi Tom and Jiri, I would like to add vlan priority to __skb_flow_dissect. In the current vlan tag implementation there isn't any room left to vlan priority next to the vlan id. struct flow_dissector_key_tags { u32 vlan_id:12, flow_label:20; }; According to the discussion between you two [1], I'll be happy to get your advice about what is the best way of adding vlan priority? My suggestion is to add new vlan tag struct, it will make the code cleaner and since we have to add 3 bits to vlan priority any way it won't add unnecessary physical address holes. struct flow_dissector_key_tags { u32 flow_label:20; }; struct flow_dissector_key_vlan { u16 vlan_id:12, vlan_priority:3; }; Thanks, Hadar [1] - http://marc.info/?l=linux-netdev&m=143232557025994&w=2