]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: RX handlers per netdev profile
authorSaeed Mahameed <saeedm@mellanox.com>
Thu, 13 Apr 2017 03:37:03 +0000 (06:37 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Apr 2017 15:08:31 +0000 (11:08 -0400)
commite35714d7406e975ff6d8d396b1e35fe68583530a
treea885290d2e180fa6d84b81451f7db7cf037143e5
parentc385870c7d4c1f05346412f5b0d41513d3d73674
net/mlx5e: RX handlers per netdev profile

In order to have different RX handler per profile, fix and refactor the
current code to take the rx handler directly from the netdevice profile
rather than computing it on runtime as it was done with the switchdev
mode representor rx handler.

This will also remove the current wrong assumption in mlx5e_alloc_rq
code that mlx5e_priv->ppriv is of the type vport_rep.

Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Reviewed-by: Erez Shitrit <erezsh@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en.h
drivers/net/ethernet/mellanox/mlx5/core/en_main.c
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c