mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 02:03:56 -06:00
hw/rdma: Remove unneeded code that handles more that one port
Device supports only one port, let's remove a dead code that handles more than one port. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
This commit is contained in:
parent
091782171f
commit
14c74f7207
3 changed files with 19 additions and 21 deletions
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include "rdma_backend_defs.h"
|
||||
|
||||
#define MAX_PORTS 1
|
||||
#define MAX_PORTS 1 /* Do not change - we support only one port */
|
||||
#define MAX_PORT_GIDS 255
|
||||
#define MAX_GIDS MAX_PORT_GIDS
|
||||
#define MAX_PORT_PKEYS 1
|
||||
|
@ -97,7 +97,7 @@ typedef struct RdmaRmPort {
|
|||
} RdmaRmPort;
|
||||
|
||||
typedef struct RdmaDeviceResources {
|
||||
RdmaRmPort ports[MAX_PORTS];
|
||||
RdmaRmPort port;
|
||||
RdmaRmResTbl pd_tbl;
|
||||
RdmaRmResTbl mr_tbl;
|
||||
RdmaRmResTbl uc_tbl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue