Skip to content

Commit 35eaefb

Browse files
TaeheeYoogregkh
authored andcommitted
bonding: fix incorrect return value of bond_ipsec_offload_ok()
[ Upstream commit 168e696 ] bond_ipsec_offload_ok() is called to check whether the interface supports ipsec offload or not. bonding interface support ipsec offload only in active-backup mode. So, if a bond interface is not in active-backup mode, it should return false but it returns true. Fixes: a3b658c ("bonding: allow xfrm offload setup post-module-load") Signed-off-by: Taehee Yoo <ap420073@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 13626ba commit 35eaefb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/net/bonding/bond_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ static bool bond_ipsec_offload_ok(struct sk_buff *skb, struct xfrm_state *xs)
565565
real_dev = curr_active->dev;
566566

567567
if (BOND_MODE(bond) != BOND_MODE_ACTIVEBACKUP) {
568-
err = true;
568+
err = false;
569569
goto out;
570570
}
571571

0 commit comments

Comments
 (0)