• Vlad Buslov's avatar
    netfilter: nf_flow_table: count pending offload workqueue tasks · b0381776
    Vlad Buslov authored
    To improve hardware offload debuggability count pending 'add', 'del' and
    'stats' flow_table offload workqueue tasks. Counters are incremented before
    scheduling new task and decremented when workqueue handler finishes
    executing. These counters allow user to diagnose congestion on hardware
    offload workqueues that can happen when either CPU is starved and workqueue
    jobs are executed at lower rate than new ones are added or when
    hardware/driver can't keep up with the rate.
    
    Implement the described counters as percpu counters inside new struct
    netns_ft which is stored inside struct net. Expose them via new procfs file
    '/proc/net/stats/nf_flowtable' that is similar to existing 'nf_conntrack'
    file.
    Signed-off-by: default avatarVlad Buslov <vladbu@nvidia.com>
    Signed-off-by: default avatarOz Shlomo <ozsh@nvidia.com>
    Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
    b0381776
net_namespace.h 13 KB