Fix iw_cxgbe build in the projects branch.
Submitted by: Krishnamraju Eraparaju @ Chelsio
This commit is contained in:
parent
e110d0774b
commit
f93039d9de
@ -373,6 +373,9 @@ struct adapter_params {
|
||||
unsigned int max_ird_adapter;
|
||||
|
||||
uint32_t mps_bg_map; /* rx buffer group map for all ports (upto 4) */
|
||||
|
||||
bool ulptx_memwrite_dsgl; /* use of T5 DSGL allowed */
|
||||
bool fr_nsmr_tpte_wr_support; /* FW support for FR_NSMR_TPTE_WR */
|
||||
};
|
||||
|
||||
#define CHELSIO_T4 0x4
|
||||
|
@ -417,22 +417,6 @@ static int c4iw_port_immutable(struct ib_device *ibdev, u8 port_num,
|
||||
|
||||
return 0;
|
||||
}
|
||||
static int c4iw_port_immutable(struct ib_device *ibdev, u8 port_num,
|
||||
struct ib_port_immutable *immutable)
|
||||
{
|
||||
struct ib_port_attr attr;
|
||||
int err;
|
||||
|
||||
err = c4iw_query_port(ibdev, port_num, &attr);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
immutable->pkey_tbl_len = attr.pkey_tbl_len;
|
||||
immutable->gid_tbl_len = attr.gid_tbl_len;
|
||||
immutable->core_cap_flags = RDMA_CORE_PORT_IWARP;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns -errno on error.
|
||||
|
Loading…
Reference in New Issue
Block a user