mlx4_core: Add second capabilities flags field
authorShlomo Pongratz <shlomop@mellanox.com>
Sun, 29 Apr 2012 14:04:25 +0000 (17:04 +0300)
committerRoland Dreier <roland@purestorage.com>
Tue, 8 May 2012 18:54:32 +0000 (11:54 -0700)
commitb3416f4476f39f76fd5ca238e8332ba9b8f059d9
treeabe8502067df86eba56d32d37f75f6e434acda27
parentc0c1d3d761c32ece93b1c99d200591415e3cbf7c
mlx4_core: Add second capabilities flags field

This patch adds a 64-bit flags2 features member to struct mlx4_dev to
export further features of the hardware.  The original flags field
tracks features whose support bits are advertised by the firmware in
offsets 0x40 and 0x44 of the query device capabilities command.
flags2 will track features whose support bits are scattered at various
offsets.

RSS support is the first feature to be exported through flags2.  RSS
capabilities are located at offset 0x2e.  The size of the RSS
indirection table is also given in this offset.

Signed-off-by: Shlomo Pongratz <shlomop@mellanox.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/net/ethernet/mellanox/mlx4/fw.c
drivers/net/ethernet/mellanox/mlx4/fw.h
drivers/net/ethernet/mellanox/mlx4/main.c
include/linux/mlx4/device.h