Skip to content

Commit b7468c0

Browse files
rogerqdavem330
authored andcommitted
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 <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 961d418 commit b7468c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/net/ethernet/ti/am65-cpsw-nuss.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2500,6 +2500,9 @@ static int am65_cpsw_nuss_init_rx_chns(struct am65_cpsw_common *common)
25002500
}
25012501
}
25022502

2503+
/* setup classifier to route priorities to flows */
2504+
cpsw_ale_classifier_setup_default(common->ale, common->rx_ch_num_flows);
2505+
25032506
err:
25042507
i = devm_add_action(dev, am65_cpsw_nuss_free_rx_chns, common);
25052508
if (i) {

0 commit comments

Comments
 (0)