Skip to content

Commit 8749688

Browse files
committed
netdev-offload-dpdk: Change log level.
Previously when a flow was attempted to be offloaded, if it returned an error that was not an actions error, a warning was logged. The reason there was an exception for an actions error was to allow for failure for full offload of a flow because it will fallback to partial offload. In this case the log level is debug. The issue is that some NICs do not specify an actions error, because other config in the NIC may be checked first. e.g. In the case of Mellanox CX-5, an unspecified error may be returned because the NIC is not configured for the requested offload. This makes for noisey warnings, which may not be relevant, similar to when the actions error is returned, as there may not be an expectation that full offload will ever succeed. Reduce log level for the other errors to debug to match that of the actions type. The status of the offload can still be seen with below command: $ ovs-appctl dpctl/dump-flows -m ... offloaded:partial ... Signed-off-by: Kevin Traynor <[email protected]>
1 parent 252ee0f commit 8749688

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

lib/netdev-offload-dpdk.c

+3-8
Original file line numberDiff line numberDiff line change
@@ -924,17 +924,12 @@ netdev_offload_dpdk_flow_create(struct netdev *netdev,
924924
netdev_dpdk_get_port_id(netdev), ds_cstr(&s));
925925
}
926926
} else {
927-
enum vlog_level level = VLL_WARN;
928-
929-
if (error->type == RTE_FLOW_ERROR_TYPE_ACTION) {
930-
level = VLL_DBG;
931-
}
932-
VLOG_RL(&rl, level, "%s: rte_flow creation failed: %d (%s).",
927+
VLOG_DBG_RL(&rl, "%s: rte_flow creation failed: %d (%s).",
933928
netdev_get_name(netdev), error->type, error->message);
934-
if (!vlog_should_drop(&this_module, level, &rl)) {
929+
if (!vlog_should_drop(&this_module, VLL_DBG, &rl)) {
935930
dump_flow(&s, &s_extra, attr, flow_patterns, flow_actions);
936931
extra_str = ds_cstr(&s_extra);
937-
VLOG_RL(&rl, level, "%s: Failed flow: %s flow create %d %s",
932+
VLOG_DBG_RL(&rl, "%s: Failed flow: %s flow create %d %s",
938933
netdev_get_name(netdev), extra_str,
939934
netdev_dpdk_get_port_id(netdev), ds_cstr(&s));
940935
}

0 commit comments

Comments
 (0)