Hack existing linux logic to avoid netdev stuff that was reporting port_down
always.

Signed-off-by: Kanoj Sarcar <[email protected]>
---
 kern/drivers/net/mlx4u/main.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kern/drivers/net/mlx4u/main.c b/kern/drivers/net/mlx4u/main.c
index b662f81..68970bf 100644
--- a/kern/drivers/net/mlx4u/main.c
+++ b/kern/drivers/net/mlx4u/main.c
@@ -411,11 +411,13 @@ static int eth_link_query_port(struct ib_device *ibdev, 
u8 port,
        if (is_bonded)
                rtnl_lock(); /* required to get upper dev */
        spin_lock_bh(&iboe->lock);
+#if 0  /* AKAROS */
        ndev = iboe->netdevs[port - 1];
        if (ndev && is_bonded)
                ndev = netdev_master_upper_dev_get(ndev);
        if (!ndev)
                goto out_unlock;
+#endif /* AKAROS */
 
        tmp = iboe_get_mtu(ndev->mtu);
        props->active_mtu = tmp ? min(props->max_mtu, tmp) : IB_MTU_256;

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to