Skip to content

Commit 9d45abe

Browse files
Wang Chendavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent cb61cb9 commit 9d45abe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/netdevice.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,8 +595,8 @@ struct net_device
595595
int uc_promisc;
596596
struct dev_addr_list *mc_list; /* Multicast mac addresses */
597597
int mc_count; /* Number of installed mcasts */
598-
int promiscuity;
599-
int allmulti;
598+
unsigned int promiscuity;
599+
unsigned int allmulti;
600600

601601

602602
/* Protocol specific pointers */

0 commit comments

Comments
 (0)