Skip to content

Commit 5b69874

Browse files
Mahesh Bandewardavem330
authored andcommitted
bonding: fix build issue
The commit 9a56055 (" bonding: Add struct bond_ipesc to manage SA") is causing following build error when XFRM is not selected in kernel config. lld: error: undefined symbol: xfrm_dev_state_flush >>> referenced by bond_main.c:3453 (drivers/net/bonding/bond_main.c:3453) >>> net/bonding/bond_main.o:(bond_netdev_event) in archive drivers/built-in.a Fixes: 9a56055 (" bonding: Add struct bond_ipesc to manage SA") Signed-off-by: Mahesh Bandewar <[email protected]> CC: Taehee Yoo <[email protected]> CC: Jay Vosburgh <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 5f119ba commit 5b69874

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/bonding/bond_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3450,7 +3450,9 @@ static int bond_master_netdev_event(unsigned long event,
34503450
return bond_event_changename(event_bond);
34513451
case NETDEV_UNREGISTER:
34523452
bond_remove_proc_entry(event_bond);
3453+
#ifdef CONFIG_XFRM_OFFLOAD
34533454
xfrm_dev_state_flush(dev_net(bond_dev), bond_dev, true);
3455+
#endif /* CONFIG_XFRM_OFFLOAD */
34543456
break;
34553457
case NETDEV_REGISTER:
34563458
bond_create_proc_entry(event_bond);

0 commit comments

Comments
 (0)