DPDK-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [DPDK/other Bug 2164] common/sfc_efx: common misused as holding zone for extra code
@ 2026-11-28  0:44 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2026-11-28  0:44 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=2164

            Bug ID: 2164
           Summary: common/sfc_efx: common misused as holding zone for
                    extra code
           Product: DPDK
           Version: 26.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: stephen@networkplumber.org
  Target Milestone: ---

Found while diagnosing unreachable code warnings.

The common/sfc_efx exports a large number of internal API's some of which are
never used. It looks like common is being misused to carry a generic upstream
API here.


  Six features are entirely unused — every exported symbol has zero consumers:

  efx_mon_*       (3/3)   efx_mon_init, efx_mon_fini, efx_mon_name
  efx_hash_*      (2/2)   efx_hash_bytes, efx_hash_dwords
  efx_sram_*      (2/2)   efx_sram_buf_tbl_set, efx_sram_buf_tbl_clear
  efx_loopback_*  (2/2)   efx_loopback_mask, efx_loopback_type_name
  efx_crc32_*     (1/1)   efx_crc32_calculate
  efx_family      (2)     efx_family, efx_family_probe_bar

  Partially unused, largest first:

  efx_filter_*  12/19  restore, spec_init_rx, spec_init_tx,
spec_set_encap_type,
                       spec_set_ether_type, spec_set_geneve,
spec_set_ipv4_full,
                       spec_set_ipv4_local, spec_set_nvgre,
spec_set_rss_context,
                       spec_set_uc_def, spec_set_vxlan
  efx_mcdi_*     9/14  client_mac_addr_get, fini, get_proxy_handle,
get_timeout,
                       init, reboot, request_abort, request_poll, request_start
  efx_tx_*       8/19  qdesc_checksum_create, qdesc_tso_create, qpace,
qpio_disable,
                       qpio_enable, qpio_post, qpio_write, qpost
  efx_nic_*      6/23  calculate_pcie_link_bandwidth, check_pcie_link_speed,
                       get_bar_region, hw_unavailable, set_drv_version,
                       set_hw_unavailable
  efx_ev_*       5/12  qcreate, qmoderate, qpending, qpost, usecs_to_ticks
  efx_phy_*      5/10  lp_cap_get, media_type_get, module_get_info, oui_get,
verify
  efx_evb_*       4/8  vport_mac_set, vport_reset, vport_stats, vport_vlan_set
  efx_intr_*      2/9  disable_unlocked, trigger
  efx_mac_*      2/20  pdu_get, up
  efx_mae_*      2/70  action_set_get_nb_count, counters_alloc
  efx_rx_*       1/20  scale_context_alloc
  efx_tunnel_*    1/6  config_clear
  efx_virtio_*    1/9  verify_features
  efx_evq_*       1/2  efx_evq_nbufs
  efx_rxq_*       1/2  efx_rxq_nbufs
  efx_txq_*       1/2  efx_txq_nbufs

The original purpose of common/ was to allow shared code when there was a
crypto/ and net/ driver on the same HW.   It is not meant to be a vendor drop
zone for hardware library.

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-28  0:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-28  0:44 [DPDK/other Bug 2164] common/sfc_efx: common misused as holding zone for extra code bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox