]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum: Support RED qdisc offload
authorNogah Frankel <nogahf@mellanox.com>
Mon, 6 Nov 2017 06:23:45 +0000 (07:23 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 Nov 2017 03:23:38 +0000 (12:23 +0900)
commitf16a5e9504efd12c48e896ccf4478dc1b8fbf745
tree8d63f100438042f5e8f2115334f626dd4d0a0722
parenteb5d3ff645e7f6abe75f5aff32e296f3d7b0a4dc
mlxsw: spectrum: Support RED qdisc offload

Add support for ndo_setup_tc with enum tc_setup_type value of TC_SETUP_RED.
This call sets RED qdisc on a traffic class.
This patch supports RED qdisc only as a root qdisc and set in on the
default tclass. It can be set with or without ECN.

Signed-off-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/Makefile
drivers/net/ethernet/mellanox/mlxsw/spectrum.c
drivers/net/ethernet/mellanox/mlxsw/spectrum.h
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c [new file with mode: 0644]