#ifndef __TRACE_STAT_H #define __TRACE_STAT_H #include /* * If you want to provide a stat file (one-shot statistics), fill * an iterator with stat_start/stat_next and a stat_show callbacks. * The others callbacks are optional. */ struct tracer_stat { /* The name of your stat file */ const char *name; /* Iteration over statistic entries */ void *(*stat_start)(struct tracer_stat *trace); void *(*stat_next)(void *prev, int idx); /* Compare two entries for stats sorting */ int (*stat_cmp)(void *p1, void *p2); /* Print a stat entry */ int (*stat_show)(struct seq_file *s, void *p); /* Release an entry */ void (*stat_release)(void *stat); /* Print the headers of your stat entries */ int (*stat_headers)(struct seq_file *s); }; /* * Destroy or create a stat file */ extern int register_stat_tracer(struct tracer_stat *trace); extern void unregister_stat_tracer(struct tracer_stat *trace); #endif /* __TRACE_STAT_H */ 4bd5e73'/> net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/crypto/if_alg.h
diff options
context:
space:
mode:
authorEyal Itkin <eyal.itkin@gmail.com>2017-02-07 16:43:05 +0300
committerDoug Ledford <dledford@redhat.com>2017-02-08 12:28:30 -0500
commit628f07d33c1f2e7bf31e0a4a988bb07914bd5e73 (patch)
treec228c66498f9a4562093fbbf80a41bcede0c06f2 /include/crypto/if_alg.h
parentb4cfe3971f6eab542dd7ecc398bfa1aeec889934 (diff)
IB/rxe: Fix resid update
Update the response's resid field when larger than MTU, instead of only updating the local resid variable. Fixes: 8700e3e7c485 ("Soft RoCE driver") Signed-off-by: Eyal Itkin <eyal.itkin@gmail.com> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/crypto/if_alg.h')