]> git.baikalelectronics.ru Git - kernel.git/commit
team: bcast: convert return value of team_dev_queue_xmit() to bool correctly
authorJiri Pirko <jiri@resnulli.us>
Wed, 21 Nov 2012 02:34:45 +0000 (02:34 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Nov 2012 16:55:07 +0000 (11:55 -0500)
commit8f7d2555ab83dca30ab3696f7364f3d799d04682
treed4200f7ab5fc11ad0ca71cc11ce22e8e3ed4773b
parent6b392ed4b315c114fa994b7364f00a8993220383
team: bcast: convert return value of team_dev_queue_xmit() to bool correctly

The thing is that team_dev_queue_xmit() returns NET_XMIT_* or -E*.
bc_trasmit() should return true in case all went well. So use ! to get
correct retval from team_dev_queue_xmit() result.
This bug caused iface statistics to be badly computed.

This bug was introduced by:
team: add broadcast mode (be67650c63c152b064babe13dcc88f40b40ae9f2)

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team_mode_broadcast.c