]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/mlx5: Consider vlan of lower netdev for macvlan GID entries
authorParav Pandit <parav@mellanox.com>
Sun, 27 Jan 2019 18:35:50 +0000 (20:35 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 31 Jan 2019 03:43:46 +0000 (20:43 -0700)
commitcf34e1fe52540842aeae3c5cdaaedae97ee788dd
tree2fd51de608d509f5c2e27b14f194c46824078485
parentcfc30ad3d098b63ac08d2d2d61ef9aeff659c57a
IB/mlx5: Consider vlan of lower netdev for macvlan GID entries

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@mellanox.com>
Reviewed-by: Mark Bloch <markb@mellanox.com>
Reviewed-by: Yuval Avnery <yuvalav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/mlx5/main.c