net: rename busy poll MIB counter
Subsystems (2)
PATCH v2 1/1 net: rename busy poll MIB counter
Rename mib counter from "low latency" to "busy poll"
v1 also moved the counter to the ip MIB (suggested by Shawn Bohrer) Eric Dumazet suggested that the current location is better.
So v2 just renames the counter to fit the new naming convention.
Signed-off-by Eliezer Tamir <[email protected]>
---
include/net/busy_poll.h | 2 +- include/uapi/linux/snmp.h | 2 +- net/ipv4/proc.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
include/net/busy_poll.h +1 -1
@@ -122,7 +122,7 @@ static inline bool sk_busy_loop(struct sock *sk, int nonblock)if (rc >0 )/* local bh are disabled so it is ok to use _BH */ NET_ADD_STATS_BH (sock_net (sk), -LINUX_MIB_LOWLATENCYRXPACKETS , rc); +LINUX_MIB_BUSYPOLLRXPACKETS , rc); }while (!nonblock &&skb_queue_empty (&sk->sk_receive_queue) && !need_resched () && !busy_loop_timeout (end_time));
include/uapi/linux/snmp.h +1 -1
@@ -253,7 +253,7 @@ enumLINUX_MIB_TCPFASTOPENLISTENOVERFLOW ,/* TCPFastOpenListenOverflow */ LINUX_MIB_TCPFASTOPENCOOKIEREQD ,/* TCPFastOpenCookieReqd */ LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES ,/* TCPSpuriousRtxHostQueues */ -LINUX_MIB_LOWLATENCYRXPACKETS ,/* LowLatencyRxPackets */ +LINUX_MIB_BUSYPOLLRXPACKETS ,/* BusyPollRxPackets */ __LINUX_MIB_MAX };
net/ipv4/proc.c +1 -1
@@ -273,7 +273,7 @@ static const struct snmp_mib snmp4_net_list[] = {SNMP_MIB_ITEM ("TCPFastOpenListenOverflow" ,LINUX_MIB_TCPFASTOPENLISTENOVERFLOW ),SNMP_MIB_ITEM ("TCPFastOpenCookieReqd" ,LINUX_MIB_TCPFASTOPENCOOKIEREQD ),SNMP_MIB_ITEM ("TCPSpuriousRtxHostQueues" ,LINUX_MIB_TCPSPURIOUS_RTX_HOSTQUEUES ), -SNMP_MIB_ITEM ("LowLatencyRxPackets" ,LINUX_MIB_LOWLATENCYRXPACKETS ), +SNMP_MIB_ITEM ("BusyPollRxPackets" ,LINUX_MIB_BUSYPOLLRXPACKETS ), SNMP_MIB_SENTINEL };
From: Eliezer Tamir <[email protected]>
Date: Wed, 07 Aug 2013 11:33:25 +0300
Quoted 8 lines
Rename mib counter from "low latency" to "busy poll"
v1 also moved the counter to the ip MIB (suggested by Shawn Bohrer) Eric Dumazet suggested that the current location is better.
So v2 just renames the counter to fit the new naming convention.
Signed-off-by Eliezer Tamir <[email protected]>
Applied, thanks.