Re: [PATCH net v2] Fixing a bug in team driver due to incorrect 'unsigned int' to 'int' conversion

2016-10-07 Thread David Miller
From: Alex Sidorenko Date: Fri, 07 Oct 2016 09:02:33 -0400 > Roundrobin runner of team driver uses 'unsigned int' variable to count > the number of sent_packets. Later it is passed to a subroutine > team_num_to_port_index(struct team *team, int num) as 'num' and when > we reach MAXINT (2**31-1),

[PATCH net v2] Fixing a bug in team driver due to incorrect 'unsigned int' to 'int' conversion

2016-10-07 Thread Alex Sidorenko
Roundrobin runner of team driver uses 'unsigned int' variable to count the number of sent_packets. Later it is passed to a subroutine team_num_to_port_index(struct team *team, int num) as 'num' and when we reach MAXINT (2**31-1), 'num' becomes negative. This leads to using incorrect hash-bucket fo