[SRU][Jammy:linux-intel-iotg][PATCH 2/2] Revert "igc: Enable trace for HW TX Timestamp AF_XDP ZC"

Jian Hui Lee jianhui.lee at canonical.com
Tue Jul 18 12:37:40 UTC 2023


BugLink: https://bugs.launchpad.net/bugs/2028059

trace_printk() should not be used in production code.

This reverts commit 9a31ef676a8853605d50e493a97b05aaf5a2a347.

Signed-off-by: Jian Hui Lee <jianhui.lee at canonical.com>
---
 drivers/net/ethernet/intel/igc/igc_main.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/net/ethernet/intel/igc/igc_main.c b/drivers/net/ethernet/intel/igc/igc_main.c
index 5e3b653574e2..c74a68f3b936 100644
--- a/drivers/net/ethernet/intel/igc/igc_main.c
+++ b/drivers/net/ethernet/intel/igc/igc_main.c
@@ -3001,11 +3001,6 @@ static bool igc_clean_tx_irq(struct igc_q_vector *q_vector, int napi_budget)
 
 		switch (tx_buffer->type) {
 		case IGC_TX_BUFFER_TYPE_XSK:
-#if defined(CONFIG_TRACING)
-		/* Only use for RTCP KPI Measurement on Q2 */
-		if (tx_ring->queue_index == 2 && adapter->tstamp_config.tx_type == HWTSTAMP_TX_ON)
-			trace_printk("TX HW TS %lld\n", timestamp);
-#endif
 			xsk_frames++;
 			break;
 		case IGC_TX_BUFFER_TYPE_XDP:
-- 
2.34.1




More information about the kernel-team mailing list