mlxsw: spectrum: qdiscs: prio: Handle graft command
authorNogah Frankel <nogahf@mellanox.com>
Wed, 28 Feb 2018 09:45:07 +0000 (10:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2018 17:06:01 +0000 (12:06 -0500)
commit32dc5efc6cb40dea9ee0797b7c237efc470e0c35
treef12f2fe03c1839f8020ce53e666014f45f2dbf30
parentb9c7a7acc749f3d0667a2ab44ea38110d5a1f286
mlxsw: spectrum: qdiscs: prio: Handle graft command

Handle graft command for an offloaded sch_prio.
Grafting a qdisc to any place other than under its original parent is not
supported by mlxsw and will cause the grafted qdisc to stop being
offloaded.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_qdisc.c