summaryrefslogtreecommitdiffstats
path: root/drivers/net/team/team_mode_broadcast.c
Commit message (Collapse)AuthorAgeFilesLines
* team: add macro MODULE_ALIAS_TEAM_MODE for team mode aliasZhang Shengju2017-06-021-1/+1
| | | | | | | | | Add a new macro MODULE_ALIAS_TEAM_MODE to unify and simplify the declaration of team mode alias. Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com> Acked-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* team: fill-up LAG changeupper info struct and pass it alongJiri Pirko2015-12-031-0/+1
| | | | | | | | Initialize netdev_lag_upper_info structure by TX type according to current team mode and pass it along via netdev_master_upper_dev_link. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
* team: introduce two default team_modeop functions and use them in modesJiri Pirko2013-03-061-12/+2Star
| | | | | | | No need to duplicate code for this. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
* team: bcast: convert return value of team_dev_queue_xmit() to bool correctlyJiri Pirko2012-11-211-3/+3
| | | | | | | | | | | | | | 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 (5fc889911a99043a97da1daa0d010ad72cbc3042) 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>
* team: add support for non-ethernet devicesJiri Pirko2012-08-201-4/+4
| | | | | | | | | This is resolved by two things: 1) allow dev_addr of different length than ETH_ALEN 2) during port add, check for dev->type and change it if necessary Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
* team: add netpoll supportJiri Pirko2012-07-171-4/+3Star
| | | | | | | It's done in very similar way this is done in bonding and bridge. Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
* team: add broadcast modeJiri Pirko2012-07-121-0/+88
Signed-off-by: Jiri Pirko <jpirko@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>