OSDN Git Service

net/bonding: Take update_features call out of XFRM funciton
authorTariq Toukan <tariqt@nvidia.com>
Sun, 17 Jan 2021 14:59:45 +0000 (16:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Jan 2021 04:48:40 +0000 (20:48 -0800)
commitf45583de361db2160fbca4a99c20a0c44b34f36a
treea38af4a9426ca01470b6c07cc85eb57a4e638d9b
parent007feb87fb15933b5de7135e6bdf57c219b3fbec
net/bonding: Take update_features call out of XFRM funciton

In preparation for more cases that call netdev_update_features().

While here, move the features logic to the stage where struct bond
is already updated, and pass it as the only parameter to function
bond_set_xfrm_features().

Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Reviewed-by: Boris Pismenny <borisp@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/bonding/bond_options.c