]> git.droids-corp.org - dpdk.git/commitdiff
net/enic: update VIC firmware interface
authorJohn Daley <johndale@cisco.com>
Fri, 28 Jan 2022 17:58:12 +0000 (09:58 -0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 31 Jan 2022 11:14:54 +0000 (12:14 +0100)
Update the configuration structure used between the adapter and
driver. The structure is compatible with all Cisco VIC adapters.

Signed-off-by: John Daley <johndale@cisco.com>
Reviewed-by: Hyong Youb Kim <hyonkim@cisco.com>
drivers/net/enic/base/vnic_enet.h

index 2a97a33044b45404c4137f70da6b7b960aafe505..66261d9127ad4bccf81a34be1ebb907775dc52e3 100644 (file)
@@ -31,6 +31,28 @@ struct vnic_enet_config {
        uint32_t rdma_mr_id;
        uint32_t rdma_mr_count;
        uint32_t max_pkt_size;
+       uint16_t vf_subvnic_count;
+       uint16_t mq_subvnic_count;
+       uint32_t mq_flags;
+
+       /* the following 3 fields are per-MQ-vnic counts */
+       uint32_t mq_rdma_mr_count;
+       uint16_t mq_rdma_qp_count;
+       uint16_t mq_rdma_resgrp;
+
+       uint16_t rdma_max_sq_ring_sz;
+       uint16_t rdma_max_rq_ring_sz;
+       uint32_t rdma_max_cq_ring_sz;
+       uint16_t rdma_max_wr_sge;
+       uint16_t rdma_max_mr_sge;
+       uint8_t rdma_max_rd_per_qp;
+       uint8_t unused;                 /* available */
+       uint16_t mq_rdma_engine_count;
+       uint32_t intr_coal_tick_ns;     /* coalescing timer tick in nsec */
+       uint32_t max_rq_ring;           /* MAX RQ ring size */
+       uint32_t max_wq_ring;           /* MAX WQ ring size */
+       uint32_t max_cq_ring;           /* MAX CQ ring size */
+       uint32_t rdma_rsvd_lkey;        /* Reserved (privileged) LKey */
 };
 
 #define VENETF_TSO             0x1     /* TSO enabled */