Message ID | 0b2f8f5f09701bb43bbd83b94bfe5cb506b57adc.1738587150.git.leon@kernel.org (mailing list archive) |
---|---|
State | Accepted |
Commit | 546d98393abcf2f841e61163d95ed21fde346cc1 |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [net-next] bonding: delete always true device check | expand |
On 2/3/25 1:59 PM, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@nvidia.com> > > XFRM API makes sure that xs->xso.dev is valid in all XFRM offload > callbacks. There is no need to check it again. > > Fixes: 1ddec5d0eec4 ("bonding: add common function to check ipsec device") > Signed-off-by: Leon Romanovsky <leonro@nvidia.com> Acked-by: Paolo Abeni <pabeni@redhat.com>
On 2/3/25 14:59, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@nvidia.com> > > XFRM API makes sure that xs->xso.dev is valid in all XFRM offload > callbacks. There is no need to check it again. > > Fixes: 1ddec5d0eec4 ("bonding: add common function to check ipsec device") > Signed-off-by: Leon Romanovsky <leonro@nvidia.com> > --- > There is nothing urgent in this change, it can go to net-next too. > --- > drivers/net/bonding/bond_main.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c > index bfb55c23380b..154e670d8075 100644 > --- a/drivers/net/bonding/bond_main.c > +++ b/drivers/net/bonding/bond_main.c > @@ -432,9 +432,6 @@ static struct net_device *bond_ipsec_dev(struct xfrm_state *xs) > struct bonding *bond; > struct slave *slave; > > - if (!bond_dev) > - return NULL; > - > bond = netdev_priv(bond_dev); > if (BOND_MODE(bond) != BOND_MODE_ACTIVEBACKUP) > return NULL; Reviewed-by: Nikolay Aleksandrov <razor@blackwall.org>
Hello: This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <kuba@kernel.org>: On Mon, 3 Feb 2025 14:59:23 +0200 you wrote: > From: Leon Romanovsky <leonro@nvidia.com> > > XFRM API makes sure that xs->xso.dev is valid in all XFRM offload > callbacks. There is no need to check it again. > > Fixes: 1ddec5d0eec4 ("bonding: add common function to check ipsec device") > Signed-off-by: Leon Romanovsky <leonro@nvidia.com> > > [...] Here is the summary with links: - [net-next] bonding: delete always true device check https://git.kernel.org/netdev/net-next/c/546d98393abc You are awesome, thank you!
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c index bfb55c23380b..154e670d8075 100644 --- a/drivers/net/bonding/bond_main.c +++ b/drivers/net/bonding/bond_main.c @@ -432,9 +432,6 @@ static struct net_device *bond_ipsec_dev(struct xfrm_state *xs) struct bonding *bond; struct slave *slave; - if (!bond_dev) - return NULL; - bond = netdev_priv(bond_dev); if (BOND_MODE(bond) != BOND_MODE_ACTIVEBACKUP) return NULL;