]> 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)
commit912f0091640c892a29ab192078c1a0e59f5d30ae
treed5efc8f282f460f543d8c2e765aab7447e514f68
parent9dfb6b19f7a0e55f9a6720b6f9021bad83f2c755
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: 6424b693bac6 ("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