Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

openvswitch: Add recirc_id to recirc warning

When hitting the recirculation limit, the kernel would currently log
something like this:

[ 58.586597] openvswitch: ovs-system: deferred action limit reached, drop recirc action

Which isn't all that useful to debug as we only have the interface name
to go on but can't track it down to a specific flow.

With this change, we now instead get:

[ 58.586597] openvswitch: ovs-system: deferred action limit reached, drop recirc action (recirc_id=0x9e)

Which can now be correlated with the flow entries from OVS.

Suggested-by: Frode Nordahl <frode.nordahl@canonical.com>
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Tested-by: Stephane Graber <stgraber@ubuntu.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Link: https://lore.kernel.org/r/20220330194244.3476544-1-stgraber@ubuntu.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Stéphane Graber and committed by
Jakub Kicinski
ea07af2e 46b55620

+2 -2
+2 -2
net/openvswitch/actions.c
··· 1539 1539 pr_warn("%s: deferred action limit reached, drop sample action\n", 1540 1540 ovs_dp_name(dp)); 1541 1541 } else { /* Recirc action */ 1542 - pr_warn("%s: deferred action limit reached, drop recirc action\n", 1543 - ovs_dp_name(dp)); 1542 + pr_warn("%s: deferred action limit reached, drop recirc action (recirc_id=%#x)\n", 1543 + ovs_dp_name(dp), recirc_id); 1544 1544 } 1545 1545 } 1546 1546 }