mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-14 21:10:11 +01:00
qosmngr: Handle L3 flows with different p-bits correctly.
The L3 HW NAT will match the flows based on an IP header 5-tuple. However if we are doing classification based on p-bits at the same time and we want to use this for QoS we need to make sure to add a VIP packet matcher to send this info to the PPE for hashing the flow.
This commit is contained in:
parent
2ff18658c9
commit
32203771f6
1 changed files with 9 additions and 0 deletions
|
|
@ -27,6 +27,9 @@ hw_intf_init() {
|
|||
# Initialize the hardware setup library
|
||||
hw_init_all() {
|
||||
export TMP_HW_QUEUE_LIST=""
|
||||
echo clear > /proc/ifc_debug
|
||||
echo reinit > /proc/ifc_debug
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
@ -150,6 +153,7 @@ hw_commit_all() {
|
|||
local shape_rate="$TMP_HW_SHAPE_RATE"
|
||||
local q_count="0"
|
||||
local mac_qos_flag=""
|
||||
local pbit=0
|
||||
|
||||
# Reorder queues
|
||||
for q in ${sorted_list} ; do
|
||||
|
|
@ -205,4 +209,9 @@ hw_commit_all() {
|
|||
else
|
||||
/userfs/bin/qosrule discpline Enable 0
|
||||
fi
|
||||
|
||||
echo 1 > /proc/ifc_send_to_ppe
|
||||
for pbit in $(seq 0 7); do
|
||||
/userfs/bin/ifc add vip pbit $pbit
|
||||
done
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue