net/mlx5: introduce Tx burst routine template
[dpdk.git] / drivers / net / mlx5 / mlx5.h
index 354f6bc..7aad94d 100644 (file)
@@ -170,6 +170,11 @@ struct mlx5_hca_attr {
        uint32_t eswitch_manager:1;
        uint32_t flow_counters_dump:1;
        uint8_t flow_counter_bulk_alloc_bitmap;
+       uint32_t eth_net_offloads:1;
+       uint32_t eth_virt:1;
+       uint32_t wqe_vlan_insert:1;
+       uint32_t wqe_inline_mode:2;
+       uint32_t vport_inline_mode:3;
 };
 
 /* Flow list . */
@@ -189,6 +194,7 @@ TAILQ_HEAD(mlx5_flows, rte_flow);
 struct mlx5_dev_config {
        unsigned int hw_csum:1; /* Checksum offload is supported. */
        unsigned int hw_vlan_strip:1; /* VLAN stripping is supported. */
+       unsigned int hw_vlan_insert:1; /* VLAN insertion in WQE is supported. */
        unsigned int hw_fcs_strip:1; /* FCS stripping is supported. */
        unsigned int hw_padding:1; /* End alignment padding is supported. */
        unsigned int vf:1; /* This is a VF. */
@@ -223,6 +229,9 @@ struct mlx5_dev_config {
        unsigned int ind_table_max_size; /* Maximum indirection table size. */
        unsigned int max_dump_files_num; /* Maximum dump files per queue. */
        int txqs_inline; /* Queue number threshold for inlining. */
+       int txq_inline_min; /* Minimal amount of data bytes to inline. */
+       int txq_inline_max; /* Max packet size for inlining with SEND. */
+       int txq_inline_mpw; /* Max packet size for inlining with eMPW. */
        struct mlx5_hca_attr hca_attr; /* HCA attributes. */
 };