]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
ixgbe: remove some redundant code in setting FCoE FIP filter
authorYi Zou <yi.zou@intel.com>
Tue, 18 May 2010 16:00:07 +0000 (16:00 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 May 2010 02:44:18 +0000 (19:44 -0700)
The ETQS setup for FIP out side the if..else is enough for the ETQS
setup for FIP, so remove redundant code.

Signed-off-by: Yi Zou <yi.zou@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ixgbe/ixgbe_fcoe.c

index a82d2fcaac97294ccb42fd85333298166e1012ac..45182ab41d6b19d3acc973275edfbb378b7bd64b 100644 (file)
@@ -539,12 +539,6 @@ void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter)
                }
                IXGBE_WRITE_REG(hw, IXGBE_FCRECTL, IXGBE_FCRECTL_ENA);
                IXGBE_WRITE_REG(hw, IXGBE_ETQS(IXGBE_ETQF_FILTER_FCOE), 0);
-               fcoe_i = f->mask;
-               fcoe_i &= IXGBE_FCRETA_ENTRY_MASK;
-               fcoe_q = adapter->rx_ring[fcoe_i]->reg_idx;
-               IXGBE_WRITE_REG(hw, IXGBE_ETQS(IXGBE_ETQF_FILTER_FIP),
-                               IXGBE_ETQS_QUEUE_EN |
-                               (fcoe_q << IXGBE_ETQS_RX_QUEUE_SHIFT));
        } else  {
                /* Use single rx queue for FCoE */
                fcoe_i = f->mask;