[Intel-wired-lan] [PATCH net-next 07/12] ice: Accept LAG netdevs in bridge offloads
Alexander Lobakin
aleksander.lobakin at intel.com
Wed Apr 26 15:31:48 UTC 2023
From: Wojciech Drewek <wojciech.drewek at intel.com>
Date: Wed, 26 Apr 2023 13:31:17 +0200
>
>
>> -----Original Message-----
>> From: Lobakin, Aleksander <aleksander.lobakin at intel.com>
>> Sent: piątek, 21 kwietnia 2023 16:40
>> To: Drewek, Wojciech <wojciech.drewek at intel.com>
>> Cc: intel-wired-lan at lists.osuosl.org; netdev at vger.kernel.org; Ertman, David M <david.m.ertman at intel.com>;
>> michal.swiatkowski at linux.intel.com; marcin.szycik at linux.intel.com; Chmielewski, Pawel <pawel.chmielewski at intel.com>;
>> Samudrala, Sridhar <sridhar.samudrala at intel.com>
>> Subject: Re: [PATCH net-next 07/12] ice: Accept LAG netdevs in bridge offloads
>>
>> From: Wojciech Drewek <wojciech.drewek at intel.com>
>> Date: Mon, 17 Apr 2023 11:34:07 +0200
>>
>>> Allow LAG interfaces to be used in bridge offload using
>>> netif_is_lag_master. In this case, search for ice netdev in
>>> the list of LAG's lower devices.
>>>
>>> Signed-off-by: Wojciech Drewek <wojciech.drewek at intel.com>
>>> ---
>>> .../net/ethernet/intel/ice/ice_eswitch_br.c | 40 ++++++++++++++++---
>>> 1 file changed, 35 insertions(+), 5 deletions(-)
>>>
>>> diff --git a/drivers/net/ethernet/intel/ice/ice_eswitch_br.c b/drivers/net/ethernet/intel/ice/ice_eswitch_br.c
>>> index 82b5eb2020cd..49381e4bf62a 100644
>>> --- a/drivers/net/ethernet/intel/ice/ice_eswitch_br.c
>>> +++ b/drivers/net/ethernet/intel/ice/ice_eswitch_br.c
>>> @@ -15,8 +15,21 @@ static const struct rhashtable_params ice_fdb_ht_params = {
>>>
>>> static bool ice_eswitch_br_is_dev_valid(const struct net_device *dev)
>>> {
>>> - /* Accept only PF netdev and PRs */
>>> - return ice_is_port_repr_netdev(dev) || netif_is_ice(dev);
>>> + /* Accept only PF netdev, PRs and LAG */
>>> + return ice_is_port_repr_netdev(dev) || netif_is_ice(dev) ||
>>> + netif_is_lag_master(dev);
>>
>> Nit: usually we align to `return` (7 spaces), not with one tab:
>>
>> return ice_is_port_repr_netdev(dev) || netif_is_ice(dev) ||
>> netif_is_lag_master(dev);
>
> I've seen examples of both so either way is ok I think
Correct, that's more of my personal :D Or maybe I've seen a couple times
that either checkpatch or something else complained on the second line
being not aligned to the first one with `return`.
[...]
Thanks,
Olek
More information about the Intel-wired-lan
mailing list