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