liquidio: Prioritize control messages
Subsystems (3)
PATCH 1/1 liquidio: Prioritize control messages
From: Intiyaz Basha <[email protected]>
During heavy tx traffic, control messages (sent by liquidio driver to NIC firmware) sometimes do not get processed in a timely manner. Reason is:
the low-level metadata of control messages and that of egress network packets indicate that they have the same priority.
Fix it by setting a higher priority for control messages through the new ctrl_qpg field in the oct_txpciq struct. It is the NIC firmware that does the actual setting of priority by writing to the new ctrl_qpg field; the host driver treats that value as opaque and just assigns it to pki_ih3->qpg
--- drivers/net/ethernet/cavium/liquidio/liquidio_common.h | 8 ++++++-- drivers/net/ethernet/cavium/liquidio/request_manager.c | 3 ++- 2 files changed, 8 insertions(+), 3 deletions(-)
drivers/net/ethernet/cavium/liquidio/liquidio_common.h +6 -2
@@ -712,9 +712,13 @@ enum lio_phy_type { u64 pkind:6; u64 use_qpg:1; u64 qpg:11; - u64 reserved:30; + u64 reserved0:10; + u64 ctrl_qpg:11; + u64 reserved:9;#else - u64 reserved:30; + u64 reserved:9; + u64 ctrl_qpg:11; + u64 reserved0:10; u64 qpg:11; u64 use_qpg:1; u64 pkind:6;
drivers/net/ethernet/cavium/liquidio/request_manager.c +2 -1
@@ -628,7 +628,8 @@ static void check_db_timeout(struct work_struct *work) pki_ih3->tag =LIO_CONTROL ; pki_ih3->tagtype =ATOMIC_TAG ; pki_ih3->qpg = - oct->instr_queue[sc->iq_no]->txpciq.s.qpg; + oct->instr_queue[sc->iq_no]->txpciq.s.ctrl_qpg; + pki_ih3->pm =0x7 ; pki_ih3->sl =8 ;
Signature · 1 line
1.8.3.1
From: Felix Manlunas <[email protected]>
Date: Tue, 27 Mar 2018 19:25:18 -0700
Quoted 7 lines
From: Intiyaz Basha <[email protected]>
During heavy tx traffic, control messages (sent by liquidio driver to NIC firmware) sometimes do not get processed in a timely manner. Reason is:
the low-level metadata of control messages and that of egress network packets indicate that they have the same priority.
Quoted 7 lines
Fix it by setting a higher priority for control messages through the new
ctrl_qpgfield in theoct_txpciqstruct. It is the NIC firmware that does the actual setting of priority by writing to the newctrl_qpgfield; the host driver treats that value as opaque and just assigns it topki_ih3->qpgSigned-off-by Intiyaz Basha <[email protected]>Signed-off-by Felix Manlunas <[email protected]>
Applied.