diff options
author | Roger Quadros <rogerq@kernel.org> | 2024-09-10 11:24:03 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2024-09-13 11:49:00 +0200 |
commit | b7468c0fe148f9f627921357f8cb97690c19d480 (patch) | |
tree | 008a4b9310b00c871b98c8fcfed685416b888b5d /drivers/net/ethernet/ti | |
parent | net: ethernet: ti: cpsw_ale: add policer/classifier helpers and setup defaults (diff) | |
download | linux-b7468c0fe148f9f627921357f8cb97690c19d480.tar.xz linux-b7468c0fe148f9f627921357f8cb97690c19d480.zip |
net: ethernet: ti: am65-cpsw: setup priority to flow mapping
Now that we support multiple RX queues, enable default priority
to flow mapping so that higher priority packets come on higher
channels (flows).
The Classifier checks for PCP/DSCP priority in the packet and
routes them to the appropriate flow.
Signed-off-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti')
-rw-r--r-- | drivers/net/ethernet/ti/am65-cpsw-nuss.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c index 76e62351b30b..cbe99017cbfa 100644 --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c @@ -2500,6 +2500,9 @@ static int am65_cpsw_nuss_init_rx_chns(struct am65_cpsw_common *common) } } + /* setup classifier to route priorities to flows */ + cpsw_ale_classifier_setup_default(common->ale, common->rx_ch_num_flows); + err: i = devm_add_action(dev, am65_cpsw_nuss_free_rx_chns, common); if (i) { |