[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1428656566.5413.23.camel@perches.com>
Date: Fri, 10 Apr 2015 02:02:46 -0700
From: Joe Perches <joe@...ches.com>
To: Jeff Kirsher <jeffrey.t.kirsher@...el.com>
Cc: davem@...emloft.net, Don Skidmore <donald.c.skidmore@...el.com>,
netdev@...r.kernel.org, nhorman@...hat.com, sassmann@...hat.com,
jogreene@...hat.com
Subject: Re: [net-next 6/9] ixgbe: add support for X550
source_address_prunning
On Fri, 2015-04-10 at 00:53 -0700, Jeff Kirsher wrote:
> From: Don Skidmore <donald.c.skidmore@...el.com>
Trivia:
> This patch will enable X550 Source Address Prunning for VEPA
Pruning
> diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
[]
> @@ -7880,13 +7880,57 @@ static int ixgbe_ndo_fdb_add(struct ndmsg *ndm, struct nlattr *tb[],
> static int ixgbe_configure_bridge_mode(struct ixgbe_adapter *adapter,
> __u16 mode)
> {
> + struct ixgbe_hw *hw = &adapter->hw;
> + unsigned int p, num_pools;
> + u32 vmdctl;
Maybe add a temporary for
struct ixgbe_mac_operations *ops = &hw->mac.ops;
[]
> switch (mode) {
> case BRIDGE_MODE_VEPA:
[]
> + for (p = 0; p < num_pools; p++) {
> + if (hw->mac.ops.set_source_address_pruning)
> + hw->mac.ops.set_source_address_pruning(hw,
> + true,
> + p);
so this can be:
ops->set_source_address_pruning(hw, true, p);
> case BRIDGE_MODE_VEB:
[]
> + for (p = 0; p < num_pools; p++) {
> + if (hw->mac.ops.set_source_address_pruning)
> + hw->mac.ops.set_source_address_pruning(hw,
> + false,
> + p);
here too
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists