diff options
| author | Nogah Frankel <nogahf@mellanox.com> | 2018-01-10 17:00:06 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2018-01-11 00:07:41 +0300 |
| commit | 9cf6c9c7585446f1a532d218ae9be8653f4d7a82 (patch) | |
| tree | 39671714b74a8475a0b41621efb09412501669c7 /scripts/patch-kernel | |
| parent | 9a37a59f715256cea75cbdbcacd21e9e9dd4b72f (diff) | |
| download | linux-9cf6c9c7585446f1a532d218ae9be8653f4d7a82.tar.xz | |
mlxsw: spectrum: qdiscs: Create a generic replace function
Create a generic qdisc replace function.
For that goal, add three functions to the qdisc ops struct:
* check_params: Checks if the given parameters are offloadable.
* replace: Offload the given parameters.
* clean_stats: clean the qdisc stats for the offloaded qdisc.
integrate RED offloading into using the new internal replace API.
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>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions
