net/ice/base: support SMA controller
[dpdk.git] / drivers / common / sfc_efx / base / rhead_nic.c
index 9b8f09d..f2c18c1 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  *
- * Copyright(c) 2019-2020 Xilinx, Inc.
+ * Copyright(c) 2019-2021 Xilinx, Inc.
  * Copyright(c) 2018-2019 Solarflare Communications Inc.
  */
 
@@ -28,7 +28,6 @@ rhead_board_cfg(
         */
        encp->enc_tunnel_encapsulations_supported =
            (1u << EFX_TUNNEL_PROTOCOL_VXLAN) |
-           (1u << EFX_TUNNEL_PROTOCOL_GENEVE) |
            (1u << EFX_TUNNEL_PROTOCOL_NVGRE);
 
        /*
@@ -129,6 +128,12 @@ rhead_board_cfg(
        encp->enc_evq_timer_quantum_ns = 0;
        encp->enc_evq_timer_max_us = 0;
 
+#if EFSYS_OPT_EV_EXTENDED_WIDTH
+       encp->enc_ev_ew_desc_size = RHEAD_EVQ_EW_DESC_SIZE;
+#else
+       encp->enc_ev_ew_desc_size = 0;
+#endif
+
        encp->enc_ev_desc_size = RHEAD_EVQ_DESC_SIZE;
        encp->enc_rx_desc_size = RHEAD_RXQ_DESC_SIZE;
        encp->enc_tx_desc_size = RHEAD_TXQ_DESC_SIZE;
@@ -152,6 +157,9 @@ rhead_board_cfg(
        }
        encp->enc_rx_buf_align_end = end_padding;
 
+       /* FIXME: It should be extracted from design parameters (Bug 86844) */
+       encp->enc_rx_scatter_max = 7;
+
        /*
         * Riverhead stores a single global copy of VPD, not per-PF as on
         * Huntington.