Re: [PATCH rdma-next] IB/mlx5: Consider vlan of lower netdev for macvlan GID entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jan 27, 2019 at 08:35:50PM +0200, Leon Romanovsky wrote:
> From: Parav Pandit <parav@xxxxxxxxxxxx>
> 
> When a given netdev of the GID entry is macvlan netdevice, and if the
> lower netdevice is vlan device, GID entry for macvlan based IP address
> needs to inherit the vlan of the lower netdevice.
> 
> Therefore, attempt to find out if the lower device exist and if so, if
> it is vlan device and setup the vlan tag correctly.
> 
> Signed-off-by: Parav Pandit <parav@xxxxxxxxxxxx>
> Reviewed-by: Mark Bloch <markb@xxxxxxxxxxxx>
> Reviewed-by: Yuval Avnery <yuvalav@xxxxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/mlx5/main.c | 40 ++++++++++++++++++++++++++-----
>  1 file changed, 34 insertions(+), 6 deletions(-)

I'm not totally sure it makes sense to blindly assume any arbitary
stack of devices on the base netdev should support roce, but since
that is how this seems to work, it might as well do a best effort to
follow the parts of the protocol stack it does understand..

Applied to for-next

Thanks,
Jason



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux