net/mlx4_en: Re-arrange ndo_set_rx_mode related code
authorYan Burman <yanb@mellanox.com>
Thu, 7 Feb 2013 02:25:23 +0000 (02:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 8 Feb 2013 04:26:13 +0000 (23:26 -0500)
commit0eb74fdda4ff72535849f9d99a8eabe69dceaddf
tree957e7b6434ed83a48e7e4b043156064e2c9194ef
parent16a10ffd20a13215243bdba64c8e57ef277a55b9
net/mlx4_en: Re-arrange ndo_set_rx_mode related code

Currently, mlx4_en_do_set_multicast serves as the ndo_set_rx_mode entry for mlx4_en,
doing all related work. Split it to few calls, one per required functionality
(e.g multicast, promiscuous, etc) and rename some structures and calls
to use rx_mode notation instead of multicast.

Signed-off-by: Yan Burman <yanb@mellanox.com>
Signed-off-by: Amir Vadai <amirv@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_netdev.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h