iPXE
mlx_mtu.h
Go to the documentation of this file.
1#ifndef MLX_MTU_H_
2#define MLX_MTU_H_
3
4/*
5 * Copyright (C) 2015 Mellanox Technologies Ltd.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20 * 02110-1301, USA.
21 */
22
23FILE_LICENCE ( GPL2_OR_LATER );
24
27
28#define BYTE_TO_BIT 0x8
29
30struct mlx_mtu {
34 /* -------------- */
37 /* -------------- */
40 /* -------------- */
43};
44
47 IN mlx_utils *utils,
49 OUT mlx_uint32 *max_mtu
50 );
51
54 IN mlx_utils *utils,
56 IN mlx_uint32 admin_mtu
57 );
58#endif /* MLX_MTU_H_ */
__be16 port_num
Definition CIB_PRM.h:3
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
Definition compiler.h:896
mlx_status mlx_set_admin_mtu(IN mlx_utils *utils, IN mlx_uint8 port_num, IN mlx_uint32 admin_mtu)
Definition mlx_mtu.c:63
mlx_status mlx_get_max_mtu(IN mlx_utils *utils, IN mlx_uint8 port_num, OUT mlx_uint32 *max_mtu)
Definition mlx_mtu.c:27
uint32_t mlx_uint32
int mlx_status
uint8_t mlx_uint8
#define IN
Definition mlx_utils.h:28
#define OUT
Definition mlx_utils.h:29
mlx_uint32 max_mtu
Definition mlx_mtu.h:36
mlx_uint32 reserved5
Definition mlx_mtu.h:41
mlx_uint32 local_port
Definition mlx_mtu.h:32
mlx_uint32 oper_mtu
Definition mlx_mtu.h:42
mlx_uint32 reserved2
Definition mlx_mtu.h:33
mlx_uint32 reserved3
Definition mlx_mtu.h:35
mlx_uint32 reserved1
Definition mlx_mtu.h:31
mlx_uint32 reserved4
Definition mlx_mtu.h:38
mlx_uint32 admin_mtu
Definition mlx_mtu.h:39