net: dsa: felix: Configure Time-Aware Scheduler via taprio offload
authorXiaoliang Yang <xiaoliang.yang_1@nxp.com>
Wed, 13 May 2020 02:25:09 +0000 (10:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 May 2020 18:54:46 +0000 (11:54 -0700)
commitde143c0e274b95ba0513acf8e60b3b87d24335fa
tree21fea298543e0eba29eaf81c56d87a30c5161f61
parentbd2b3161dba88ea11c99ce957cc52940905500b9
net: dsa: felix: Configure Time-Aware Scheduler via taprio offload

Ocelot VSC9959 switch supports time-based egress shaping in hardware
according to IEEE 802.1Qbv. This patch add support for TAS configuration
on egress port of VSC9959 switch.

Felix driver is an instance of Ocelot family, with a DSA front-end. The
patch uses tc taprio hardware offload to setup TAS set function on felix
driver.

Signed-off-by: Xiaoliang Yang <xiaoliang.yang_1@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/ocelot/felix.c
drivers/net/dsa/ocelot/felix.h
drivers/net/dsa/ocelot/felix_vsc9959.c