aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorWang Chen <wangchen@cn.fujitsu.com>2008-06-18 00:12:48 -0400
committerDavid S. Miller <davem@davemloft.net>2008-06-18 00:12:48 -0400
commit9d45abe1c2949183e5d9cb25721bf1c42c7b5e3b (patch)
tree00bbbbcd31baaaf431b4cd2529542eb9db603fda /include/linux/netdevice.h
parentcb61cb9b8b5ef6c2697d84e5015e314626eb2fba (diff)
netdevice: change net_device->promiscuity/allmulti to unsigned int
The comments of dev_set_allmulti/promiscuity() is that "While the count in the device remains above zero...". So negative count is useless. Fix the type of the counter from "int" to "unsigned int". Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index f27fd2009334..06d8ea5992df 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -595,8 +595,8 @@ struct net_device
595 int uc_promisc; 595 int uc_promisc;
596 struct dev_addr_list *mc_list; /* Multicast mac addresses */ 596 struct dev_addr_list *mc_list; /* Multicast mac addresses */
597 int mc_count; /* Number of installed mcasts */ 597 int mc_count; /* Number of installed mcasts */
598 int promiscuity; 598 unsigned int promiscuity;
599 int allmulti; 599 unsigned int allmulti;
600 600
601 601
602 /* Protocol specific pointers */ 602 /* Protocol specific pointers */