Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/mlx4/mlx4_ib/mlx4_ib_main.c
Show First 20 Lines • Show All 142 Lines • ▼ Show 20 Lines | #if 0 | ||||
if (dev) { | if (dev) { | ||||
if (mlx4_is_bonded(ibdev->dev)) { | if (mlx4_is_bonded(ibdev->dev)) { | ||||
struct ifnet *upper = NULL; | struct ifnet *upper = NULL; | ||||
upper = netdev_master_upper_dev_get_rcu(dev); | upper = netdev_master_upper_dev_get_rcu(dev); | ||||
if (upper) { | if (upper) { | ||||
struct ifnet *active; | struct ifnet *active; | ||||
active = bond_option_active_slave_get_rcu(netdev_priv(upper)); | active = bond_option_active_slave_get_rcu(mlx4_netdev_priv(upper)); | ||||
if (active) | if (active) | ||||
dev = active; | dev = active; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
#endif | #endif | ||||
if (dev) | if (dev) | ||||
if_ref(dev); | if_ref(dev); | ||||
▲ Show 20 Lines • Show All 3,094 Lines • Show Last 20 Lines |