From: Rasesh Mody Date: Wed, 29 Mar 2017 20:36:52 +0000 (-0700) Subject: net/qede/base: add PF parameter X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=615438cba34a478a8d6317694f5fc938e55a3259;p=dpdk.git net/qede/base: add PF parameter Add a common enum to pf_params for RDMA. Signed-off-by: Rasesh Mody --- diff --git a/drivers/net/qede/base/ecore_cxt.c b/drivers/net/qede/base/ecore_cxt.c index aeeabf1349..691d63827d 100644 --- a/drivers/net/qede/base/ecore_cxt.c +++ b/drivers/net/qede/base/ecore_cxt.c @@ -19,6 +19,7 @@ #include "ecore_hw.h" #include "ecore_dev_api.h" #include "ecore_sriov.h" +#include "ecore_mcp.h" /* Max number of connection types in HW (DQ/CDU etc.) */ #define MAX_CONN_TYPES PROTOCOLID_COMMON diff --git a/drivers/net/qede/base/ecore_proto_if.h b/drivers/net/qede/base/ecore_proto_if.h index ed24019980..0ac153f732 100644 --- a/drivers/net/qede/base/ecore_proto_if.h +++ b/drivers/net/qede/base/ecore_proto_if.h @@ -63,6 +63,12 @@ struct ecore_iscsi_pf_params { u8 bdq_pbl_num_entries[2]; }; +enum ecore_rdma_protocol { + ECORE_RDMA_PROTOCOL_DEFAULT, + ECORE_RDMA_PROTOCOL_ROCE, + ECORE_RDMA_PROTOCOL_IWARP, +}; + struct ecore_rdma_pf_params { /* Supplied to ECORE during resource allocation (may affect the ILT and * the doorbell BAR). @@ -79,6 +85,7 @@ struct ecore_rdma_pf_params { /* TCP port number used for the iwarp traffic */ u16 iwarp_port; + enum ecore_rdma_protocol rdma_protocol; }; struct ecore_pf_params {