]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: set xfrm feature flags more sanely
authorJarod Wilson <jarod@redhat.com>
Sat, 5 Dec 2020 17:40:03 +0000 (12:40 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 8 Dec 2020 02:21:29 +0000 (18:21 -0800)
commit70cfad0ef01d9e7107bfb288b72c45af6f328c79
tree065db714f38486c1a29895effa7077eb7f8d4ba0
parent78b35587bfd15523367f631237bc2c2a19097a12
bonding: set xfrm feature flags more sanely

We can remove one of the ifdef blocks here, and instead of setting both
the xfrm hw_features and features flags, then unsetting the feature
flags if not in AB, wait to set the features flags if we're actually in AB
mode.

Signed-off-by: Jarod Wilson <jarod@redhat.com>
Link: https://lore.kernel.org/r/20201205174003.578267-1-jarod@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_main.c