The dpaa2 driver depends on devlink, so it should select NET_DEVLINK in order to fix compile errors, such as: drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.o: in function `dpaa2_eth_rx_err': dpaa2-eth.c:(.text+0x3cec): undefined reference to `devlink_trap_report' drivers/net/ethernet/freescale/dpaa2/dpaa2-eth-devlink.o: in function `dpaa2_eth_dl_info_get': dpaa2-eth-devlink.c:(.text+0x160): undefined reference to `devlink_info_driver_name_put' Fixes: ceeb03ad8e22 ("dpaa2-eth: add basic devlink support") Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com> Link: https://lore.kernel.org/r/20201123163553.1666476-1-ciorneiioana@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
32 lines
839 B
Plaintext
32 lines
839 B
Plaintext
# SPDX-License-Identifier: GPL-2.0-only
|
|
config FSL_DPAA2_ETH
|
|
tristate "Freescale DPAA2 Ethernet"
|
|
depends on FSL_MC_BUS && FSL_MC_DPIO
|
|
select PHYLINK
|
|
select PCS_LYNX
|
|
select FSL_XGMAC_MDIO
|
|
select NET_DEVLINK
|
|
help
|
|
This is the DPAA2 Ethernet driver supporting Freescale SoCs
|
|
with DPAA2 (DataPath Acceleration Architecture v2).
|
|
The driver manages network objects discovered on the Freescale
|
|
MC bus.
|
|
|
|
if FSL_DPAA2_ETH
|
|
config FSL_DPAA2_ETH_DCB
|
|
bool "Data Center Bridging (DCB) Support"
|
|
default n
|
|
depends on DCB
|
|
help
|
|
Enable Priority-Based Flow Control (PFC) support for DPAA2 Ethernet
|
|
devices.
|
|
endif
|
|
|
|
config FSL_DPAA2_PTP_CLOCK
|
|
tristate "Freescale DPAA2 PTP Clock"
|
|
depends on FSL_DPAA2_ETH && PTP_1588_CLOCK_QORIQ
|
|
default y
|
|
help
|
|
This driver adds support for using the DPAA2 1588 timer module
|
|
as a PTP clock.
|