]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: fix incorrect return value of bond_ipsec_offload_ok()
authorTaehee Yoo <ap420073@gmail.com>
Mon, 5 Jul 2021 15:38:14 +0000 (15:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jul 2021 17:36:59 +0000 (10:36 -0700)
commit7a5639c487b754c3a2f9c980895a244a66a839c5
treec31ce40bfc8af3708046d61997bac6fd21e118b3
parentb15f1de932e598ed675370d72a80b6c99e434e2e
bonding: fix incorrect return value of bond_ipsec_offload_ok()

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: 4a36c3eccd30 ("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>
drivers/net/bonding/bond_main.c