team: fall back to hash if table entry is empty
authorJim Hanko <hanko@drivescale.com>
Tue, 19 Sep 2017 18:33:39 +0000 (11:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 23:18:58 +0000 (16:18 -0700)
commitbd7d2106b63adfd0dfd08331344e356461c29d70
tree6a31e8ceb55ae95bf40d798a30f00c2a092c2e30
parentd3b557712f7203e3d0ef1ecb2b04159e174c2ee1
team: fall back to hash if table entry is empty

If the hash to port mapping table does not have a valid port (i.e. when
a port goes down), fall back to the simple hashing mechanism to avoid
dropping packets.

Signed-off-by: Jim Hanko <hanko@drivescale.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team_mode_loadbalance.c