]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
be2net: refactor be_set_rx_mode() and be_vid_config() for readability
authorSathya Perla <sathya.perla@emulex.com>
Fri, 6 Feb 2015 13:18:41 +0000 (08:18 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Feb 2015 06:50:59 +0000 (22:50 -0800)
commitf66b7cfd95a5e13ca8bc4854252cd027f3d7fe86
treeca0b6cb340e32bd3e7fad4fa583383acd3766423
parentac34b74378a15b01d16ae84d616b405dd0948ecb
be2net: refactor be_set_rx_mode() and be_vid_config() for readability

This patch re-factors the filter setting (uc-list, mc-list, promisc, vlan)
code in be_set_rx_mode() and be_vid_config() to make it more readable
and reduce code duplication.
This patch adds a separate field to track the state/mode of filtering,
along with moving all the filtering related fields to one place in be
be_adapter structure.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be.h
drivers/net/ethernet/emulex/benet/be_main.c