summaryrefslogtreecommitdiff
path: root/drivers/net/xen-netback
diff options
context:
space:
mode:
authorAlex Sidorenko <alexandre.sidorenko@hpe.com>2016-10-07 16:02:33 +0300
committerDavid S. Miller <davem@davemloft.net>2016-10-08 06:50:39 +0300
commit21d9629a7abd87512d062fbe57b04a1baedf93d2 (patch)
tree7918c00daabbe03ac8a156358ac023a3a959064b /drivers/net/xen-netback
parent7d3cfc36ec3aae1d37a13fbe257f31141eb772b4 (diff)
downloadlinux-21d9629a7abd87512d062fbe57b04a1baedf93d2.tar.xz
Fixing a bug in team driver due to incorrect 'unsigned int' to 'int' conversion
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 for port lookup and as a result, packets are dropped. The fix consists of changing 'int num' to 'unsigned int num'. Testing of a fixed kernel shows that there is no packet drop anymore. Signed-off-by: Alex Sidorenko <alexandre.sidorenko@hpe.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/xen-netback')
0 files changed, 0 insertions, 0 deletions