]> 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)
commitd183ea83de3867a8f744635b124f63fe2b066858
treea885290d2e180fa6d84b81451f7db7cf037143e5
parent97f280fa4143d0b20ac469adee48589a6a53ad5a
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