]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
ixgbe: Simplify definitions for regidx and bit in set_vfta
authorAlexander Duyck <aduyck@mirantis.com>
Tue, 3 Nov 2015 01:09:42 +0000 (17:09 -0800)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 29 Feb 2016 15:56:43 +0000 (08:56 -0700)
commit4f7a2b08b0c231714018c9d5b61cd55cfdc99b17
treecde5c90f6a191f05a300a8d05596a2e39064ee9f
parent550a13e464d0a4be09b664c21b3e4d7b0d089873
ixgbe: Simplify definitions for regidx and bit in set_vfta

BugLink: http://bugs.launchpad.net/bugs/1536473
This patch simplifies the logic for setting the VFTA register by removing
the number of conditional checks needed.  Instead we just use some boolean
logic to generate vfta_delta, and if that is set then we xor the vfta by
that value and write it back.

Signed-off-by: Alexander Duyck <aduyck@mirantis.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
(cherry picked from commit c18fbd5f024e47897a120f42d128c04fa708692c)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c