Commit 9d45abe1c2949183e5d9cb25721bf1c42c7b5e3b
Committed by
David S. Miller
1 parent
cb61cb9b8b
Exists in
master
and in
4 other branches
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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
include/linux/netdevice.h
... | ... | @@ -595,8 +595,8 @@ |
595 | 595 | int uc_promisc; |
596 | 596 | struct dev_addr_list *mc_list; /* Multicast mac addresses */ |
597 | 597 | int mc_count; /* Number of installed mcasts */ |
598 | - int promiscuity; | |
599 | - int allmulti; | |
598 | + unsigned int promiscuity; | |
599 | + unsigned int allmulti; | |
600 | 600 | |
601 | 601 | |
602 | 602 | /* Protocol specific pointers */ |