Re: [PATCH v2] fm10k: fix switch manager high CPU usage
From: Chen, Jing D <hidden>
Date: 2016-02-05 09:26:29
Hi, Best Regards, Mark
-----Original Message----- From: He, Shaopeng Sent: Thursday, February 04, 2016 8:45 PM To: dev@dpdk.org Cc: Chen, Jing D; Wang, Xiao W; He, Shaopeng Subject: [PATCH v2] fm10k: fix switch manager high CPU usage fm10k switch core uses source MAC + VID + SGLORT to do look up in MAC table. If no match, an exception interrupt will be sent to the switch manager. Too much of this kind of exception interrupts cause switch manager side high CPU usage. To reproduce this issue, one DPDK testpmd runs on a server with one fm10k NIC, mac forwards test traffic from one of fm10k ports to another port. The CPU usage for the switch manager will go up to about 20% for test traffic rate at 10G bps, comparing to near 0% for no test traffic. This patch fixes this issue. A default SGLORT is assigned to each TX queue. This default value works for non-VMDq mode and current VMDq example. For advanced VMDq usage, e.g. different source MAC address for different TX queue, FTAG forwarding function could be used to change this default SGLORT value. Signed-off-by: Shaopeng He <redacted>
Acked-by: Jing Chen <redacted>