From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jiri Pirko Subject: [patch net-next 0/5] mlxsw: Offload PRIO qdisc Date: Thu, 11 Jan 2018 11:20:57 +0100 Message-ID: <20180111102102.4310-1-jiri@resnulli.us> Cc: nogahf@mellanox.com, yuvalm@mellanox.com, davem@davemloft.net, idosch@mellanox.com, mlxsw@mellanox.com, jhs@mojatatu.com, xiyou.wangcong@gmail.com To: netdev@vger.kernel.org Return-path: Received: from mail-wr0-f196.google.com ([209.85.128.196]:38847 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754795AbeAKKVE (ORCPT ); Thu, 11 Jan 2018 05:21:04 -0500 Received: by mail-wr0-f196.google.com with SMTP id 60so1684945wrl.5 for ; Thu, 11 Jan 2018 02:21:03 -0800 (PST) Sender: netdev-owner@vger.kernel.org List-ID: From: Jiri Pirko Add an offload support for PRIO qdisc for mlxsw driver. PRIO qdisc is being offloaded by using ndo_setup_tc. It has three commands, to set or tune the qdisc, to remove it and to get its stats. Like RED offloading, offloading this qdisc is not enforced on the driver and determining its offload state is done in the dump action, when the stats are being updated. In the driver, offloading of PRIO is supported as root qdisc only. It supports only priorities 0-7 (the range that is used by the current static mapping of DSCP to skb prio and by 1:1 PCP values mapping) and up to 8 bands. Patches 1-2 offload DSCP to priority mapping in the mlxsw_sp driver. Patch 3 adds offload support for PRIO qdisc. Patches 4-5 Add PRIO offload support in the mlxsw_sp driver. Nogah Frankel (3): net: sch: prio: Add offload ability to PRIO qdisc mlxsw: spectrum: qdiscs: Support PRIO qdisc offload mlxsw: spectrum: qdiscs: Support stats for PRIO qdisc Yuval Mintz (2): mlxsw: reg: add rdpm register mlxsw: spectrum_router: Configure default routing priority drivers/net/ethernet/mellanox/mlxsw/item.h | 2 +- drivers/net/ethernet/mellanox/mlxsw/reg.h | 37 +++++ drivers/net/ethernet/mellanox/mlxsw/spectrum.c | 2 + drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 2 + .../net/ethernet/mellanox/mlxsw/spectrum_qdisc.c | 174 +++++++++++++++++++++ .../net/ethernet/mellanox/mlxsw/spectrum_router.c | 24 +++ include/linux/netdevice.h | 1 + include/net/pkt_cls.h | 25 +++ net/sched/sch_prio.c | 59 +++++++ 9 files changed, 325 insertions(+), 1 deletion(-) -- 2.14.3