Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B25E2C3276C for ; Thu, 2 Jan 2020 23:40:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 83F302085B for ; Thu, 2 Jan 2020 23:40:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726640AbgABXkf (ORCPT ); Thu, 2 Jan 2020 18:40:35 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:52284 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726219AbgABXkf (ORCPT ); Thu, 2 Jan 2020 18:40:35 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:1c3::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id CB7FE156EF06E; Thu, 2 Jan 2020 15:40:34 -0800 (PST) Date: Thu, 02 Jan 2020 15:40:34 -0800 (PST) Message-Id: <20200102.154034.2123269473192368005.davem@davemloft.net> To: idosch@idosch.org Cc: netdev@vger.kernel.org, jiri@mellanox.com, petrm@mellanox.com, mlxsw@mellanox.com, idosch@mellanox.com Subject: Re: [PATCH net-next 0/3] mlxsw: Allow setting default port priority From: David Miller In-Reply-To: <20191229114829.61803-1-idosch@idosch.org> References: <20191229114829.61803-1-idosch@idosch.org> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 02 Jan 2020 15:40:35 -0800 (PST) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Ido Schimmel Date: Sun, 29 Dec 2019 13:48:26 +0200 > From: Ido Schimmel > > Petr says: > > When LLDP APP TLV selector 1 (EtherType) is used with PID of 0, the > corresponding entry specifies "default application priority [...] when > application priority is not otherwise specified." > > mlxsw currently supports this type of APP entry, but uses it only as a > fallback for unspecified DSCP rules. However non-IP traffic is prioritized > according to port-default priority, not according to the DSCP-to-prio > tables, and thus it's currently not possible to prioritize such traffic > correctly. > > This patchset extends the use of the abovementioned APP entry to also set > default port priority (in patches #1 and #2) and then (in patch #3) adds a > selftest. Series applied, thanks Ido. Always nice to see those test cases.