]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
bonding: disallow setting nested bonding + ipsec offload
authorTaehee Yoo <ap420073@gmail.com>
Mon, 5 Jul 2021 15:38:11 +0000 (15:38 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Jul 2021 17:36:59 +0000 (10:36 -0700)
commitb121693381b112b78c076dea171ee113e237c0e4
treed5efc8f282f460f543d8c2e765aab7447e514f68
parenta22c39b831a081da9b2c488bd970a4412d926f30
bonding: disallow setting nested bonding + ipsec offload

bonding interface can be nested and it supports ipsec offload.
So, it allows setting the nested bonding + ipsec scenario.
But code does not support this scenario.
So, it should be disallowed.

interface graph:
bond2
   |
bond1
   |
eth0

The nested bonding + ipsec offload may not a real usecase.
So, disallowing this scenario is fine.

Fixes: 18cb261afd7b ("bonding: support hardware encryption offload to slaves")
Signed-off-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c