main.c (cbd32a1c56e36fedaa93a727699188bd3e6e6f67) | main.c (72a7720fca37fec0daf295923f17ac5d88a613e1) |
---|---|
1/* 2 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 720 unchanged lines hidden (view full) --- 729out: 730 kfree(in_mad); 731 kfree(out_mad); 732 return err; 733} 734 735static u8 state_to_phys_state(enum ib_port_state state) 736{ | 1/* 2 * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved. 3 * Copyright (c) 2007, 2008 Mellanox Technologies. All rights reserved. 4 * 5 * This software is available to you under a choice of one of two 6 * licenses. You may choose to be licensed under the terms of the GNU 7 * General Public License (GPL) Version 2, available from the file 8 * COPYING in the main directory of this source tree, or the --- 720 unchanged lines hidden (view full) --- 729out: 730 kfree(in_mad); 731 kfree(out_mad); 732 return err; 733} 734 735static u8 state_to_phys_state(enum ib_port_state state) 736{ |
737 return state == IB_PORT_ACTIVE ? 5 : 3; | 737 return state == IB_PORT_ACTIVE ? 738 IB_PORT_PHYS_STATE_LINK_UP : IB_PORT_PHYS_STATE_DISABLED; |
738} 739 740static int eth_link_query_port(struct ib_device *ibdev, u8 port, 741 struct ib_port_attr *props) 742{ 743 744 struct mlx4_ib_dev *mdev = to_mdev(ibdev); 745 struct mlx4_ib_iboe *iboe = &mdev->iboe; --- 2632 unchanged lines hidden --- | 739} 740 741static int eth_link_query_port(struct ib_device *ibdev, u8 port, 742 struct ib_port_attr *props) 743{ 744 745 struct mlx4_ib_dev *mdev = to_mdev(ibdev); 746 struct mlx4_ib_iboe *iboe = &mdev->iboe; --- 2632 unchanged lines hidden --- |