]> git.baikalelectronics.ru Git - 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)
commit9c485f762b96834294b27a6af9de1714d7e33f90
treed5efc8f282f460f543d8c2e765aab7447e514f68
parent2a0c674fadff2d25fb28737a7677d6c913fa2769
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: 4bd94cbd3531 ("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