From: John Fastabend <john.r.fastabend@intel.com>
To: nhorman@tuxdriver.com, alexander.h.duyck@intel.com
Cc: netdev@vger.kernel.org, andy@greyhouse.net, davem@davemloft.net,
jeffrey.t.kirsher@intel.com
Subject: Re: [PATCH v2 2/2] ixgbe: enable l2 forwarding acceleration for macvlans
Date: Mon, 04 Nov 2013 22:24:46 -0800 [thread overview]
Message-ID: <52788F2E.1070805@intel.com> (raw)
In-Reply-To: <20131104190154.11802.75724.stgit@jf-dev1-dcblab>
On 11/4/2013 11:01 AM, John Fastabend wrote:
> Now that l2 acceleration ops are in place from the prior patch,
> enable ixgbe to take advantage of these operations. Allow it to
> allocate queues for a macvlan so that when we transmit a frame,
> we can do the switching in hardware inside the ixgbe card, rather
> than in software.
>
> For now this patch limits the hardware to 8 offloaded macvlan ports.
> A follow on patch will remove this limitation but to simplify
> review/validation of the new macvlan offload ops we leave it at 8
> for now.
>
> Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
> CC: Andy Gospodarek <andy@greyhouse.net>
> CC: "David S. Miller" <davem@davemloft.net>
> ---
[...]
>
> #define IXGBE_MAX_RSS_INDICES 16
> -#define IXGBE_MAX_VMDQ_INDICES 64
> +#define IXGBE_MAX_VMDQ_INDICES 8
This define is also used for max VFs in SR-IOV mode so we can't just
redefine it like this without also limiting SR-IOV.
[...]
> +static void ixgbe_fwd_del(struct net_device *pdev, void *priv)
> +{
> + struct ixgbe_fwd_adapter *fwd_adapter = priv;
> + struct ixgbe_adapter *adapter = fwd_adapter->real_adapter;
> +
> + clear_bit(fwd_adapter->pool, &adapter->fwd_bitmask);
> + adapter->num_rx_pools--;
> +
> + ixgbe_fwd_ring_down(fwd_adapter->netdev, fwd_adapter);
> +
> + netdev_dbg(pdev, "pool %i:%i queues %i:%i VSI bitmask %lx\n",
> + fwd_adapter->pool, adapter->num_rx_pools,
> + fwd_adapter->rx_base_queue,
> + fwd_adapter->rx_base_queue + adapter->num_rx_queues_per_pool,
> + adapter->fwd_bitmask);
Missing a kfree(fwd_adapter) here, and a ixgbe_setup_tc() call to
release the queues.
I'm testing a fix now and will send a v3.
Thanks,
John
next prev parent reply other threads:[~2013-11-05 6:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-04 19:01 [PATCH v2 0/2] l2 hardware accelerated macvlans John Fastabend
2013-11-04 19:01 ` [PATCH v2 1/2] net: Add layer 2 hardware acceleration operations for macvlan devices John Fastabend
2013-11-05 14:15 ` Neil Horman
2013-11-04 19:01 ` [PATCH v2 2/2] ixgbe: enable l2 forwarding acceleration for macvlans John Fastabend
2013-11-05 6:24 ` John Fastabend [this message]
2013-11-05 14:26 ` Neil Horman
2013-11-05 20:34 ` John Fastabend
2013-11-05 20:52 ` Neil Horman
2013-11-05 14:47 ` [PATCH v2 0/2] l2 hardware accelerated macvlans Vlad Yasevich
2013-11-05 15:17 ` John Fastabend
2013-11-05 15:20 ` Vlad Yasevich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52788F2E.1070805@intel.com \
--to=john.r.fastabend@intel.com \
--cc=alexander.h.duyck@intel.com \
--cc=andy@greyhouse.net \
--cc=davem@davemloft.net \
--cc=jeffrey.t.kirsher@intel.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@tuxdriver.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.