* [net-next PATCH] cn10k-ipsec: Fix compilation error when CONFIG_XFRM_OFFLOAD disabled
@ 2024-12-11 6:24 Bharat Bhushan
2024-12-12 4:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Bharat Bhushan @ 2024-12-11 6:24 UTC (permalink / raw)
To: netdev, linux-kernel, sgoutham, gakula, sbhatta, hkelam,
andrew+netdev, davem, edumazet, kuba, pabeni, bbhushan2
Cc: kernel test robot
Define static branch variable "cn10k_ipsec_sa_enabled"
in "otx2_txrx.c". This fixes below compilation error
when CONFIG_XFRM_OFFLOAD is disabled.
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.o:(__jump_table+0x8): undefined reference to `cn10k_ipsec_sa_enabled'
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.o:(__jump_table+0x18): undefined reference to `cn10k_ipsec_sa_enabled'
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.o:(__jump_table+0x28): undefined reference to `cn10k_ipsec_sa_enabled'
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202412110505.ZKDzGRMv-lkp@intel.com/
Fixes: 6a77a158848a ("cn10k-ipsec: Process outbound ipsec crypto offload")
Signed-off-by: Bharat Bhushan <bbhushan2@marvell.com>
---
drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c | 2 --
drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c | 2 ++
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c b/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c
index c333e04daad3..09a5b5268205 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_ipsec.c
@@ -14,8 +14,6 @@
#include "otx2_struct.h"
#include "cn10k_ipsec.h"
-DEFINE_STATIC_KEY_FALSE(cn10k_ipsec_sa_enabled);
-
static bool is_dev_support_ipsec_offload(struct pci_dev *pdev)
{
return is_dev_cn10ka_b0(pdev) || is_dev_cn10kb(pdev);
diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
index 4e0133d1d892..224cef938927 100644
--- a/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
+++ b/drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.c
@@ -27,6 +27,8 @@
*/
#define PTP_SYNC_SEC_OFFSET 34
+DEFINE_STATIC_KEY_FALSE(cn10k_ipsec_sa_enabled);
+
static bool otx2_xdp_rcv_pkt_handler(struct otx2_nic *pfvf,
struct bpf_prog *prog,
struct nix_cqe_rx_s *cqe,
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [net-next PATCH] cn10k-ipsec: Fix compilation error when CONFIG_XFRM_OFFLOAD disabled
2024-12-11 6:24 [net-next PATCH] cn10k-ipsec: Fix compilation error when CONFIG_XFRM_OFFLOAD disabled Bharat Bhushan
@ 2024-12-12 4:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-12-12 4:20 UTC (permalink / raw)
To: Bharat Bhushan
Cc: netdev, linux-kernel, sgoutham, gakula, sbhatta, hkelam,
andrew+netdev, davem, edumazet, kuba, pabeni, lkp
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 11 Dec 2024 11:54:19 +0530 you wrote:
> Define static branch variable "cn10k_ipsec_sa_enabled"
> in "otx2_txrx.c". This fixes below compilation error
> when CONFIG_XFRM_OFFLOAD is disabled.
>
> drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.o:(__jump_table+0x8): undefined reference to `cn10k_ipsec_sa_enabled'
> drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.o:(__jump_table+0x18): undefined reference to `cn10k_ipsec_sa_enabled'
> drivers/net/ethernet/marvell/octeontx2/nic/otx2_txrx.o:(__jump_table+0x28): undefined reference to `cn10k_ipsec_sa_enabled'
>
> [...]
Here is the summary with links:
- [net-next] cn10k-ipsec: Fix compilation error when CONFIG_XFRM_OFFLOAD disabled
https://git.kernel.org/netdev/net-next/c/b82ca90d5512
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-12-12 4:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-11 6:24 [net-next PATCH] cn10k-ipsec: Fix compilation error when CONFIG_XFRM_OFFLOAD disabled Bharat Bhushan
2024-12-12 4:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox