diff options
author | Yi Zou <yi.zou@intel.com> | 2010-05-18 12:00:07 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-05-18 22:44:18 -0400 |
commit | 497f683f033d1498a6d42a48c095927de5949906 (patch) | |
tree | d70508227ea80c873cfa1eddfa8ea21f41f6d564 /drivers/net/ixgbe | |
parent | be5d507d9af23c45983c828394cc4f6d728b18eb (diff) |
ixgbe: remove some redundant code in setting FCoE FIP filter
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>
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_fcoe.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/drivers/net/ixgbe/ixgbe_fcoe.c b/drivers/net/ixgbe/ixgbe_fcoe.c index a82d2fcaac97..45182ab41d6b 100644 --- a/drivers/net/ixgbe/ixgbe_fcoe.c +++ b/drivers/net/ixgbe/ixgbe_fcoe.c | |||
@@ -539,12 +539,6 @@ void ixgbe_configure_fcoe(struct ixgbe_adapter *adapter) | |||
539 | } | 539 | } |
540 | IXGBE_WRITE_REG(hw, IXGBE_FCRECTL, IXGBE_FCRECTL_ENA); | 540 | IXGBE_WRITE_REG(hw, IXGBE_FCRECTL, IXGBE_FCRECTL_ENA); |
541 | IXGBE_WRITE_REG(hw, IXGBE_ETQS(IXGBE_ETQF_FILTER_FCOE), 0); | 541 | IXGBE_WRITE_REG(hw, IXGBE_ETQS(IXGBE_ETQF_FILTER_FCOE), 0); |
542 | fcoe_i = f->mask; | ||
543 | fcoe_i &= IXGBE_FCRETA_ENTRY_MASK; | ||
544 | fcoe_q = adapter->rx_ring[fcoe_i]->reg_idx; | ||
545 | IXGBE_WRITE_REG(hw, IXGBE_ETQS(IXGBE_ETQF_FILTER_FIP), | ||
546 | IXGBE_ETQS_QUEUE_EN | | ||
547 | (fcoe_q << IXGBE_ETQS_RX_QUEUE_SHIFT)); | ||
548 | } else { | 542 | } else { |
549 | /* Use single rx queue for FCoE */ | 543 | /* Use single rx queue for FCoE */ |
550 | fcoe_i = f->mask; | 544 | fcoe_i = f->mask; |