net/bnxt: add TruFlow core identifier
[dpdk.git] / drivers / net / sfc / base / efx_mac.c
index 4196280..ae23aad 100644 (file)
@@ -1,7 +1,7 @@
 /* SPDX-License-Identifier: BSD-3-Clause
  *
- * Copyright (c) 2007-2018 Solarflare Communications Inc.
- * All rights reserved.
+ * Copyright(c) 2019-2020 Xilinx, Inc.
+ * Copyright(c) 2007-2019 Solarflare Communications Inc.
  */
 
 #include "efx.h"
@@ -39,7 +39,7 @@ static const efx_mac_ops_t    __efx_mac_siena_ops = {
 };
 #endif /* EFSYS_OPT_SIENA */
 
-#if EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD || EFSYS_OPT_MEDFORD2
+#if EFX_OPTS_EF10()
 static const efx_mac_ops_t     __efx_mac_ef10_ops = {
        ef10_mac_poll,                          /* emo_poll */
        ef10_mac_up,                            /* emo_up */
@@ -62,7 +62,7 @@ static const efx_mac_ops_t    __efx_mac_ef10_ops = {
        ef10_mac_stats_update                   /* emo_stats_update */
 #endif /* EFSYS_OPT_MAC_STATS */
 };
-#endif /* EFSYS_OPT_HUNTINGTON || EFSYS_OPT_MEDFORD || EFSYS_OPT_MEDFORD2 */
+#endif /* EFX_OPTS_EF10() */
 
        __checkReturn                   efx_rc_t
 efx_mac_pdu_set(
@@ -218,6 +218,21 @@ fail1:
        return (rc);
 }
 
+                                       void
+efx_mac_filter_get_all_ucast_mcast(
+       __in                            efx_nic_t *enp,
+       __out                           boolean_t *all_unicst,
+       __out                           boolean_t *all_mulcst)
+{
+       efx_port_t *epp = &(enp->en_port);
+
+       EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
+       EFSYS_ASSERT3U(enp->en_mod_flags, &, EFX_MOD_PORT);
+
+       *all_unicst = epp->ep_all_unicst_inserted;
+       *all_mulcst = epp->ep_all_mulcst_inserted;
+}
+
        __checkReturn                   efx_rc_t
 efx_mac_drain(
        __in                            efx_nic_t *enp,
@@ -492,7 +507,7 @@ efx_mac_filter_default_rxq_clear(
 
 #if EFSYS_OPT_NAMES
 
-/* START MKCONFIG GENERATED EfxMacStatNamesBlock 8726fc355b6e7c1a */
+/* START MKCONFIG GENERATED EfxMacStatNamesBlock 1a45a82fcfb30c1b */
 static const char * const __efx_mac_stat_name[] = {
        "rx_octets",
        "rx_pkts",
@@ -581,6 +596,25 @@ static const char * const __efx_mac_stat_name[] = {
        "fec_corrected_symbols_lane1",
        "fec_corrected_symbols_lane2",
        "fec_corrected_symbols_lane3",
+       "ctpio_vi_busy_fallback",
+       "ctpio_long_write_success",
+       "ctpio_missing_dbell_fail",
+       "ctpio_overflow_fail",
+       "ctpio_underflow_fail",
+       "ctpio_timeout_fail",
+       "ctpio_noncontig_wr_fail",
+       "ctpio_frm_clobber_fail",
+       "ctpio_invalid_wr_fail",
+       "ctpio_vi_clobber_fallback",
+       "ctpio_unqualified_fallback",
+       "ctpio_runt_fallback",
+       "ctpio_success",
+       "ctpio_fallback",
+       "ctpio_poison",
+       "ctpio_erase",
+       "rxdp_scatter_disabled_trunc",
+       "rxdp_hlb_idle",
+       "rxdp_hlb_timeout",
 };
 /* END MKCONFIG GENERATED EfxMacStatNamesBlock */