cmd.c (091b64868b43ed84334c6623ea6a08497529d4ff) cmd.c (ed616689a3d95eb6c9bdbb1ef74b0f50cbdf276a)
1/*
2 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved.
3 * Copyright (c) 2005, 2006, 2007, 2008 Mellanox Technologies. All rights reserved.
4 * Copyright (c) 2005, 2006, 2007 Cisco Systems, Inc. All rights reserved.
5 *
6 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file

--- 2472 unchanged lines hidden (view full) ---

2481 /* need to convert it to a func */
2482 ivf->mac[0] = ((s_info->mac >> (5*8)) & 0xff);
2483 ivf->mac[1] = ((s_info->mac >> (4*8)) & 0xff);
2484 ivf->mac[2] = ((s_info->mac >> (3*8)) & 0xff);
2485 ivf->mac[3] = ((s_info->mac >> (2*8)) & 0xff);
2486 ivf->mac[4] = ((s_info->mac >> (1*8)) & 0xff);
2487 ivf->mac[5] = ((s_info->mac) & 0xff);
2488
1/*
2 * Copyright (c) 2004, 2005 Topspin Communications. All rights reserved.
3 * Copyright (c) 2005, 2006, 2007, 2008 Mellanox Technologies. All rights reserved.
4 * Copyright (c) 2005, 2006, 2007 Cisco Systems, Inc. All rights reserved.
5 *
6 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file

--- 2472 unchanged lines hidden (view full) ---

2481 /* need to convert it to a func */
2482 ivf->mac[0] = ((s_info->mac >> (5*8)) & 0xff);
2483 ivf->mac[1] = ((s_info->mac >> (4*8)) & 0xff);
2484 ivf->mac[2] = ((s_info->mac >> (3*8)) & 0xff);
2485 ivf->mac[3] = ((s_info->mac >> (2*8)) & 0xff);
2486 ivf->mac[4] = ((s_info->mac >> (1*8)) & 0xff);
2487 ivf->mac[5] = ((s_info->mac) & 0xff);
2488
2489 ivf->vlan = s_info->default_vlan;
2490 ivf->qos = s_info->default_qos;
2491 ivf->tx_rate = s_info->tx_rate;
2492 ivf->spoofchk = s_info->spoofchk;
2493 ivf->linkstate = s_info->link_state;
2489 ivf->vlan = s_info->default_vlan;
2490 ivf->qos = s_info->default_qos;
2491 ivf->max_tx_rate = s_info->tx_rate;
2492 ivf->min_tx_rate = 0;
2493 ivf->spoofchk = s_info->spoofchk;
2494 ivf->linkstate = s_info->link_state;
2494
2495 return 0;
2496}
2497EXPORT_SYMBOL_GPL(mlx4_get_vf_config);
2498
2499int mlx4_set_vf_link_state(struct mlx4_dev *dev, int port, int vf, int link_state)
2500{
2501 struct mlx4_priv *priv = mlx4_priv(dev);

--- 43 unchanged lines hidden ---
2495
2496 return 0;
2497}
2498EXPORT_SYMBOL_GPL(mlx4_get_vf_config);
2499
2500int mlx4_set_vf_link_state(struct mlx4_dev *dev, int port, int vf, int link_state)
2501{
2502 struct mlx4_priv *priv = mlx4_priv(dev);

--- 43 unchanged lines hidden ---