Skip to content

Commit

Permalink
fc: fix misleading offloaded counter naming
Browse files Browse the repository at this point in the history
  • Loading branch information
dissent1 committed Aug 5, 2017
1 parent 361d0ab commit 0468857
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions package/kernel/shortcut-fe/src/fast-classifier.c
Original file line number Diff line number Diff line change
Expand Up @@ -514,18 +514,14 @@ static void fast_classifier_send_genl_msg(int msg, struct fast_classifier_tuple
#endif
switch (msg) {
case FAST_CLASSIFIER_C_OFFLOADED:
if (rc == 0) {
atomic_inc(&offloaded_msgs);
} else {
atomic_inc(&offloaded_msgs);
if (rc != 0)
atomic_inc(&offloaded_fail_msgs);
}
break;
case FAST_CLASSIFIER_C_DONE:
if (rc == 0) {
atomic_inc(&done_msgs);
} else {
atomic_inc(&done_msgs);
if (rc != 0)
atomic_inc(&done_fail_msgs);
}
break;
default:
DEBUG_ERROR("fast-classifer: Unknown message type sent!\n");
Expand Down Expand Up @@ -1570,7 +1566,7 @@ static ssize_t fast_classifier_get_debug_info(struct device *dev,

spin_lock_bh(&sfe_connections_lock);
len += scnprintf(buf, PAGE_SIZE - len, "size=%d offload=%d offload_no_match=%d"
" offloaded=%d done=%d offloaded_fail=%d done_fail=%d\n",
" offloaded=%d done=%d offl_dbg_msg_fail=%d done_dbg_msg_fail=%d\n",
sfe_connections_size,
atomic_read(&offload_msgs),
atomic_read(&offload_no_match_msgs),
Expand Down

0 comments on commit 0468857

Please sign in to comment.