From patchwork Wed May 8 07:39:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eli Britstein X-Patchwork-Id: 1096794 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=mellanox.com Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 44zT2F1fVCz9s4V for ; Wed, 8 May 2019 17:41:56 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 89380FE1; Wed, 8 May 2019 07:41:53 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 04C7BEE8 for ; Wed, 8 May 2019 07:41:53 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mellanox.co.il (mail-il-dmz.mellanox.com [193.47.165.129]) by smtp1.linuxfoundation.org (Postfix) with ESMTP id E81521FB for ; Wed, 8 May 2019 07:41:51 +0000 (UTC) Received: from Internal Mail-Server by MTLPINE2 (envelope-from elibr@mellanox.com) with ESMTPS (AES256-SHA encrypted); 8 May 2019 10:40:08 +0300 Received: from dev-r-vrt-214.mtr.labs.mlnx. (dev-r-vrt-214.mtr.labs.mlnx [10.212.214.1]) by labmailer.mlnx (8.13.8/8.13.8) with ESMTP id x487e8m8017243; Wed, 8 May 2019 10:40:08 +0300 From: Eli Britstein To: dev@openvswitch.org, Ben Pfaff Date: Wed, 8 May 2019 07:39:57 +0000 Message-Id: <20190508073959.2364-1-elibr@mellanox.com> X-Mailer: git-send-email 2.17.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Cc: Eli Britstein Subject: [ovs-dev] [PATCH 0/2] Add include mode to priority tags port option X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org Setting priority-tags to "true" Open vSwitch still omits the 802.1Q header on output if both the VLAN ID and priority would be zero. Add an option to keep the 8021Q header for such frames as well. Patch #1: change boolean to enum as a pre-step to adding addition option Patch #2: add "include" mode for priority-tags configuration Eli Britstein (2): ofproto-dpif-xlate: Change priority tags from boolean to enum ofproto-dpif-xlate: Add include mode to priority tags ofproto/ofproto-dpif-xlate.c | 20 ++++++++++++-------- ofproto/ofproto-dpif-xlate.h | 2 +- ofproto/ofproto-dpif.c | 3 ++- ofproto/ofproto.h | 11 ++++++++++- tests/ofproto-dpif.at | 6 +++--- vswitchd/bridge.c | 10 ++++++++-- vswitchd/vswitch.xml | 9 +++++---- 7 files changed, 41 insertions(+), 20 deletions(-)