net: stats: Add UDP checksum stats update function
A function updating UDP checksum failure statistics was missing. Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
e253dcbd3b
commit
9f1c7ffa5d
1 changed files with 6 additions and 0 deletions
|
@ -157,10 +157,16 @@ static inline void net_stats_update_udp_drop(void)
|
|||
{
|
||||
net_stats.udp.drop++;
|
||||
}
|
||||
|
||||
static inline void net_stats_update_udp_chkerr(void)
|
||||
{
|
||||
net_stats.udp.chkerr++;
|
||||
}
|
||||
#else
|
||||
#define net_stats_update_udp_sent()
|
||||
#define net_stats_update_udp_recv()
|
||||
#define net_stats_update_udp_drop()
|
||||
#define net_stats_update_udp_chkerr()
|
||||
#endif /* CONFIG_NET_STATISTICS_UDP */
|
||||
|
||||
#if defined(CONFIG_NET_STATISTICS_TCP)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue