Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d45abe1 authored by Wang Chen's avatar Wang Chen Committed by David S. Miller
Browse files

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: default avatarWang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cb61cb9b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -595,8 +595,8 @@ struct net_device
	int			uc_promisc;
	struct dev_addr_list	*mc_list;	/* Multicast mac addresses	*/
	int			mc_count;	/* Number of installed mcasts	*/
	int			promiscuity;
	int			allmulti;
	unsigned int		promiscuity;
	unsigned int		allmulti;


	/* Protocol specific pointers */