lkml.org 
[lkml]   [2021]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.15 796/917] octeontx2-pf: select CONFIG_NET_DEVLINK
    Date
    From: Arnd Bergmann <arnd@arndb.de>

    [ Upstream commit 9cbc3367968de69017a87a1118b62490ac1bdd0a ]

    The octeontx2 pf nic driver failsz to link when the devlink support
    is not reachable:

    aarch64-linux-ld: drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.o: in function `otx2_dl_mcam_count_get':
    otx2_devlink.c:(.text+0x10): undefined reference to `devlink_priv'
    aarch64-linux-ld: drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.o: in function `otx2_dl_mcam_count_validate':
    otx2_devlink.c:(.text+0x50): undefined reference to `devlink_priv'
    aarch64-linux-ld: drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.o: in function `otx2_dl_mcam_count_set':
    otx2_devlink.c:(.text+0xd0): undefined reference to `devlink_priv'
    aarch64-linux-ld: drivers/net/ethernet/marvell/octeontx2/nic/otx2_devlink.o: in function `otx2_devlink_info_get':
    otx2_devlink.c:(.text+0x150): undefined reference to `devlink_priv'

    This is already selected by the admin function driver, but not the
    actual nic, which might be built-in when the af driver is not.

    Fixes: 2da489432747 ("octeontx2-pf: devlink params support to set mcam entry count")
    Signed-off-by: Arnd Bergmann <arnd@arndb.de>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/net/ethernet/marvell/octeontx2/Kconfig | 1 +
    1 file changed, 1 insertion(+)

    diff --git a/drivers/net/ethernet/marvell/octeontx2/Kconfig b/drivers/net/ethernet/marvell/octeontx2/Kconfig
    index 3f982ccf2c85f..639893d870550 100644
    --- a/drivers/net/ethernet/marvell/octeontx2/Kconfig
    +++ b/drivers/net/ethernet/marvell/octeontx2/Kconfig
    @@ -31,6 +31,7 @@ config NDC_DIS_DYNAMIC_CACHING
    config OCTEONTX2_PF
    tristate "Marvell OcteonTX2 NIC Physical Function driver"
    select OCTEONTX2_MBOX
    + select NET_DEVLINK
    depends on (64BIT && COMPILE_TEST) || ARM64
    depends on PCI
    depends on PTP_1588_CLOCK_OPTIONAL
    --
    2.33.0


    \
     
     \ /
      Last update: 2021-11-16 01:45    [W:2.796 / U:0.720 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site