net/qede/base: add PF parameter
authorRasesh Mody <rasesh.mody@cavium.com>
Wed, 29 Mar 2017 20:36:52 +0000 (13:36 -0700)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 4 Apr 2017 17:02:54 +0000 (19:02 +0200)
Add a common enum to pf_params for RDMA.

Signed-off-by: Rasesh Mody <rasesh.mody@cavium.com>
drivers/net/qede/base/ecore_cxt.c
drivers/net/qede/base/ecore_proto_if.h

index aeeabf1..691d638 100644 (file)
@@ -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
index ed24019..0ac153f 100644 (file)
@@ -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 {